answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT document_name FROM documents WHERE NOT document_code IN (SELECT document_code FROM document_sections)
Find all the name of documents without any sections.
CREATE TABLE document_sections (document_name VARCHAR, document_code VARCHAR); CREATE TABLE documents (document_name VARCHAR, document_code VARCHAR)
SELECT MIN(total) FROM table_name_13 WHERE bronze < 16 AND silver > 6
What's the lowest total when there's less than 16 bronze and more than 6 silver?
CREATE TABLE table_name_13 ( total INTEGER, bronze VARCHAR, silver VARCHAR )
SELECT round1 FROM table_16815824_1 WHERE team = "Great Britain"
What was Great Britain's Round 1 score?
CREATE TABLE table_16815824_1 (round1 VARCHAR, team VARCHAR)
SELECT user_name, password FROM users GROUP BY role_code ORDER BY COUNT(*) DESC LIMIT 1
List all the username and passwords of users with the most popular role.
CREATE TABLE users (user_name VARCHAR, password VARCHAR, role_code VARCHAR)
SELECT "Award" FROM table_69966 WHERE "Name" = 'lowe'
What is the award type for all Lowe awards?
CREATE TABLE table_69966 ( "Date" text, "Country" text, "Name" text, "Award" text, "Notes" text )
SELECT MIN(round4) FROM table_16815824_1 WHERE team = "team Toshiba"
What was team Toshiba's round 4 score?
CREATE TABLE table_16815824_1 (round4 INTEGER, team VARCHAR)
SELECT AVG(t1.access_count) FROM documents AS t1 JOIN document_functional_areas AS t2 ON t1.document_code = t2.document_code JOIN functional_areas AS t3 ON t2.functional_area_code = t3.functional_area_code WHERE t3.functional_area_description = "Acknowledgement"
Find the average access counts of documents with functional area "Acknowledgement".
CREATE TABLE document_functional_areas (document_code VARCHAR, functional_area_code VARCHAR); CREATE TABLE documents (access_count INTEGER, document_code VARCHAR); CREATE TABLE functional_areas (functional_area_code VARCHAR, functional_area_description VARCHAR)
SELECT "Reading" FROM table_27576 WHERE "Science" = '96.13'
What was the reading score in the year the science score was 96.13?
CREATE TABLE table_27576 ( "School Year" text, "Language" text, "Science" text, "Reading" text, "Mathematics" text, "Social Studies" text )
SELECT MAX(round2) FROM table_16815824_1
What was the highest score for round 2?
CREATE TABLE table_16815824_1 (round2 INTEGER)
SELECT document_name FROM documents EXCEPT SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code JOIN document_sections_images AS t3 ON t2.section_id = t3.section_id
Find names of the document without any images.
CREATE TABLE document_sections_images (section_id VARCHAR); CREATE TABLE documents (document_name VARCHAR); CREATE TABLE documents (document_name VARCHAR, document_code VARCHAR); CREATE TABLE document_sections (document_code VARCHAR, section_id VARCHAR)
SELECT "Mayor" FROM table_35421 WHERE "Party" = 'krf'
What Mayor is from the KRF Party?
CREATE TABLE table_35421 ( "Name" text, "Innhabitants" real, "Area" real, "Mayor" text, "Party" text, "Municipal code" real, "Language form" text )
SELECT round5 FROM table_16815824_1 WHERE total_points = 212
What was the round 5 score if the team's total points where 212?
CREATE TABLE table_16815824_1 (round5 VARCHAR, total_points VARCHAR)
SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code GROUP BY t1.document_code ORDER BY COUNT(*) DESC LIMIT 1
What is the name of the document with the most number of sections?
CREATE TABLE document_sections (document_code VARCHAR); CREATE TABLE documents (document_name VARCHAR, document_code VARCHAR)
SELECT "township" FROM table_203_510 ORDER BY "population" LIMIT 1
which township in pope county , arkansas has the smallest population ?
CREATE TABLE table_203_510 ( id number, "township" text, "fips" number, "population\ncenter" text, "population" number, "population\ndensity\n(/mi2)" number, "population\ndensity\n(/km2)" number, "land area\n(mi2)" number, "land area\n(km2)" number, "water area\n(mi2)" number, ...
SELECT COUNT(round2) FROM table_16815824_1 WHERE team = "team Toshiba"
What is the score for round 2 for team Toshiba?
CREATE TABLE table_16815824_1 (round2 VARCHAR, team VARCHAR)
SELECT document_name FROM documents WHERE document_name LIKE "%CV%"
List all the document names which contains "CV".
CREATE TABLE documents (document_name VARCHAR)
SELECT "Australian" FROM table_59742 WHERE "Short vowels" = 'e /ɛ/'
What Australian sound is equivalent to e / /?
CREATE TABLE table_59742 ( "Short vowels" text, "17th-c." text, "American" text, "British" text, "Australian" text )
SELECT name AS origin FROM table_16799784_9 WHERE longitude = "355.0E"
At the longitude of 355.0e, what is the name origin?
CREATE TABLE table_16799784_9 (name VARCHAR, longitude VARCHAR)
SELECT COUNT(*) FROM users WHERE user_login = 1
How many users are logged in?
CREATE TABLE users (user_login VARCHAR)
SELECT All_Neutral, ACC_Percent FROM basketball_match
For the attribute All_Neutral and ACC_Percent, show their proportion by a pie chart.
CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text ) CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Per...
SELECT name AS origin FROM table_16799784_9 WHERE name = "Morrigan Linea"
What is the name origin of Morrigan Linea?
CREATE TABLE table_16799784_9 (name VARCHAR)
SELECT role_description FROM ROLES WHERE role_code = (SELECT role_code FROM users WHERE user_login = 1 GROUP BY role_code ORDER BY COUNT(*) DESC LIMIT 1)
Find the description of the most popular role among the users that have logged in.
CREATE TABLE users (role_description VARCHAR, role_code VARCHAR, user_login VARCHAR); CREATE TABLE ROLES (role_description VARCHAR, role_code VARCHAR, user_login VARCHAR)
SELECT winning_score FROM table_name_39 WHERE margin = "3 strokes"
What is the winning score of the match with a margin of 3 strokes?
CREATE TABLE table_name_39 ( winning_score VARCHAR, margin VARCHAR )
SELECT COUNT(year_named) FROM table_16799784_9 WHERE longitude = "20.0E"
How many years have a longitude measure of 20.0e?
CREATE TABLE table_16799784_9 (year_named VARCHAR, longitude VARCHAR)
SELECT AVG(access_count) FROM documents GROUP BY document_structure_code ORDER BY COUNT(*) LIMIT 1
Find the average access count of documents with the least popular structure.
CREATE TABLE documents (access_count INTEGER, document_structure_code VARCHAR)
SELECT MIN("Opponents") FROM table_73057
What is the minimum number of opponents?
CREATE TABLE table_73057 ( "Game" real, "Date" text, "Opponent" text, "Result" text, "Giants points" real, "Opponents" real, "Record" text, "Attendance" real )
SELECT diameter__km_ FROM table_16799784_9 WHERE longitude = "293.0E"
At a longitude of 293.0e, what is the diameter, in km?
CREATE TABLE table_16799784_9 (diameter__km_ VARCHAR, longitude VARCHAR)
SELECT image_name, image_url FROM images ORDER BY image_name
List all the image name and URLs in the order of their names.
CREATE TABLE images (image_name VARCHAR, image_url VARCHAR)
SELECT MAX(patient.admissionweight) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '012-58944' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1) AND NOT patient.admissionweight IS NULL GROUP...
what is the monthly maximum of the weight of patient 012-58944 during the first hospital visit?
CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE vitalperiodic ( ...
SELECT release_date FROM table_1681535_1 WHERE notes = "Bonus interview with Peter Purves"
What is the release date of the bonus interview with Peter Purves?
CREATE TABLE table_1681535_1 (release_date VARCHAR, notes VARCHAR)
SELECT COUNT(*), role_code FROM users GROUP BY role_code
Find the number of users in each role.
CREATE TABLE users (role_code VARCHAR)
SELECT "High rebounds" FROM table_74185 WHERE "Date" = 'October 14'
What two players had the highest rebounds for the October 14 game?
CREATE TABLE table_74185 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT narrator FROM table_1681535_1 WHERE notes = "Bonus interview with Frazer Hines"
Which narrator has the bonus interview with Frazer Hines?
CREATE TABLE table_1681535_1 (narrator VARCHAR, notes VARCHAR)
SELECT document_type_code FROM documents GROUP BY document_type_code HAVING COUNT(*) > 2
What document types have more than 2 corresponding documents?
CREATE TABLE documents (document_type_code VARCHAR)
SELECT "Pole position" FROM table_45447 WHERE "Race Name" = '2006 gehl championship finale'
What pole position did 2006 gehl championship finale have?
CREATE TABLE table_45447 ( "Round" real, "Race Name" text, "Pole position" text, "Winning driver" text, "Winning Team" text )
SELECT release_date FROM table_1681535_1 WHERE title = "Destiny of the Daleks"
What is the release date for Destiny of the Daleks?
CREATE TABLE table_1681535_1 (release_date VARCHAR, title VARCHAR)
SELECT COUNT(*) FROM Companies
How many companies are there?
CREATE TABLE Companies (Id VARCHAR)
SELECT "Away captain" FROM table_7302 WHERE "Venue" = 'old trafford'
What is the Away captain with a Venue that is old trafford?
CREATE TABLE table_7302 ( "Date" text, "Home captain" text, "Away captain" text, "Venue" text, "Result" text )
SELECT profits__billion_$_ FROM table_1682026_3 WHERE company = "Wells Fargo"
What are the profits of Wells Fargo (in billions)?
CREATE TABLE table_1682026_3 (profits__billion_$_ VARCHAR, company VARCHAR)
SELECT name FROM Companies ORDER BY Market_Value_billion DESC
List the names of companies in descending order of market value.
CREATE TABLE Companies (name VARCHAR, Market_Value_billion VARCHAR)
SELECT title FROM table_18569389_1 WHERE production_code = "2T6908"
Name the title for production code 2t6908
CREATE TABLE table_18569389_1 ( title VARCHAR, production_code VARCHAR )
SELECT MIN(rank) FROM table_1682026_3 WHERE company = "BNP Paribas"
What is the ranking of BNP Paribas?
CREATE TABLE table_1682026_3 (rank INTEGER, company VARCHAR)
SELECT name FROM Companies WHERE Headquarters <> 'USA'
What are the names of companies whose headquarters are not "USA"?
CREATE TABLE Companies (name VARCHAR, Headquarters VARCHAR)
SELECT intergiro_classification FROM table_12261926_2 WHERE stage = 21
What is the intergiro classification of stage 21?
CREATE TABLE table_12261926_2 ( intergiro_classification VARCHAR, stage VARCHAR )
SELECT headquarters FROM table_1682026_3 WHERE sales__billion_$_ = "69.2"
Where are the headquarters of the company whose sales were 69.2 billion?
CREATE TABLE table_1682026_3 (headquarters VARCHAR, sales__billion_$_ VARCHAR)
SELECT name, Assets_billion FROM Companies ORDER BY name
What are the name and assets of each company, sorted in ascending order of company name?
CREATE TABLE Companies (name VARCHAR, Assets_billion VARCHAR)
SELECT MIN(demographic.age) FROM demographic WHERE demographic.admission_type = "URGENT" AND demographic.dob_year > "2175"
Give the minimum age of patients whose admission type is urgent and were born before the year 2175.
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 procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) ...
SELECT assets__billion_$_ FROM table_1682026_3 WHERE headquarters = "China" AND profits__billion_$_ = "21.2"
What are the assets (in billions) of the company headquartered in China and whose profits are 21.2 billion?
CREATE TABLE table_1682026_3 (assets__billion_$_ VARCHAR, headquarters VARCHAR, profits__billion_$_ VARCHAR)
SELECT AVG(Profits_billion) FROM Companies
What are the average profits of companies?
CREATE TABLE Companies (Profits_billion INTEGER)
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 = 'WASHINGTON' AND date_day.day_number = 23 AND date_day.month_number = 4 A...
show me the latest flight on wednesday from ATLANTA to WASHINGTON
CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE airport ( airport_code varchar, airport_name text, airport_location text, state_code varchar, country_name varchar, time_zone_code...
SELECT profits__billion_$_ FROM table_1682026_3 WHERE market_value__billion_$_ = "172.9"
What are the profits (in billions) of the company with a market value of 172.9 billion?
CREATE TABLE table_1682026_3 (profits__billion_$_ VARCHAR, market_value__billion_$_ VARCHAR)
SELECT MAX(Sales_billion), MIN(Sales_billion) FROM Companies WHERE Industry <> "Banking"
What are the maximum and minimum sales of the companies whose industries are not "Banking".
CREATE TABLE Companies (Sales_billion INTEGER, Industry VARCHAR)
SELECT Carrier, SUM(Memory_in_G) FROM phone GROUP BY Carrier ORDER BY SUM(Memory_in_G) DESC
A bar chart about what are the memories and carriers of phones?, and order by the Y-axis in descending.
CREATE TABLE phone_market ( Market_ID int, Phone_ID text, Num_of_stock int ) CREATE TABLE phone ( Name text, Phone_ID int, Memory_in_G int, Carrier text, Price real ) CREATE TABLE market ( Market_ID int, District text, Num_of_employees int, Num_of_shops real, Rankin...
SELECT profits__billion_$_ FROM table_1682026_3 WHERE assets__billion_$_ = "192.8"
What are the profits (in billions) where the assets are 192.8 billion?
CREATE TABLE table_1682026_3 (profits__billion_$_ VARCHAR, assets__billion_$_ VARCHAR)
SELECT COUNT(DISTINCT Industry) FROM Companies
How many different industries are the companies in?
CREATE TABLE Companies (Industry VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2155" AND diagnoses.long_title = "Other specified gastritis, with hemorrhage"
how many patients admitted before 2155 are diagnosed with other specified gastritis, with hemorrhage?
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 procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) ...
SELECT COUNT(index_weighting___percentage__at_17_january_2013) FROM table_168274_1 WHERE company = "Bouygues"
Name the total number of index weighting % at 17 january 2013 for bouygues
CREATE TABLE table_168274_1 (index_weighting___percentage__at_17_january_2013 VARCHAR, company VARCHAR)
SELECT name FROM buildings ORDER BY Height DESC
List the names of buildings in descending order of building height.
CREATE TABLE buildings (name VARCHAR, Height VARCHAR)
SELECT SUM("B Score") FROM table_65946 WHERE "Total" > '16.125' AND "Position" = '3rd'
What is the B Score when the total is more than 16.125, and position is 3rd?
CREATE TABLE table_65946 ( "Position" text, "Gymnast" text, "A Score" real, "B Score" real, "Total" real )
SELECT icb_sector FROM table_168274_1 WHERE ticker_symbol = "AI"
Name the icb sector for ai
CREATE TABLE table_168274_1 (icb_sector VARCHAR, ticker_symbol VARCHAR)
SELECT Stories FROM buildings ORDER BY Height DESC LIMIT 1
Find the stories of the building with the largest height.
CREATE TABLE buildings (Stories VARCHAR, Height VARCHAR)
SELECT "Country" FROM table_50932 WHERE "Place" = 't1' AND "Score" = '72-68-70-73=283'
Which country had a place of t1, as well as a score of 72-68-70-73=283?
CREATE TABLE table_50932 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" text )
SELECT company FROM table_168274_1 WHERE index_weighting___percentage__at_17_january_2013 = "11.96"
Name the company where index weighting % is 11.96
CREATE TABLE table_168274_1 (company VARCHAR, index_weighting___percentage__at_17_january_2013 VARCHAR)
SELECT T3.name, T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id
List the name of a building along with the name of a company whose office is in the building.
CREATE TABLE buildings (name VARCHAR, id VARCHAR); CREATE TABLE Office_locations (building_id VARCHAR, company_id VARCHAR); CREATE TABLE Companies (name VARCHAR, id VARCHAR)
SELECT "visitor" FROM table_204_557 WHERE id = 1
what is the name of first visitor on this chart ?
CREATE TABLE table_204_557 ( id number, "#" number, "date" text, "visitor" text, "score" text, "home" text, "record" text, "pts" number )
SELECT index_weighting___percentage__at_17_january_2013 FROM table_168274_1 WHERE ticker_symbol = "RNO"
Name the index weighting % for 17 januaary 2013 for rno
CREATE TABLE table_168274_1 (index_weighting___percentage__at_17_january_2013 VARCHAR, ticker_symbol VARCHAR)
SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id HAVING COUNT(*) > 1
Show the names of the buildings that have more than one company offices.
CREATE TABLE buildings (name VARCHAR, id VARCHAR); CREATE TABLE Companies (id VARCHAR); CREATE TABLE Office_locations (building_id VARCHAR, company_id VARCHAR)
SELECT "Away team" FROM table_11606 WHERE "Home team" = 'footscray'
Which team played Footscray?
CREATE TABLE table_11606 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT COUNT(headquarters) FROM table_1682026_7 WHERE company = "HSBC"
How many headquarters are there listed for HSBC?
CREATE TABLE table_1682026_7 (headquarters VARCHAR, company VARCHAR)
SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id ORDER BY COUNT(*) DESC LIMIT 1
Show the name of the building that has the most company offices.
CREATE TABLE buildings (name VARCHAR, id VARCHAR); CREATE TABLE Companies (id VARCHAR); CREATE TABLE Office_locations (building_id VARCHAR, company_id VARCHAR)
SELECT "Processors Supported" FROM table_39045 WHERE "Memory" = 'ddr2' AND "Model" = 'nforce 550'
What are the processors supported by a ddr2 memory and the nforce 550 model?
CREATE TABLE table_39045 ( "Model" text, "Processors Supported" text, "FSB/HT Frequency (MHz)" text, "Memory" text, "PCI-Express" text, "SATA" text, "PATA" text, "Sound" text )
SELECT market_value__billion_$_ FROM table_1682026_7 WHERE assets__billion_$_ = "1,380.88"
What is the market value in billions when the assets totaled 1,380.88?
CREATE TABLE table_1682026_7 (market_value__billion_$_ VARCHAR, assets__billion_$_ VARCHAR)
SELECT name FROM buildings WHERE Status = "on-hold" ORDER BY Stories
Please show the names of the buildings whose status is "on-hold", in ascending order of stories.
CREATE TABLE buildings (name VARCHAR, Status VARCHAR, Stories VARCHAR)
SELECT Id AS "post_link", AnswerCount FROM Posts WHERE PostTypeId = 1 AND AcceptedAnswerId IS NULL AND OwnerUserId = '##UserId:int##'
Questions with answers, but no accepted answer.
CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, UserId number, UserDisplayName text, Comment text, Text text, ContentLicense text ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ...
SELECT MAX(rank) FROM table_1682026_7 WHERE industry = "Oil and gas" AND headquarters = "Netherlands"
What is the highest rank of a company in the oil and gas industry headquartered in Netherlands?
CREATE TABLE table_1682026_7 (rank INTEGER, industry VARCHAR, headquarters VARCHAR)
SELECT Industry, COUNT(*) FROM Companies GROUP BY Industry
Please show each industry and the corresponding number of companies in that industry.
CREATE TABLE Companies (Industry VARCHAR)
SELECT "Party" FROM table_25286 WHERE "Constituency" = '1. Chennai North'
What is the party when the constituency is 1. Chennai North?
CREATE TABLE table_25286 ( "Constituency" text, "Winner" text, "Party" text, "Margin" real, "Runner-up a" text, "Party a" text )
SELECT MIN(rank) FROM table_1682026_7 WHERE assets__billion_$_ = "248.44"
What is the lowest rank of a company with 248.44 billions of dollars in assets?
CREATE TABLE table_1682026_7 (rank INTEGER, assets__billion_$_ VARCHAR)
SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC
Please show the industries of companies in descending order of the number of companies.
CREATE TABLE Companies (Industry VARCHAR)
SELECT AVG(losses) FROM table_name_35 WHERE wimmera_fl = "minyip murtoa"
Which Losses have a Wimmera FL of minyip murtoa?
CREATE TABLE table_name_35 ( losses INTEGER, wimmera_fl VARCHAR )
SELECT industry FROM table_1682026_7 WHERE sales__billion_$_ = "89.16"
In what industry was the company that had 89.16 billions of dollars in sales?
CREATE TABLE table_1682026_7 (industry VARCHAR, sales__billion_$_ VARCHAR)
SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC LIMIT 1
List the industry shared by the most companies.
CREATE TABLE Companies (Industry VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/AFRICAN AMERICAN" AND demographic.dob_year < "2107"
Among patients whose birth year is before 2107, how many of them belonged to black/african american ethnic origin?
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, ...
SELECT COUNT(rank) FROM table_1682026_9 WHERE profits__billion_$_ = "9.52"
Name the number of rank for 9.52 profits
CREATE TABLE table_1682026_9 (rank VARCHAR, profits__billion_$_ VARCHAR)
SELECT name FROM buildings WHERE NOT id IN (SELECT building_id FROM Office_locations)
List the names of buildings that have no company office.
CREATE TABLE buildings (name VARCHAR, id VARCHAR, building_id VARCHAR); CREATE TABLE Office_locations (name VARCHAR, id VARCHAR, building_id VARCHAR)
SELECT "Opponent" FROM table_79956 WHERE "Date" = 'august 12'
Who did they play on August 12?
CREATE TABLE table_79956 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text )
SELECT country FROM table_1682026_9 WHERE market_value__billion_$_ = "188.77"
Name the country for 188.77 market value
CREATE TABLE table_1682026_9 (country VARCHAR, market_value__billion_$_ VARCHAR)
SELECT Industry FROM Companies WHERE Headquarters = "USA" INTERSECT SELECT Industry FROM Companies WHERE Headquarters = "China"
Show the industries shared by companies whose headquarters are "USA" and companies whose headquarters are "China".
CREATE TABLE Companies (Industry VARCHAR, Headquarters VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "3" AND prescriptions.drug_type = "BASE"
Provide me the list of patients on base drug prescription who havea hospital stay greater than three days.
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 prescriptions...
SELECT numeral FROM table_1682865_1 WHERE english_name = "Florin"
What is the numeral where the English name is Florin?
CREATE TABLE table_1682865_1 (numeral VARCHAR, english_name VARCHAR)
SELECT COUNT(*) FROM Companies WHERE Industry = "Banking" OR Industry = "Conglomerate"
Find the number of companies whose industry is "Banking" or "Conglomerate",
CREATE TABLE Companies (Industry VARCHAR)
SELECT SUM(year) FROM table_name_75 WHERE entrant = "elf team tyrrell" AND points = "39" AND chassis = "tyrrell 007"
What year did Elf Team Tyrrell have 39 points and a Tyrrell 007 Chassis?
CREATE TABLE table_name_75 ( year INTEGER, chassis VARCHAR, entrant VARCHAR, points VARCHAR )
SELECT £1_fraction FROM table_1682865_1 WHERE reverse = "Hare"
What is the £1 fraction when the reverse is hare?
CREATE TABLE table_1682865_1 (£1_fraction VARCHAR, reverse VARCHAR)
SELECT Headquarters FROM Companies GROUP BY Headquarters HAVING COUNT(*) > 2
Show the headquarters shared by more than two companies.
CREATE TABLE Companies (Headquarters VARCHAR)
SELECT "Club" FROM table_36909 WHERE "Venue" = 'pepsi arena'
Venue of Pepsi arena involved what club?
CREATE TABLE table_36909 ( "Club" text, "Sport" text, "Founded" real, "League" text, "Venue" text, "Head Coach" text )
SELECT introduction FROM table_1682865_1 WHERE numeral = "6d"
What date was the 6d introduced?
CREATE TABLE table_1682865_1 (introduction VARCHAR, numeral VARCHAR)
SELECT COUNT(*) FROM Products
How many products are there?
CREATE TABLE Products (Id VARCHAR)
SELECT nationality FROM table_name_87 WHERE player = "graham gooch"
What is Graham Gooch's nationality?
CREATE TABLE table_name_87 ( nationality VARCHAR, player VARCHAR )
SELECT irish_name FROM table_1682865_1 WHERE £1_fraction = "1/240"
What is the Irish name for the £1 fraction of 1/240?
CREATE TABLE table_1682865_1 (irish_name VARCHAR, £1_fraction VARCHAR)
SELECT Product_Name FROM Products ORDER BY Product_Price
List the name of products in ascending order of price.
CREATE TABLE Products (Product_Name VARCHAR, Product_Price VARCHAR)