answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT T1.Title, T2.Type FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID | Please show the titles of films and the types of market estimations. | CREATE TABLE film (Title VARCHAR, Film_ID VARCHAR); CREATE TABLE film_market_estimation (Type VARCHAR, Film_ID VARCHAR) |
SELECT name FROM pilot WHERE NOT pilot_id IN (SELECT Winning_Pilot FROM MATCH WHERE country = 'Australia') | find the name of pilots who did not win the matches held in the country of Australia. | CREATE TABLE pilot (
name VARCHAR,
pilot_id VARCHAR,
Winning_Pilot VARCHAR,
country VARCHAR
)
CREATE TABLE MATCH (
name VARCHAR,
pilot_id VARCHAR,
Winning_Pilot VARCHAR,
country VARCHAR
) |
SELECT vfl_games FROM table_16527640_3 WHERE location = "off Goodenough Island Milne Bay" | How many VFL games were located off Goodenough Island Milne Bay? | CREATE TABLE table_16527640_3 (vfl_games VARCHAR, location VARCHAR) |
SELECT DISTINCT T1.Director FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID WHERE T2.Year = 1995 | Show the distinct director of films with market estimation in the year of 1995. | CREATE TABLE film (Director VARCHAR, Film_ID VARCHAR); CREATE TABLE film_market_estimation (Film_ID VARCHAR, Year VARCHAR) |
SELECT MAX(championship) FROM table_name_85 WHERE league_cup = 1 AND total = "17" | What is the highest championship that has 1 as the league cup, and 17 as the total? | CREATE TABLE table_name_85 (
championship INTEGER,
league_cup VARCHAR,
total VARCHAR
) |
SELECT 3 AS rd_stage FROM table_16537783_2 WHERE parameter = "Thrust" | Name the 3rd stage for parameter of thrust | CREATE TABLE table_16537783_2 (parameter VARCHAR) |
SELECT AVG(T2.Number_cities) FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T1.Low_Estimate > 10000 | What is the average number of cities of markets with low film market estimate bigger than 10000? | CREATE TABLE market (Number_cities INTEGER, Market_ID VARCHAR); CREATE TABLE film_market_estimation (Market_ID VARCHAR, Low_Estimate INTEGER) |
SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY AVG(SALARY) | For those employees who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of hire_date and the average of salary bin hire_date by weekday, display in ascending by the the average of salary. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varch... |
SELECT 1 AS st_stage FROM table_16537783_2 WHERE parameter = "Diameter" | Name the 1st stage for parameter being diameter | CREATE TABLE table_16537783_2 (parameter VARCHAR) |
SELECT T2.Country, T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID | Please list the countries and years of film market estimations. | CREATE TABLE film_market_estimation (Year VARCHAR, Market_ID VARCHAR); CREATE TABLE market (Country VARCHAR, Market_ID VARCHAR) |
SELECT verb_meaning FROM table_1745843_9 WHERE part_2 = "half drosch" | Name the verb meaning for half drosch | CREATE TABLE table_1745843_9 (
verb_meaning VARCHAR,
part_2 VARCHAR
) |
SELECT archbishop FROM table_1656555_1 WHERE ordained_bishop = "November 30, 1925" | Which archbishop was ordained as bishop November 30, 1925? | CREATE TABLE table_1656555_1 (archbishop VARCHAR, ordained_bishop VARCHAR) |
SELECT T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T2.Country = "Japan" ORDER BY T1.Year DESC | Please list the years of film market estimations when the market is in country "Japan" in descending order. | CREATE TABLE film_market_estimation (Year VARCHAR, Market_ID VARCHAR); CREATE TABLE market (Market_ID VARCHAR, Country VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "MARRIED" AND lab.label = "Albumin" | count the number of patients whose marital status is married and lab test name is albumin? | 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 died FROM table_1656555_1 WHERE ordained_bishop = "April 26, 1927" | What is the death date of the archbishop who was ordained as bishop April 26, 1927? | CREATE TABLE table_1656555_1 (died VARCHAR, ordained_bishop VARCHAR) |
SELECT Studio, COUNT(*) FROM film GROUP BY Studio | List the studios of each film and the number of films produced by that studio. | CREATE TABLE film (Studio VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND diagnoses.long_title = "Percutaneous transluminal coronary angioplasty status" | How many patients admitted as clinic referral (premature) were diagnosed with percutaneous transluminal coronary angioplasty status? | 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(Appointed) AS archbishop FROM table_1656555_1 WHERE ordained_priest = "December 20, 1959" | How many appointed archbishops were ordained as priests on December 20, 1959 | CREATE TABLE table_1656555_1 (Appointed VARCHAR, ordained_priest VARCHAR) |
SELECT Studio FROM film GROUP BY Studio ORDER BY COUNT(*) DESC LIMIT 1 | List the name of film studio that have the most number of films. | CREATE TABLE film (Studio VARCHAR) |
SELECT "Cores" FROM table_13573 WHERE "Part number(s)" = 'cl8064701477202' | What's the cores with the part number cl8064701477202? | CREATE TABLE table_13573 (
"Model number" text,
"sSpec number" text,
"Cores" text,
"Frequency" text,
"Turbo" text,
"L2 cache" text,
"L3 cache" text,
"GPU model" text,
"GPU frequency" text,
"Socket" text,
"I/O bus" text,
"Release date" text,
"Part number(s)" text,
... |
SELECT ordained_bishop FROM table_1656555_1 WHERE ordained_priest = "December 1838" | What date was the person ordained as a priest in December 1838 ordained as a bishop? | CREATE TABLE table_1656555_1 (ordained_bishop VARCHAR, ordained_priest VARCHAR) |
SELECT Studio FROM film GROUP BY Studio HAVING COUNT(*) >= 2 | List the names of studios that have at least two films. | CREATE TABLE film (Studio VARCHAR) |
SELECT COUNT("nation") FROM table_203_747 WHERE "gold" >= 10 | how many countries have at least 10 gold medals in the asian youth games ? | CREATE TABLE table_203_747 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) |
SELECT ordained_priest FROM table_1656555_1 WHERE vacated_throne = "August 18, 1885" | When was the archbishop who vacated the throne on August 18, 1885 ordained as a priest? | CREATE TABLE table_1656555_1 (ordained_priest VARCHAR, vacated_throne VARCHAR) |
SELECT Title FROM film WHERE NOT Film_ID IN (SELECT Film_ID FROM film_market_estimation) | List the title of films that do not have any market estimation. | CREATE TABLE film_market_estimation (Title VARCHAR, Film_ID VARCHAR); CREATE TABLE film (Title VARCHAR, Film_ID VARCHAR) |
SELECT MAX(demographic.age) FROM demographic WHERE demographic.diagnosis = "ABDOMINAL PAIN" AND demographic.days_stay = "43" | calculate the maximum age of patients with abdominal pain primary disease who were admitted to hospital for 43 days. | 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 text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... |
SELECT COUNT(player) FROM table_16570286_4 WHERE best_bowling = "4/125" | How many players Bowled 4/125? | CREATE TABLE table_16570286_4 (player VARCHAR, best_bowling VARCHAR) |
SELECT Studio FROM film WHERE Director = "Nicholas Meyer" INTERSECT SELECT Studio FROM film WHERE Director = "Walter Hill" | Show the studios that have produced films with director "Nicholas Meyer" and "Walter Hill". | CREATE TABLE film (Studio VARCHAR, Director VARCHAR) |
SELECT chinese_title FROM table_name_91 WHERE premiere = 31 | What is the Chinese title with a premiere rating of 31? | CREATE TABLE table_name_91 (
chinese_title VARCHAR,
premiere VARCHAR
) |
SELECT MAX(wickets) FROM table_16570286_4 WHERE average = "22.66" | What number of wickets were there when the average was 22.66? | CREATE TABLE table_16570286_4 (wickets INTEGER, average VARCHAR) |
SELECT title, Studio FROM film WHERE Studio LIKE "%Universal%" | Find the titles and studios of the films that are produced by some film studios that contained the word "Universal". | CREATE TABLE film (title VARCHAR, Studio VARCHAR) |
SELECT "Mountain Range" FROM table_71991 WHERE "Mountain Peak" = 'mount hubbard' | Which mountain range includes Mount Hubbard? | CREATE TABLE table_71991 (
"Rank" real,
"Mountain Peak" text,
"Province" text,
"Mountain Range" text,
"Location" text
) |
SELECT wickets FROM table_16570286_4 WHERE average = "22.66" | How many wickets were there when average was 22.66? | CREATE TABLE table_16570286_4 (wickets VARCHAR, average VARCHAR) |
SELECT Studio FROM film EXCEPT SELECT Studio FROM film WHERE Director = "Walter Hill" | Show the studios that have not produced films with director "Walter Hill". | CREATE TABLE film (Studio VARCHAR, Director 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 = 'OAKLAND' AND date_day.day_number = 25 AND date_day.month_number = 6 AND d... | what flights are available friday from PHILADELPHIA to OAKLAND | CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,
arrival_time int,
arrival_airline text,
arrival_flight_number int,
departure_time int,
departure_airline text,
departure_flight_number int,
stop_time int
)
CREATE TABLE aircraft (
... |
SELECT best_bowling FROM table_16570286_4 WHERE average = "23.33" | What was the best bowling score when the average was 23.33? | CREATE TABLE table_16570286_4 (best_bowling VARCHAR, average VARCHAR) |
SELECT Studio FROM film GROUP BY Studio HAVING AVG(Gross_in_dollar) >= 4500000 | List the studios which average gross is above 4500000. | CREATE TABLE film (Studio VARCHAR, Gross_in_dollar INTEGER) |
SELECT opponent_in_the_final FROM table_name_23 WHERE date = "january 10, 2004" | Final that has a Date of january 10, 2004 had what opponent? | CREATE TABLE table_name_23 (
opponent_in_the_final VARCHAR,
date VARCHAR
) |
SELECT MAX(matches) FROM table_16570286_4 WHERE wickets = 11 | How many matches had 11 wickets? | CREATE TABLE table_16570286_4 (matches INTEGER, wickets VARCHAR) |
SELECT t1.title FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID ORDER BY high_estimate DESC LIMIT 1 | What is the title of the film that has the highest high market estimation. | CREATE TABLE film_market_estimation (Film_ID VARCHAR); CREATE TABLE film (Film_ID VARCHAR) |
SELECT Grape, COUNT(*) FROM wine GROUP BY Grape ORDER BY Grape DESC | What are the numbers of wines for different grapes Plot them as bar chart, sort by the bar in desc. | CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TEXT,
Year INTEGER,
Price INTEGER,
Score INTEGER,
Cases INTEGER,
Drink TEXT
)
CREATE TABLE appellations (
No INTEGER,
Appelation TEXT,
County TEXT,
State TEXT,
Area... |
SELECT MAX(wickets) FROM table_16570286_4 WHERE player = "Alec Bedser" | How many wickets did Alec bedser have? | CREATE TABLE table_16570286_4 (wickets INTEGER, player VARCHAR) |
SELECT title, director FROM film WHERE NOT film_id IN (SELECT film_id FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.market_id = T2.Market_ID WHERE country = 'China') | What are the titles and directors of the films were never presented in China? | CREATE TABLE film (title VARCHAR, director VARCHAR, film_id VARCHAR, country VARCHAR); CREATE TABLE market (Market_ID VARCHAR); CREATE TABLE film_market_estimation (market_id VARCHAR) |
SELECT "Visiting Team" FROM table_11235 WHERE "Stadium" = 'lincoln financial field' AND "Final Score" = '24-14' | Who was the visiting team at Lincoln Financial Field when the final score was 24-14? | CREATE TABLE table_11235 (
"Date" text,
"Visiting Team" text,
"Final Score" text,
"Host Team" text,
"Stadium" text
) |
SELECT cfl_team FROM table_16575609_1 WHERE player = "Dimitri Tsoumpas" | Who picked dimitri tsoumpas? | CREATE TABLE table_16575609_1 (cfl_team VARCHAR, player VARCHAR) |
SELECT COUNT(*) FROM Ref_calendar | How many calendar items do we have? | CREATE TABLE Ref_calendar (Id VARCHAR) |
SELECT COUNT(*) FROM customers | How many customers do we have? | CREATE TABLE services (
service_id number,
service_type_code text,
workshop_group_id number,
product_description text,
product_name text,
product_price number,
other_product_service_details text
)
CREATE TABLE performers (
performer_id number,
address_id number,
customer_name te... |
SELECT position FROM table_16575609_1 WHERE cfl_team = "Winnipeg Blue Bombers" | What position did the winnipeg blue bombers draft? | CREATE TABLE table_16575609_1 (position VARCHAR, cfl_team VARCHAR) |
SELECT calendar_date, day_Number FROM Ref_calendar | Show all calendar dates and day Numbers. | CREATE TABLE Ref_calendar (calendar_date VARCHAR, day_Number VARCHAR) |
SELECT "Unit" FROM table_37329 WHERE "Avoirdupois value" = '57.602 gr.' | What unit has an Avoirdupois value of 57.602 gr.? | CREATE TABLE table_37329 (
"Unit" text,
"Russian" text,
"Translation" text,
"Ratio" real,
"Metric value" text,
"Avoirdupois value" text,
"Ordinary value" text
) |
SELECT MIN(pick__number) FROM table_16575609_1 WHERE player = "Brendon LaBatte" | Where did Brendon Labatte get picked? | CREATE TABLE table_16575609_1 (pick__number INTEGER, player VARCHAR) |
SELECT COUNT(*) FROM Ref_document_types | Show the number of document types. | CREATE TABLE Ref_document_types (Id VARCHAR) |
SELECT date FROM table_11636213_7 WHERE result = "6–2, 4–6, 6–4" | What date was the result 6 2, 4 6, 6 4? | CREATE TABLE table_11636213_7 (
date VARCHAR,
result VARCHAR
) |
SELECT cfl_team FROM table_16575609_1 WHERE college = "Weber State" | Who picked a player from Weber State? | CREATE TABLE table_16575609_1 (cfl_team VARCHAR, college VARCHAR) |
SELECT document_type_code, document_type_name FROM Ref_document_types | List all document type codes and document type names. | CREATE TABLE Ref_document_types (document_type_code VARCHAR, document_type_name VARCHAR) |
SELECT COUNT("Team") FROM table_19215 WHERE "Points For" = '38' | How many teams scored exactly 38 points | CREATE TABLE table_19215 (
"Team" text,
"First Played" real,
"Played" real,
"Win" real,
"Draw" real,
"Loss" real,
"Points For" real,
"Ponts Against" real,
"Last Meeting" real
) |
SELECT position FROM table_16575609_1 WHERE college = "Louisiana-Lafayette" | What position was taken out of Louisiana-Lafayette? | CREATE TABLE table_16575609_1 (position VARCHAR, college VARCHAR) |
SELECT document_type_name, document_type_description FROM Ref_document_types WHERE document_type_code = "RV" | What is the name and description for document type code RV? | CREATE TABLE Ref_document_types (document_type_name VARCHAR, document_type_description VARCHAR, document_type_code VARCHAR) |
SELECT (SELECT "release date" FROM table_204_742 WHERE "single title" = '"hot love"') < (SELECT "release date" FROM table_204_742 WHERE "single title" = '"run to me"') | was hot love released before run to me ? | CREATE TABLE table_204_742 (
id number,
"release date" text,
"single title" text,
"uk singles chart\nposition" number,
"french\ncharts" number,
"german\ncharts" number,
"irish\ncharts" number,
"various" text
) |
SELECT college FROM table_16575609_4 WHERE cfl_team = "Calgary Stampeders" | Name the college for calgary stampeders | CREATE TABLE table_16575609_4 (college VARCHAR, cfl_team VARCHAR) |
SELECT document_type_code FROM Ref_document_types WHERE document_type_name = "Paper" | What is the document type code for document type "Paper"? | CREATE TABLE Ref_document_types (document_type_code VARCHAR, document_type_name VARCHAR) |
SELECT t1.celllabel FROM (SELECT intakeoutput.celllabel, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM intakeoutput WHERE intakeoutput.cellpath LIKE '%intake%' AND DATETIME(intakeoutput.intakeoutputtime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') GROUP BY intakeoutput.celllabel) AS ... | the previous year, what were the five most common input events? | 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(pick__number) FROM table_16575609_4 WHERE cfl_team = "Edmonton Eskimos" | Name the most pick number for cfl team being edmonton eskimos | CREATE TABLE table_16575609_4 (pick__number INTEGER, cfl_team VARCHAR) |
SELECT COUNT(*) FROM All_documents WHERE document_type_code = "CV" OR document_type_code = "BK" | Show the number of documents with document type code CV or BK. | CREATE TABLE All_documents (document_type_code VARCHAR) |
SELECT COUNT("Division") FROM table_40634 WHERE "Regular Season" = '2nd, northeast' AND "Year" < '2008' | When the regular season of 2nd, Northeast and the year was less than 2008 what was the total number of Division? | CREATE TABLE table_40634 (
"Year" real,
"Division" real,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
) |
SELECT COUNT(original_airdate) FROM table_16581695_3 WHERE production_code = 210 | How many days are associated with production code 210? | CREATE TABLE table_16581695_3 (original_airdate VARCHAR, production_code VARCHAR) |
SELECT date_stored FROM All_documents WHERE Document_name = "Marry CV" | What is the date when the document "Marry CV" was stored? | CREATE TABLE All_documents (date_stored VARCHAR, Document_name VARCHAR) |
SELECT "Away team" FROM table_78226 WHERE "Tie no" > '16' AND "Home team" = 'forest green rovers' | Who was the away team in a tie no larger than 16 with forest green rovers at home? | CREATE TABLE table_78226 (
"Tie no" real,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" real
) |
SELECT COUNT(title) FROM table_16581695_3 WHERE production_code = 211 | How many titles have a production code of 211? | CREATE TABLE table_16581695_3 (title VARCHAR, production_code VARCHAR) |
SELECT T2.day_Number, T1.Date_Stored FROM All_documents AS T1 JOIN Ref_calendar AS T2 ON T1.date_stored = T2.calendar_date | What is the day Number and date of all the documents? | CREATE TABLE All_documents (Date_Stored VARCHAR, date_stored VARCHAR); CREATE TABLE Ref_calendar (day_Number VARCHAR, calendar_date VARCHAR) |
SELECT MAX("Consecutive starts") FROM table_30622 WHERE "Player" = 'Jason Gildon' | What is the largest number of consecutive starts for jason gildon? | CREATE TABLE table_30622 (
"Position" text,
"Player" text,
"Period" text,
"Teams" text,
"Consecutive starts" real,
"Playoffs" real,
"Total" real
) |
SELECT COUNT(no_in_season) FROM table_16581695_3 WHERE production_code = 204 | How many seasons have a production code of 204? | CREATE TABLE table_16581695_3 (no_in_season VARCHAR, production_code VARCHAR) |
SELECT T2.document_type_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code = T2.document_type_code WHERE T1.document_name = "How to read a book" | What is the document type name for the document with name "How to read a book"? | CREATE TABLE Ref_document_types (document_type_name VARCHAR, document_type_code VARCHAR); CREATE TABLE All_documents (document_type_code VARCHAR, document_name VARCHAR) |
SELECT "Record" FROM table_77731 WHERE "Attendance" = '41,573' | What's the record when the attendance was 41,573? | CREATE TABLE table_77731 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) |
SELECT title FROM table_16581695_3 WHERE written_by = "Matt Wayne" | What title was written by Matt Wayne? | CREATE TABLE table_16581695_3 (title VARCHAR, written_by VARCHAR) |
SELECT COUNT(*) FROM Ref_locations | Show the number of locations. | CREATE TABLE Ref_locations (Id VARCHAR) |
SELECT * FROM table_train_27 WHERE immune_suppression = 1 | sepsis induced immunosuppression | CREATE TABLE table_train_27 (
"id" int,
"bone_marrow_transplant" bool,
"antimicrobial_therapy" bool,
"immune_suppression" bool,
"hiv_infection" bool,
"autoimmune_disease" bool,
"hepatitis_b_infection" bool,
"renal_disease" bool,
"total_parenteral_nutrition" bool,
"surgery" bool,
... |
SELECT no_in_series FROM table_16581695_4 WHERE production_code = "303" | What is the series episode number of the episode with production code 303? | CREATE TABLE table_16581695_4 (no_in_series VARCHAR, production_code VARCHAR) |
SELECT location_code, location_name FROM Ref_locations | List all location codes and location names. | CREATE TABLE Ref_locations (location_code VARCHAR, location_name VARCHAR) |
SELECT "play" FROM table_79409 WHERE "company" = 'cyprus theatre organisation' | what is the play when the company is cyprus theatre organisation? | CREATE TABLE table_79409 (
"play" text,
"author" text,
"company" text,
"base" text,
"country" text
) |
SELECT production_code FROM table_16581695_4 WHERE no_in_season = "15" | What is the production code for episode 15 in season 3? | CREATE TABLE table_16581695_4 (production_code VARCHAR, no_in_season VARCHAR) |
SELECT location_name, location_description FROM Ref_locations WHERE location_code = "x" | What are the name and description for location code x? | CREATE TABLE Ref_locations (location_name VARCHAR, location_description VARCHAR, location_code 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.label = "Transferrin" | Give me the number of unmarried patients who were ordered a transferrin lab test. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescription... |
SELECT directed_by FROM table_16581695_4 WHERE no_in_season = "12" | Who directed episode 12 in season 3? | CREATE TABLE table_16581695_4 (directed_by VARCHAR, no_in_season VARCHAR) |
SELECT location_code FROM Ref_locations WHERE location_name = "Canada" | What is the location code for the country "Canada"? | CREATE TABLE Ref_locations (location_code VARCHAR, location_name VARCHAR) |
SELECT opponent FROM table_name_25 WHERE result = "w 37-14" | Can you tell me the Opponent that has the Result of w 37-14? | CREATE TABLE table_name_25 (
opponent VARCHAR,
result VARCHAR
) |
SELECT tree_species FROM table_16577990_1 WHERE total_plant_species = 258 | How many tree species are listed when the total plant species is 258? | CREATE TABLE table_16577990_1 (tree_species VARCHAR, total_plant_species VARCHAR) |
SELECT COUNT(*) FROM ROLES | How many roles are there? | CREATE TABLE ROLES (Id VARCHAR) |
SELECT "Date" FROM table_77998 WHERE "Opponent" = 'wimbledon' AND "Result" = 'won 2-0' | What is the Date with a Opponent with wimbledon, and a Result of won 2-0? | CREATE TABLE table_77998 (
"Round" text,
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text
) |
SELECT COUNT(tree_species) FROM table_16577990_1 WHERE total_plant_species = 113 | How many tree species are there when the total plant species is 113? | CREATE TABLE table_16577990_1 (tree_species VARCHAR, total_plant_species VARCHAR) |
SELECT role_code, role_name, role_description FROM ROLES | List all role codes, role names, and role descriptions. | CREATE TABLE ROLES (role_code VARCHAR, role_name VARCHAR, role_description VARCHAR) |
SELECT COUNT(career_and_other_notes) FROM table_1557974_1 WHERE birthplace = "Nara" | How many wrestlers were born in nara, and have a completed 'career and other notes' section? | CREATE TABLE table_1557974_1 (
career_and_other_notes VARCHAR,
birthplace VARCHAR
) |
SELECT MIN(size_in_km²) FROM table_16577990_1 WHERE central_forest_reserve = "Itwara" | What is the size of Itwara central forest reserve? | CREATE TABLE table_16577990_1 (size_in_km² INTEGER, central_forest_reserve VARCHAR) |
SELECT role_name, role_description FROM ROLES WHERE role_code = "MG" | What are the name and description for role code "MG"? | CREATE TABLE ROLES (role_name VARCHAR, role_description VARCHAR, role_code VARCHAR) |
SELECT "Zodiac sign" FROM table_60473 WHERE "English name" = 'march' | What is the zodiac sign for the English March? | CREATE TABLE table_60473 (
"English name" text,
"Thai name" text,
"Abbr." text,
"Transcription" text,
"Sanskrit word" text,
"Zodiac sign" text
) |
SELECT tree_species FROM table_16577990_1 WHERE central_forest_reserve = "Kitechura" | How many tree species are in the kitechura reserve? | CREATE TABLE table_16577990_1 (tree_species VARCHAR, central_forest_reserve VARCHAR) |
SELECT role_description FROM ROLES WHERE role_name = "Proof Reader" | Show the description for role name "Proof Reader". | CREATE TABLE ROLES (role_description VARCHAR, role_name 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, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'OAKLAND' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER... | show me all the flights between OAKLAND and DENVER | CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)... |
SELECT title FROM table_16617025_1 WHERE us_viewers__millions_ = "17.93" | What episode titles have 17.93 million U.S. viewers? | CREATE TABLE table_16617025_1 (title VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT employee_name, role_code, date_of_birth FROM Employees WHERE employee_Name = 'Armani' | Show the name, role code, and date of birth for the employee with name 'Armani'. | CREATE TABLE Employees (employee_name VARCHAR, role_code VARCHAR, date_of_birth VARCHAR, employee_Name VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.