answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT english_translation FROM table_1805919_1 WHERE traditional_chinese = "哀郢" | What is the English translation of 哀郢? | CREATE TABLE table_1805919_1 (english_translation VARCHAR, traditional_chinese VARCHAR) |
SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id ORDER BY T2.Feb DESC LIMIT 1 | Which city has the highest temperature in February? | CREATE TABLE city (city VARCHAR, city_id VARCHAR); CREATE TABLE temperature (city_id VARCHAR, Feb VARCHAR) |
SELECT MIN("Rank") FROM table_71392 WHERE "Name" = 'jens kruppa' AND "Lane" > '2' | What is the lowest rank of Jens Kruppa in a lane larger than 2? | CREATE TABLE table_71392 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
) |
SELECT transcription__based_on_pinyin_ FROM table_1805919_1 WHERE english_translation = "Alas for the Days Gone By" | What is the Pinyin transcription for "Alas for the Days Gone By"? | CREATE TABLE table_1805919_1 (transcription__based_on_pinyin_ VARCHAR, english_translation VARCHAR) |
SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Jul OR T2.Mar > T2.Oct | Give me a list of cities whose temperature in March is lower than that in July or higher than that in Oct? | CREATE TABLE city (city VARCHAR, city_id VARCHAR); CREATE TABLE temperature (city_id VARCHAR, Mar VARCHAR, Jul VARCHAR, Oct VARCHAR) |
SELECT "Incumbent" FROM table_18516 WHERE "Party" = 'Republican' | For the Republican party what are the names of the incumbents? | CREATE TABLE table_18516 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) |
SELECT english_name FROM table_180802_2 WHERE abbr = "พ.ย." | What's the English name for the month with พ.ย. abbreviation? | CREATE TABLE table_180802_2 (english_name VARCHAR, abbr VARCHAR) |
SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Jul INTERSECT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city | Give me a list of cities whose temperature in Mar is lower than that in July and which have also served as host cities? | CREATE TABLE city (city VARCHAR, city_id VARCHAR); CREATE TABLE hosting_city (host_city VARCHAR); CREATE TABLE temperature (city_id VARCHAR, Mar INTEGER, Jul VARCHAR) |
SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '033-250' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.ho... | when they visited the hospital last time, has patient 033-250 received any medication? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospita... |
SELECT zodiac_sign FROM table_180802_2 WHERE abbr = "มี.ค." | What's the zodiac sing for the month abbreviated as มี.ค.? | CREATE TABLE table_180802_2 (zodiac_sign VARCHAR, abbr VARCHAR) |
SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Dec EXCEPT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city | Give me a list of cities whose temperature in Mar is lower than that in Dec and which have never been host cities. | CREATE TABLE city (city VARCHAR, city_id VARCHAR); CREATE TABLE hosting_city (host_city VARCHAR); CREATE TABLE temperature (city_id VARCHAR, Mar INTEGER, Dec VARCHAR) |
SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%UM Chemistry Program at Peking University , Beijing%' OR name LIKE '%UM Chemistry Program at Peking University , Beijing%') AND credits = 17 | Are there any courses on UM Chemistry Program at Peking University , Beijing for 17 credits ? | CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE jo... |
SELECT transcription FROM table_180802_2 WHERE thai_name = "พฤษภาคม" | What's the transcription of the thai name of the month พฤษภาคม? | CREATE TABLE table_180802_2 (transcription VARCHAR, thai_name VARCHAR) |
SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Feb > T2.Jun UNION SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city | Give me a list of cities whose temperature in Feb is higher than that in Jun or cities that were once host cities? | CREATE TABLE city (city VARCHAR, city_id VARCHAR); CREATE TABLE hosting_city (host_city VARCHAR); CREATE TABLE temperature (city_id VARCHAR, Feb INTEGER, Jun VARCHAR) |
SELECT Founder, SUM(Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY SUM(Price) DESC | For those records from the products and each product's manufacturer, find founder and the sum of price , and group by attribute founder, and visualize them by a bar chart, and order by the y-axis in descending. | 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 COUNT(zodiac_sign) FROM table_180802_2 WHERE thai_name = "กันยายน" | How many zodiac signs does the month by the Thai name of กันยายน belong to? | CREATE TABLE table_180802_2 (zodiac_sign VARCHAR, thai_name VARCHAR) |
SELECT city FROM city WHERE regional_population > 10000000 | Please give me a list of cities whose regional population is over 10000000. | CREATE TABLE city (city VARCHAR, regional_population INTEGER) |
SELECT "To par" FROM table_46821 WHERE "Place" = 't9' AND "Country" = 'united states' AND "Player" = 'john buczek' | What is the to par of player john buczek, who has a t9 place and is from the United States? | CREATE TABLE table_46821 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) |
SELECT english_name FROM table_180802_2 WHERE abbr = "มิ.ย." | What's the English name of the month abbreviated as มิ.ย.? | CREATE TABLE table_180802_2 (english_name VARCHAR, abbr VARCHAR) |
SELECT city FROM city WHERE regional_population > 10000000 UNION SELECT city FROM city WHERE regional_population < 5000000 | Please give me a list of cities whose regional population is over 8000000 or under 5000000. | CREATE TABLE city (city VARCHAR, regional_population INTEGER) |
SELECT "Ship" FROM table_37185 WHERE "Hull No." = 'aor-6' | Name the ship with hull number of aor-6 | CREATE TABLE table_37185 (
"Ship" text,
"Hull No." text,
"Builder" text,
"Home Port" text,
"Commissioned\u2013 Decommissioned" text,
"NVR page" text
) |
SELECT abbr FROM table_180802_2 WHERE zodiac_sign = "Scorpio" | What's the abbreviation of the month in the zodiac sign scorpio? | CREATE TABLE table_180802_2 (abbr VARCHAR, zodiac_sign VARCHAR) |
SELECT COUNT(*), Competition FROM MATCH GROUP BY Competition | Find the number of matches in different competitions. | CREATE TABLE MATCH (Competition VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "NEWBORN" AND demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" | how many patients whose admission type is newborn and admission location is transfer from hosp/extram? | 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 year_[e_] AS __ceremony_ FROM table_18069789_1 WHERE original_title = "გაღმა ნაპირი" | which year was the original title გაღმა ნაპირი | CREATE TABLE table_18069789_1 (year_ VARCHAR, e_ VARCHAR, original_title VARCHAR) |
SELECT venue FROM MATCH ORDER BY date DESC | List venues of all matches in the order of their dates starting from the most recent one. | CREATE TABLE MATCH (venue VARCHAR, date VARCHAR) |
SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Human Physiology-Laboratory%' OR name LIKE '%Human Physiology-Laboratory%') AND credits = 3 | List the Human Physiology-Laboratory courses worth 3 credits . | CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE comment_instructor (
instructor_id int,
... |
SELECT COUNT(year_)[e_] AS __ceremony_ FROM table_18069789_1 WHERE film_title_used_in_nomination = "27 Missing Kisses" | how many times was 27 missing kisses used in nomination | CREATE TABLE table_18069789_1 (e_ VARCHAR, film_title_used_in_nomination VARCHAR, year_ VARCHAR) |
SELECT gdp FROM city ORDER BY Regional_Population DESC LIMIT 1 | what is the GDP of the city with the largest population. | CREATE TABLE city (gdp VARCHAR, Regional_Population VARCHAR) |
SELECT AVG("Overall") FROM table_76607 WHERE "College" = 'stanford' | What is stanford's average overall? | CREATE TABLE table_76607 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) |
SELECT year_[e_] AS __ceremony_ FROM table_18069789_1 WHERE director = "Otar Iosseliani" | when was otar iosseliani's film selected | CREATE TABLE table_18069789_1 (year_ VARCHAR, e_ VARCHAR, director VARCHAR) |
SELECT t1.gdp, t1.Regional_Population FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city GROUP BY t2.Host_City HAVING COUNT(*) > 1 | What are the GDP and population of the city that already served as a host more than once? | CREATE TABLE hosting_city (host_city VARCHAR); CREATE TABLE city (city_id VARCHAR) |
SELECT venue FROM table_name_90 WHERE winner = "marie-laure taya" | where did marie-laure taya win? | CREATE TABLE table_name_90 (
venue VARCHAR,
winner VARCHAR
) |
SELECT thai_name FROM table_180802_3 WHERE transcription = "wan chan" | What is the thai name of the transcription wan chan? | CREATE TABLE table_180802_3 (thai_name VARCHAR, transcription VARCHAR) |
SELECT individual_first_name, individual_middle_name, individual_last_name FROM individuals ORDER BY individual_last_name | List every individual's first name, middle name and last name in alphabetical order by last name. | CREATE TABLE individuals (individual_first_name VARCHAR, individual_middle_name VARCHAR, individual_last_name VARCHAR) |
SELECT title FROM table_25276528_2 WHERE directed_by = "Bill Foster" | What title did Bill Foster direct ? | CREATE TABLE table_25276528_2 (
title VARCHAR,
directed_by VARCHAR
) |
SELECT sanskrit_word FROM table_180802_3 WHERE color = "red" | What is the sanskrit word for the color red? | CREATE TABLE table_180802_3 (sanskrit_word VARCHAR, color VARCHAR) |
SELECT DISTINCT form_type_code FROM forms | List all the types of forms. | CREATE TABLE forms (form_type_code VARCHAR) |
SELECT "New entries this round" FROM table_75454 WHERE "Clubs" = '2 → 1' | How many new entries this round have clubs 2 1? | CREATE TABLE table_75454 (
"Round" text,
"Date" text,
"Matches" real,
"Clubs" text,
"New entries this round" text,
"Prize money" text
) |
SELECT transcription FROM table_180802_3 WHERE sanskrit_word = "Chandra" | What is the transcription of the sanskrit word chandra? | CREATE TABLE table_180802_3 (transcription VARCHAR, sanskrit_word VARCHAR) |
SELECT t1.form_name FROM forms AS t1 JOIN party_forms AS t2 ON t1.form_id = t2.form_id GROUP BY t2.form_id ORDER BY COUNT(*) DESC LIMIT 1 | Find the name of the most popular party form. | CREATE TABLE party_forms (form_id VARCHAR); CREATE TABLE forms (form_name VARCHAR, form_id VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" AND prescriptions.drug_type = "ADDITIVE" | what is the number of patients whose ethnicity is american indian/alaska native and drug type is additive? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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
)
... |
SELECT sanskrit_word FROM table_180802_3 WHERE transcription = "wan athit" | What is the sanskrit word if the transcription is wan athit? | CREATE TABLE table_180802_3 (sanskrit_word VARCHAR, transcription VARCHAR) |
SELECT payment_method_code, party_phone FROM parties WHERE party_email = "enrico09@example.com" | Find the payment method and phone of the party with email "enrico09@example.com". | CREATE TABLE parties (payment_method_code VARCHAR, party_phone VARCHAR, party_email VARCHAR) |
SELECT "model" FROM table_204_582 ORDER BY id DESC LIMIT 1 | what is the last model ? | CREATE TABLE table_204_582 (
id number,
"model" text,
"launch" text,
"code name" text,
"fab (nm)" number,
"bus interface" text,
"memory (mib)" text,
"core clock (mhz)" number,
"memory clock (mhz)" number,
"config core1" text,
"fillrate\nmoperations/s" number,
"fillrate\nm... |
SELECT color FROM table_180802_3 WHERE planet = "Venus" | What is the color of the planet venus? | CREATE TABLE table_180802_3 (color VARCHAR, planet VARCHAR) |
SELECT t1.party_email FROM parties AS t1 JOIN party_forms AS t2 ON t1.party_id = t2.party_id WHERE t2.form_id = (SELECT form_id FROM party_forms GROUP BY form_id ORDER BY COUNT(*) DESC LIMIT 1) | Find the emails of parties with the most popular party form. | CREATE TABLE party_forms (form_id VARCHAR); CREATE TABLE parties (party_email VARCHAR, party_id VARCHAR); CREATE TABLE party_forms (party_id VARCHAR, form_id VARCHAR) |
SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'upper urinary t... | list the top four most frequent medications that patients have been prescribed in the same hospital encounter after being diagnosed with upper urinary tract infection since 2100. | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemics... |
SELECT planet FROM table_180802_3 WHERE transcription = "wan suk" | Which planet has the transcription of wan suk? | CREATE TABLE table_180802_3 (planet VARCHAR, transcription VARCHAR) |
SELECT organization_name FROM organizations ORDER BY date_formed | List all the name of organizations in order of the date formed. | CREATE TABLE organizations (organization_name VARCHAR, date_formed VARCHAR) |
SELECT COUNT(DISTINCT last_name) FROM actor | How many different last names do the actors and actresses have? | CREATE TABLE actor (
last_name VARCHAR
) |
SELECT year_to_april FROM table_18077713_1 WHERE revenue__us_$million_ = "434.8" | What is the year to april when the revenue is 434.8 million dollars? | CREATE TABLE table_18077713_1 (year_to_april VARCHAR, revenue__us_$million_ VARCHAR) |
SELECT organization_name FROM organizations ORDER BY date_formed DESC LIMIT 1 | Find the name of the youngest organization. | CREATE TABLE organizations (organization_name VARCHAR, date_formed VARCHAR) |
SELECT COUNT("name") FROM table_204_111 WHERE "reintroduced" = 1999 AND "retired" = 1999 | how many total pillow pals were both reintroduced and retired in 1999 ? | CREATE TABLE table_204_111 (
id number,
"name" text,
"animal type" text,
"introduced" number,
"reintroduced" text,
"retired" number,
"beanie baby resembled" text
) |
SELECT ebit__us_$m_ FROM table_18077713_1 WHERE net_profit__us_$m_ = "120.6" | What is the dollar amount of ebit when the net profit is 120.6? | CREATE TABLE table_18077713_1 (ebit__us_$m_ VARCHAR, net_profit__us_$m_ VARCHAR) |
SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id JOIN individuals AS t3 ON t2.individual_id = t3.individual_id WHERE t1.organization_name = "Labour Party" ORDER BY t2.date_contact_to DESC LIMIT 1 | Find the last name of the latest contact individual of the organization "Labour Party". | CREATE TABLE organizations (organization_id VARCHAR, organization_name VARCHAR); CREATE TABLE individuals (individual_last_name VARCHAR, individual_id VARCHAR); CREATE TABLE organization_contact_individuals (organization_id VARCHAR, individual_id VARCHAR, date_contact_to VARCHAR) |
SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'TORONTO' AND ground_service.city_code = city.city_code AND ground_service.transport_type = 'LIMOUSINE' | what LIMOUSINE service in TORONTO | CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
m... |
SELECT revenue__us_$million_ FROM table_18077713_1 WHERE net_profit__us_$m_ = "55.4" | How many dollars is the revenue when the net profit is 55.4 million dollars? | CREATE TABLE table_18077713_1 (revenue__us_$million_ VARCHAR, net_profit__us_$m_ VARCHAR) |
SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id JOIN individuals AS t3 ON t2.individual_id = t3.individual_id WHERE t1.uk_vat_number = (SELECT MAX(uk_vat_number) FROM organizations) ORDER BY t2.date_contact_to LIMIT 1 | Find the last name of the first ever contact person of the organization with the highest UK Vat number. | CREATE TABLE organizations (uk_vat_number INTEGER); CREATE TABLE individuals (individual_last_name VARCHAR, individual_id VARCHAR); CREATE TABLE organizations (organization_id VARCHAR, uk_vat_number INTEGER); CREATE TABLE organization_contact_individuals (organization_id VARCHAR, individual_id VARCHAR, date_contact_to ... |
SELECT "2001" FROM table_68544 WHERE "Total" > '1' AND "2009" = '8' | What is the year 2001 with a total larger than 1, and 2009 with 8? | CREATE TABLE table_68544 (
"2001" text,
"2004" text,
"2009" text,
"2013" text,
"Total" real
) |
SELECT COUNT(year_to_april) FROM table_18077713_1 WHERE earnings_per_share__¢_ = "22.0" | When the earning per share is listed as 22.0 what is the year to april? | CREATE TABLE table_18077713_1 (year_to_april VARCHAR, earnings_per_share__¢_ VARCHAR) |
SELECT service_name FROM services EXCEPT SELECT t1.service_name FROM services AS t1 JOIN party_services AS t2 ON t1.service_id = t2.service_id | Find name of the services that has never been used. | CREATE TABLE services (service_name VARCHAR); CREATE TABLE party_services (service_id VARCHAR); CREATE TABLE services (service_name VARCHAR, service_id VARCHAR) |
SELECT SUM(Reputation) / COUNT(*) AS Average_rep FROM Users WHERE Reputation > 100 | How much reputation would we get in commie SO?. | CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREA... |
SELECT earnings_per_share__¢_ FROM table_18077713_1 WHERE net_profit__us_$m_ = "16.2" | What is the earnings per share when the net profit is 16.2 million dollars? | CREATE TABLE table_18077713_1 (earnings_per_share__¢_ VARCHAR, net_profit__us_$m_ VARCHAR) |
SELECT town_city FROM addresses UNION SELECT state_province_county FROM addresses | Find the name of all the cities and states. | CREATE TABLE addresses (town_city VARCHAR, state_province_county VARCHAR) |
SELECT country FROM table_name_87 WHERE finish = "t22" | Which country has a finish of t22? | CREATE TABLE table_name_87 (
country VARCHAR,
finish VARCHAR
) |
SELECT net_profit__us_$m_ FROM table_18077713_1 WHERE revenue__us_$million_ = "150.6" | How much is the net profit when the revenue is 150.6 million dollars? | CREATE TABLE table_18077713_1 (net_profit__us_$m_ VARCHAR, revenue__us_$million_ VARCHAR) |
SELECT COUNT(*) FROM addresses WHERE state_province_county = "Colorado" | How many cities are there in state "Colorado"? | CREATE TABLE addresses (state_province_county VARCHAR) |
SELECT COUNT(place) FROM table_29583818_3 WHERE couple = "Laura and Colin" | How many times is the couple laura and colin? | CREATE TABLE table_29583818_3 (
place VARCHAR,
couple VARCHAR
) |
SELECT year__ceremony_ FROM table_18123274_1 WHERE result = "Not Nominated" AND director = "Alberto Aruelo" | Name the year for not nominated for alberto aruelo | CREATE TABLE table_18123274_1 (year__ceremony_ VARCHAR, result VARCHAR, director VARCHAR) |
SELECT payment_method_code FROM parties GROUP BY payment_method_code HAVING COUNT(*) > 3 | Find the payment method code used by more than 3 parties. | CREATE TABLE parties (payment_method_code VARCHAR) |
SELECT MIN(draws) FROM table_name_29 WHERE against < 1299 AND wins > 7 AND club = "warrnambool" AND losses < 2 | What's the smallest draw of Warrnambool when the against was less than 1299, more than 7 wins, and less than 2 losses? | CREATE TABLE table_name_29 (
draws INTEGER,
losses VARCHAR,
club VARCHAR,
against VARCHAR,
wins VARCHAR
) |
SELECT COUNT(director) FROM table_18123274_1 WHERE original_title = "Oro Diablo" | Name the total number of director for oro diablo | CREATE TABLE table_18123274_1 (director VARCHAR, original_title VARCHAR) |
SELECT organization_name FROM organizations WHERE organization_name LIKE "%Party%" | Find the name of organizations whose names contain "Party". | CREATE TABLE organizations (organization_name VARCHAR) |
SELECT demographic.dob, demographic.admittime FROM demographic WHERE demographic.name = "Fernando Wontor" | what is date of birth and admission time of subject name fernando wontor? | 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 COUNT(result) FROM table_18123274_1 WHERE film_title_used_in_nomination = "Maroa" | Name the number of result for maroa | CREATE TABLE table_18123274_1 (result VARCHAR, film_title_used_in_nomination VARCHAR) |
SELECT COUNT(DISTINCT payment_method_code) FROM parties | How many distinct payment methods are used by parties? | CREATE TABLE parties (payment_method_code VARCHAR) |
SELECT MAX("Bronze") FROM table_79722 WHERE "Total" > '3' AND "Rank" > '1' | What are the most bronze medals in a rank more than 1 with a total larger than 3? | CREATE TABLE table_79722 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT COUNT(director) FROM table_18123274_1 WHERE original_title = "Huelepega: Ley de la Calle" | Name the number of director for huelepega: ley de la calle | CREATE TABLE table_18123274_1 (director VARCHAR, original_title VARCHAR) |
SELECT t1.party_email FROM parties AS t1 JOIN party_services AS t2 ON t1.party_id = t2.customer_id GROUP BY t1.party_email ORDER BY COUNT(*) DESC LIMIT 1 | Which is the email of the party that has used the services the most number of times? | CREATE TABLE parties (party_email VARCHAR, party_id VARCHAR); CREATE TABLE party_services (customer_id VARCHAR) |
SELECT "Method" FROM table_52239 WHERE "Round" < '3' AND "Res." = 'nc' | What was the method for the resolution of nc where the fight lasted less than 3 rounds? | CREATE TABLE table_52239 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) |
SELECT all_neutral FROM table_18135572_2 WHERE b10__percentage = ".833" | What was the win/loss record for All Neutral games for the team whose Big 10 winning percentage was .833? | CREATE TABLE table_18135572_2 (all_neutral VARCHAR, b10__percentage VARCHAR) |
SELECT state_province_county FROM addresses WHERE line_1_number_building LIKE "%6862 Kaitlyn Knolls%" | Which state can address "6862 Kaitlyn Knolls" possibly be in? | CREATE TABLE addresses (state_province_county VARCHAR, line_1_number_building VARCHAR) |
SELECT score FROM table_name_98 WHERE date = "december 10" | What is the score on december 10? | CREATE TABLE table_name_98 (
score VARCHAR,
date VARCHAR
) |
SELECT category FROM table_18138132_2 WHERE version = "1.0" AND title = "Chord Finder" | What is the category when the version is 1.0 and the title is Chord finder? | CREATE TABLE table_18138132_2 (category VARCHAR, version VARCHAR, title VARCHAR) |
SELECT t1.organization_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id GROUP BY t1.organization_name ORDER BY COUNT(*) DESC LIMIT 1 | What is the name of organization that has the greatest number of contact individuals? | CREATE TABLE organization_contact_individuals (organization_id VARCHAR); CREATE TABLE organizations (organization_name VARCHAR, organization_id VARCHAR) |
SELECT "Party" FROM table_28914 WHERE "Result" = 'Lost re-election Democratic-Republican hold' | Which party experienced a result of lost re-election democratic-republican hold? | CREATE TABLE table_28914 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
) |
SELECT release_date FROM table_18138132_2 WHERE title = "Metronome" | What was the release date for metronome? | CREATE TABLE table_18138132_2 (release_date VARCHAR, title VARCHAR) |
SELECT DISTINCT t1.individual_last_name FROM individuals AS t1 JOIN organization_contact_individuals AS t2 ON t1.individual_id = t2.individual_id | Find the last name of the individuals that have been contact individuals of an organization. | CREATE TABLE individuals (individual_last_name VARCHAR, individual_id VARCHAR); CREATE TABLE organization_contact_individuals (individual_id VARCHAR) |
SELECT "Player" FROM table_44157 WHERE "Pick" > '145' AND "College" = 'wake forest' | Which player went to Wake Forest and was selected with a pick after 145? | CREATE TABLE table_44157 (
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text,
"College" text
) |
SELECT developer FROM table_18138132_2 WHERE title = "Windows Live Messenger" | Who is the developer for Windows live messenger? | CREATE TABLE table_18138132_2 (developer VARCHAR, title VARCHAR) |
SELECT COUNT(*) FROM driver | How many drivers are there? | CREATE TABLE driver (Id VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "COLANGITIS" AND demographic.dod_year <= "2186.0" | How many of the patients with colangitis as their primary disease died in or before the year 2186? | 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 diagnoses (
... |
SELECT function FROM table_18138132_2 WHERE version = "1.4" AND title = "Windows Live Messenger" | What is the function of 1.4 version of Windows live messenger? | CREATE TABLE table_18138132_2 (function VARCHAR, version VARCHAR, title VARCHAR) |
SELECT name, home_city, age FROM driver | Show the name, home city, and age for all drivers. | CREATE TABLE driver (name VARCHAR, home_city VARCHAR, age VARCHAR) |
SELECT 2008 AS _candidates FROM table_16185956_1 WHERE district = "Washington 1" | Who are the candidates in Washington 1 district? | CREATE TABLE table_16185956_1 (
district VARCHAR
) |
SELECT function FROM table_18138132_2 WHERE release_date = "2011-06-23" | What functions were released on 2011-06-23? | CREATE TABLE table_18138132_2 (function VARCHAR, release_date VARCHAR) |
SELECT party, COUNT(*) FROM driver GROUP BY party | Show the party and the number of drivers in each party. | CREATE TABLE driver (party VARCHAR) |
SELECT name FROM table_15463188_7 WHERE school_club_team = "State" | Name the name of the state | CREATE TABLE table_15463188_7 (
name VARCHAR,
school_club_team VARCHAR
) |
SELECT cospar_id FROM table_18161217_2 WHERE estimated_operational_life = "2 months" AND satellite = "Kosmos 2397" | What is the cospar ID of the Kosmos 2397 satellite, which has an operational life of 2 months? | CREATE TABLE table_18161217_2 (cospar_id VARCHAR, estimated_operational_life VARCHAR, satellite VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.