table stringlengths 33 7.14k | question stringlengths 4 1.06k | output stringlengths 2 4.44k ⌀ |
|---|---|---|
CREATE TABLE table_68449 (
"Need" text,
"Being (qualities)" text,
"Having (things)" text,
"Doing (actions)" text,
"Interacting (settings)" text
) | Name the being qualities for having things of language, religions, work, customs, values, norms | SELECT "Being (qualities)" FROM table_68449 WHERE "Having (things)" = 'language, religions, work, customs, values, norms' |
CREATE TABLE table_30018460_1 (
country_territory VARCHAR
) | How many first place participants where from croatia? | SELECT 3 AS rd_runner_up FROM table_30018460_1 WHERE country_territory = "Croatia" |
CREATE TABLE branch (
membership_amount INTEGER,
open_year VARCHAR,
city VARCHAR
) | Show minimum and maximum amount of memberships for all branches opened in 2011 or located at city London. | SELECT MIN(membership_amount), MAX(membership_amount) FROM branch WHERE open_year = 2011 OR city = 'London' |
CREATE TABLE table_16457934_4 (
Id VARCHAR
) | what is the minimum of 60 -64? | SELECT MIN(60 AS _to_64) FROM table_16457934_4 |
CREATE TABLE table_45280 (
"Series Number" real,
"Number of Episodes" real,
"Original Air Date" real,
"DVD Region 2 release date" text,
"DVD Region 1 release date" text
) | What was the original air date of series number 10? | SELECT AVG("Original Air Date") FROM table_45280 WHERE "Series Number" = '10' |
CREATE TABLE table_name_8 (
tournament VARCHAR
) | Which 2007 has a 2006 of A, and a Tournament of canada? | SELECT 2007 FROM table_name_8 WHERE 2006 = "a" AND tournament = "canada" |
CREATE TABLE table_203_98 (
id number,
"title" text,
"year" number,
"director" text,
"budget" text,
"gross (worldwide)" text,
"notes" text
) | did true romance make more or less money than diabolique ? | SELECT (SELECT "gross (worldwide)" FROM table_203_98 WHERE "title" = 'true romance') > (SELECT "gross (worldwide)" FROM table_203_98 WHERE "title" = 'diabolique') |
CREATE TABLE table_2077192_2 (
italian VARCHAR,
english VARCHAR
) | What is the Italian word for the English word 'otter'? | SELECT italian FROM table_2077192_2 WHERE english = "otter" |
CREATE TABLE Project_outcomes (
project_id VARCHAR
)
CREATE TABLE Project_Staff (
staff_id VARCHAR,
role_code VARCHAR,
project_id VARCHAR
)
CREATE TABLE Staff_Roles (
role_description VARCHAR,
role_code VARCHAR
) | Show the role description and the id of the project staff involved in most number of project outcomes? | SELECT T1.role_description, T2.staff_id FROM Staff_Roles AS T1 JOIN Project_Staff AS T2 ON T1.role_code = T2.role_code JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.staff_id ORDER BY COUNT(*) DESC LIMIT 1 |
CREATE TABLE table_name_94 (
date VARCHAR,
pole_position VARCHAR
) | Which Date has a Pole Position of michael devaney? | SELECT date FROM table_name_94 WHERE pole_position = "michael devaney" |
CREATE TABLE table_name_46 (
to_par VARCHAR,
player VARCHAR
) | What is the to par that has jimmy hines as the player? | SELECT to_par FROM table_name_46 WHERE player = "jimmy hines" |
CREATE TABLE table_55942 (
"Rank" real,
"Team" text,
"Floor Exercise" real,
"Pommel Horse" real,
"Rings" real,
"Vault" real,
"Parallel Bars" real,
"Horizontal Bar" real,
"Total" real
) | What is the sum of totals with a Vault of 38.437, and a Floor Exercise smaller than 37.524? | SELECT COUNT("Total") FROM table_55942 WHERE "Vault" = '38.437' AND "Floor Exercise" < '37.524' |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
... | how many patients received glucose in the same hospital visit after the first ct scan - without contrast was performed since 5 years ago? | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, treatment.treatmenttime, patient.patienthealthsystemstayid FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'ct scan - without contrast' AND DATETIME(treatment.treatmenttime) >= DATE... |
CREATE TABLE stadium (
name VARCHAR
) | Which stadium name contains the substring 'Bank'? | SELECT name FROM stadium WHERE name LIKE "%Bank%" |
CREATE TABLE table_22253 (
"Canton" text,
"Years of Kindergarten" real,
"Years of Kindergarten provided" text,
"Years of Kindergarten legally required" text,
"Length of Primary School" real,
"Length of mandatory Secondary School" real,
"Separate Secondary Schools?" text,
"Cooperative Sec... | Are there integrated secondary schools in Uri? | SELECT "Integrated Secondary Schools?" FROM table_22253 WHERE "Canton" = 'Uri' |
CREATE TABLE table_74778 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | What was the away team when the home team scored 10.8 (68)? | SELECT "Away team" FROM table_74778 WHERE "Home team score" = '10.8 (68)' |
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 date_day (
... | give me the flights on 12 27 with the fares from INDIANAPOLIS to ORLANDO | 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 AS DATE_DAY_0, date_day AS DATE_DAY_1, days AS DAYS_0, days AS DAYS_1, fare, fare_basis, flight, flight_fare WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AN... |
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype tex... | how many times did patient 22517 visit hospital until 2 years ago? | SELECT COUNT(DISTINCT admissions.hadm_id) FROM admissions WHERE admissions.subject_id = 22517 AND DATETIME(admissions.admittime) <= DATETIME(CURRENT_TIME(), '-2 year') |
CREATE TABLE table_21436373_12 (
type_of_record VARCHAR,
result_games VARCHAR
) | what type of record was made where result/games is 10 games (29,606 avg.) | SELECT type_of_record FROM table_21436373_12 WHERE result_games = "10 games (29,606 avg.)" |
CREATE TABLE table_41023 (
"City of license" text,
"Identifier" text,
"Frequency" text,
"Power" text,
"Class" text,
"RECNet" text
) | Which city has a C1 class and Identifier of CBCD-FM? | SELECT "City of license" FROM table_41023 WHERE "Class" = 'c1' AND "Identifier" = 'cbcd-fm' |
CREATE TABLE table_21042 (
"Poll Source" text,
"Dates administered" text,
"Democrat: Vivian Davis Figures" text,
"Republican: Jeff Sessions" text,
"Lead Margin" real
) | On November 14, 2007, what are the Democrat: Vivian Davis Figures percentages? | SELECT "Democrat: Vivian Davis Figures" FROM table_21042 WHERE "Dates administered" = 'November 14, 2007' |
CREATE TABLE table_7980 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | In which location was the method decision (split)? | SELECT "Location" FROM table_7980 WHERE "Method" = 'decision (split)' |
CREATE TABLE table_63284 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"TV Time" text,
"Attendance" text
) | What is the time in week 3? | SELECT "TV Time" FROM table_63284 WHERE "Week" = '3' |
CREATE TABLE table_name_84 (
home__2nd_leg_ VARCHAR
) | What was the 2nd leg score when atl tico tucum n played at home? | SELECT 2 AS nd_leg FROM table_name_84 WHERE home__2nd_leg_ = "atlético tucumán" |
CREATE TABLE table_203_694 (
id number,
"#" number,
"name" text,
"took office" text,
"left office" text,
"party" text
) | which party had the most prime ministers ? | SELECT "party" FROM table_203_694 GROUP BY "party" ORDER BY COUNT("name") DESC LIMIT 1 |
CREATE TABLE table_name_49 (
kaz_hayashi VARCHAR,
bushi VARCHAR
) | Name the Kaz Hayashi which has BUSHI of yang (9:43) | SELECT kaz_hayashi FROM table_name_49 WHERE bushi = "yang (9:43)" |
CREATE TABLE table_name_56 (
genre VARCHAR,
year_recorded VARCHAR
) | What genre is the song recorded in 1926? | SELECT genre FROM table_name_56 WHERE year_recorded = "1926" |
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... | count the number of patients whose admission year is less than 2187 and lab test name is creatinine, urine? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2187" AND lab.label = "Creatinine, Urine" |
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 demographic ... | show me the number of patients admitted before 2174 who have been diagnosed with ventricular septal defect. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2174" AND diagnoses.long_title = "Ventricular septal defect" |
CREATE TABLE table_25751274_2 (
rating VARCHAR,
share VARCHAR
) | What is the rating of the episode with a share of 4 and a rating/share (18-49) of 0.7/2? | SELECT rating FROM table_25751274_2 WHERE share = 4 AND rating / SHARE(18 - 49) = 0.7 / 2 |
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | Show me about the correlation between School_ID and ACC_Percent , and group by attribute Team_Name in a scatter chart. | SELECT School_ID, ACC_Percent FROM basketball_match GROUP BY Team_Name |
CREATE TABLE table_203_171 (
id number,
"place\n(posicion)" number,
"team\n(equipo)" text,
"played\n(pj)" number,
"won\n(pg)" number,
"draw\n(pe)" number,
"lost\n(pp)" number,
"goals scored\n(gf)" number,
"goals conceded\n(gc)" number,
"+/-\n(dif.)" number,
"points\n(pts.)" n... | which team gave up the most goals ? | SELECT "team\n(equipo)" FROM table_203_171 ORDER BY "goals conceded\n(gc)" DESC LIMIT 1 |
CREATE TABLE table_78436 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | What is the average Laps for a grid smaller than 17, and a Constructor of williams - bmw, driven by jenson button? | SELECT AVG("Laps") FROM table_78436 WHERE "Grid" < '17' AND "Constructor" = 'williams - bmw' AND "Driver" = 'jenson button' |
CREATE TABLE compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varch... | what flights on UA leave LGA for SAN JOSE and arrive around 10pm | SELECT DISTINCT flight.flight_id FROM airport, airport_service, city, flight WHERE (((flight.arrival_time <= 2230 AND flight.arrival_time >= 2130) AND city.city_code = airport_service.city_code AND city.city_name = 'SAN JOSE' AND flight.to_airport = airport_service.airport_code) AND airport.airport_code = 'LGA' AND fli... |
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | For those records from the products and each product's manufacturer, visualize a scatter chart about the correlation between code and revenue , and group by attribute headquarter. | SELECT T1.Code, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter |
CREATE TABLE Students (
student_id INTEGER,
date_of_registration DATETIME,
date_of_latest_logon DATETIME,
login_name VARCHAR(40),
password VARCHAR(10),
personal_name VARCHAR(40),
middle_name VARCHAR(40),
family_name VARCHAR(40)
)
CREATE TABLE Courses (
course_id INTEGER,
author_... | List each test result and its count in descending order of count by a pie chart. | SELECT test_result, COUNT(*) FROM Student_Tests_Taken GROUP BY test_result ORDER BY COUNT(*) DESC |
CREATE TABLE table_33425 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Stadium" text,
"Record" text,
"Box scores" text,
"Attendance" text
) | What is the date of the game later than week 13 and 41,862 people attended? | SELECT "Date" FROM table_33425 WHERE "Week" > '13' AND "Attendance" = '41,862' |
CREATE TABLE table_59577 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | What is the score of the game with a tie no of 3? | SELECT "Score" FROM table_59577 WHERE "Tie no" = '3' |
CREATE TABLE table_50210 (
"Opposing Team" text,
"Against" real,
"Date" text,
"Venue" text,
"Round" text
) | Which round was played in the H Venue on 29 january 1949? | SELECT "Round" FROM table_50210 WHERE "Venue" = 'h' AND "Date" = '29 january 1949' |
CREATE TABLE table_10581 (
"Name" text,
"City" text,
"Height feet/m" text,
"Year" real,
"Period" text,
"Surpassed by" text
) | What was the period for 1896? | SELECT "Period" FROM table_10581 WHERE "Year" = '1896' |
CREATE TABLE grapes (
id number,
grape text,
color text
)
CREATE TABLE wine (
no number,
grape text,
winery text,
appelation text,
state text,
name text,
year number,
price number,
score number,
cases number,
drink text
)
CREATE TABLE appellations (
no numbe... | What are the names and scores of wines that are made of white color grapes? | SELECT T2.name, T2.score FROM grapes AS T1 JOIN wine AS T2 ON T1.grape = T2.grape WHERE T1.color = "White" |
CREATE TABLE table_25421463_1 (
races INTEGER
) | What is the fewest amount of races in any season? | SELECT MIN(races) FROM table_25421463_1 |
CREATE TABLE endowment (
endowment_id number,
school_id number,
donator_name text,
amount number
)
CREATE TABLE budget (
school_id number,
year number,
budgeted number,
total_budget_percent_budgeted number,
invested number,
total_budget_percent_invested number,
budget_invest... | Show the names of donors who donated to both school 'Glenn' and 'Triton. | SELECT T1.donator_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T2.school_name = 'Glenn' INTERSECT SELECT T1.donator_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T2.school_name = 'Triton' |
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE vitalperiodic (
vitalperio... | what is the hospital's maximum total cost when it includes cultures - urine in 2100? | SELECT MAX(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'cultures - urine')) AND STRFTIME('%y', cost.... |
CREATE TABLE table_55829 (
"Episode" text,
"Airdate" text,
"Rating" real,
"Share" real,
"18-49 (Rating/Share)" text,
"Viewers (m)" real,
"Rank (#)" text
) | How many vieweres for the episode with a share of 1, a Rating larger than 0.7000000000000001, and a Rank (#) of 100/102? | SELECT "Viewers (m)" FROM table_55829 WHERE "Share" = '1' AND "Rating" > '0.7000000000000001' AND "Rank (#)" = '100/102' |
CREATE TABLE table_77844 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | What away team played against Footscray as the home team? | SELECT "Away team" FROM table_77844 WHERE "Home team" = 'footscray' |
CREATE TABLE table_name_92 (
persian VARCHAR,
romani VARCHAR
) | What Persian word(s) has the same meaning as the Romani word duj? | SELECT persian FROM table_name_92 WHERE romani = "duj" |
CREATE TABLE table_name_51 (
week INTEGER,
opponent VARCHAR
) | What is the highest week that has carolina panthers as the opponent? | SELECT MAX(week) FROM table_name_51 WHERE opponent = "carolina panthers" |
CREATE TABLE table_name_32 (
centerfold_model VARCHAR,
date VARCHAR
) | Who was the Centerfold Model on 5-95? | SELECT centerfold_model FROM table_name_32 WHERE date = "5-95" |
CREATE TABLE table_16537783_2 (
parameter VARCHAR
) | Name the 3rd stage for parameter of thrust | SELECT 3 AS rd_stage FROM table_16537783_2 WHERE parameter = "Thrust" |
CREATE TABLE table_73253 (
"Locale" text,
"Skip" text,
"W" real,
"L" real,
"PF" real,
"PA" real,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real,
"Shot Pct." real
) | What is the pf for Rebecca Jean Macphee? | SELECT MIN("PF") FROM table_73253 WHERE "Skip" = 'Rebecca Jean MacPhee' |
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,
premium text,
econ... | fares from DALLAS to BALTIMORE | SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DALLAS' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_... |
CREATE TABLE table_79162 (
"Year" real,
"Date" text,
"Home Team" text,
"Result" text,
"Visiting Team" text,
"Venue" text,
"Attendance" real
) | Who is the home team when the san francisco 49ers are visiting with a result of 42-14? | SELECT "Home Team" FROM table_79162 WHERE "Visiting Team" = 'san francisco 49ers' AND "Result" = '42-14' |
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE... | what is the minimum hospital cost involving a drug that is called 0.9% sodium chloride (mini bag plus)? | SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT prescriptions.hadm_id FROM prescriptions WHERE prescriptions.drug = '0.9% sodium chloride (mini bag plus)') GROUP BY cost.hadm_id) AS t1 |
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... | count the number of patients whose insurance is private and procedure long title is coronary arteriography using a single catheter? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Private" AND procedures.long_title = "Coronary arteriography using a single catheter" |
CREATE TABLE table_60001 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | What's the score of the t10 player from australia? | SELECT "Score" FROM table_60001 WHERE "Place" = 't10' AND "Country" = 'australia' |
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
)
CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
) | Count the number of captains that have each rank Visualize by bar chart, and show from low to high by the x axis please. | SELECT Rank, COUNT(*) FROM captain GROUP BY Rank ORDER BY Rank |
CREATE TABLE Apartment_Buildings (
building_id INTEGER,
building_short_name CHAR(15),
building_full_name VARCHAR(80),
building_description VARCHAR(255),
building_address VARCHAR(255),
building_manager VARCHAR(50),
building_phone VARCHAR(80)
)
CREATE TABLE Apartment_Bookings (
apt_bookin... | Return the number of booking end dates for the apartments that have type code 'Duplex' for each year in a bar chart, rank by the Y-axis in ascending. | SELECT booking_end_date, COUNT(booking_end_date) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_type_code = "Duplex" ORDER BY COUNT(booking_start_date) |
CREATE TABLE table_74186 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | Name the team for january 17 | SELECT "Team" FROM table_74186 WHERE "Date" = 'January 17' |
CREATE TABLE table_17288869_7 (
high_points VARCHAR,
high_rebounds VARCHAR
) | Who had the high points while Dirk Nowitzki (13) had the high rebounds? | SELECT high_points FROM table_17288869_7 WHERE high_rebounds = "Dirk Nowitzki (13)" |
CREATE TABLE table_203_198 (
id number,
"season" text,
"series" text,
"team" text,
"races" number,
"wins" number,
"poles" number,
"fast laps" number,
"points" number,
"pos." text
) | what is the only series listed in 2007-2008 ? | SELECT "series" FROM table_203_198 WHERE "season" = '2007-08' |
CREATE TABLE table_65023 (
"Rank" real,
"Athletes" text,
"Country" text,
"Time" text,
"Notes" text
) | What is the rank of Manuel Cortina Mart nez? | SELECT "Rank" FROM table_65023 WHERE "Athletes" = 'manuel cortina martínez' |
CREATE TABLE table_2064747_1 (
location_s_ VARCHAR,
founded VARCHAR
) | Where was there a school founded in 1927? | SELECT location_s_ FROM table_2064747_1 WHERE founded = 1927 |
CREATE TABLE table_22701 (
"Album#" text,
"English Title" text,
"Chinese (Traditional)" text,
"Chinese (Simplified)" text,
"Release date" text,
"Label" text
) | Name the chinese traditional for | SELECT "Chinese (Traditional)" FROM table_22701 WHERE "Chinese (Simplified)" = '美丽人生' |
CREATE TABLE table_20010140_10 (
high_points VARCHAR,
date VARCHAR
) | how many high points where date is february 19 | SELECT COUNT(high_points) FROM table_20010140_10 WHERE date = "February 19" |
CREATE TABLE table_204_780 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
) | in what competition did this competitor place the same as he did at the 1984 olympic games ? | SELECT "competition" FROM table_204_780 WHERE "year" <> 1984 AND "position" = (SELECT "position" FROM table_204_780 WHERE "year" = 1984) |
CREATE TABLE table_name_36 (
method VARCHAR,
time VARCHAR,
opponent VARCHAR
) | What method had Adriano Martins as an opponent and a time of 5:00? | SELECT method FROM table_name_36 WHERE time = "5:00" AND opponent = "adriano martins" |
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
... | Bar chart x axis meter 500 y axis meter_100 | SELECT meter_500, meter_100 FROM swimmer |
CREATE TABLE table_name_22 (
points INTEGER,
year VARCHAR,
chassis VARCHAR
) | What is the most points earlier than 1953 with a Ferrari 375/50 chassis? | SELECT MAX(points) FROM table_name_22 WHERE year < 1953 AND chassis = "ferrari 375/50" |
CREATE TABLE table_68541 (
"2001" text,
"2004" text,
"2009" text,
"2013" text,
"Total" real
) | What is the total of 2013 with 6th? | SELECT MAX("Total") FROM table_68541 WHERE "2013" = '6th' |
CREATE TABLE table_53287 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | What is the smallest grid for driver of juan pablo montoya? | SELECT MIN("Grid") FROM table_53287 WHERE "Driver" = 'juan pablo montoya' |
CREATE TABLE table_name_9 (
local_affairs VARCHAR,
year VARCHAR
) | Who was in local affairs in 2012-2013? | SELECT local_affairs FROM table_name_9 WHERE year = "2012-2013" |
CREATE TABLE party_events (
Event_ID int,
Event_Name text,
Party_ID int,
Member_in_charge_ID int
)
CREATE TABLE region (
Region_ID int,
Region_name text,
Date text,
Label text,
Format text,
Catalogue text
)
CREATE TABLE party (
Party_ID int,
Minister text,
Took_offi... | How many parties of the time they left office, binning the left office time into Year interval, and then split by the minister's name, sort in desc by the y-axis. | SELECT Left_office, COUNT(Left_office) FROM party GROUP BY Minister ORDER BY COUNT(Left_office) DESC |
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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | how many patients stayed in hospital for more than 6 days and were diagnosed with orthostatic hypertension? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "6" AND diagnoses.short_title = "Orthostatic hypotension" |
CREATE TABLE table_73520 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | Name the least game for january 29 | SELECT MIN("Game") FROM table_73520 WHERE "Date" = 'January 29' |
CREATE TABLE table_name_30 (
perigee__km_ INTEGER,
launch_date VARCHAR
) | What is the lowest Perigee with a Launch date of 1970-08-26? | SELECT MIN(perigee__km_) FROM table_name_30 WHERE launch_date = "1970-08-26" |
CREATE TABLE table_3315 (
"Position" real,
"Sail number" text,
"Yacht" text,
"State/country" text,
"Yacht type" text,
"LOA (Metres)" text,
"Skipper" text,
"Corrected time d:hh:mm:ss" text
) | What is the position for sail number aus 03? | SELECT MIN("Position") FROM table_3315 WHERE "Sail number" = 'AUS 03' |
CREATE TABLE table_name_30 (
number INTEGER,
cars_per_set INTEGER
) | What is the largest number of cars per set that is less than 9? | SELECT MAX(number) FROM table_name_30 WHERE cars_per_set < 9 |
CREATE TABLE view_unit_status (
apt_id number,
apt_booking_id number,
status_date time,
available_yn others
)
CREATE TABLE apartment_facilities (
apt_id number,
facility_code text
)
CREATE TABLE apartment_bookings (
apt_booking_id number,
apt_id number,
guest_id number,
booking... | Show the facility codes of apartments with more than 4 bedrooms. | SELECT T1.facility_code FROM apartment_facilities AS T1 JOIN apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 4 |
CREATE TABLE table_224844_4 (
vacator VARCHAR,
district VARCHAR
) | Who left a seat open for the district of connecticut at-large | SELECT vacator FROM table_224844_4 WHERE district = "Connecticut At-large" |
CREATE TABLE table_22513 (
"Number" real,
"Sanskrit" text,
"International Alphabet of Sanskrit Transliteration" text,
"Sanskrit gloss" text,
"Western name" text,
"Greek" text,
"Gloss" text,
"Tattva (Element)" text,
"Quality" text,
"Ruling Planet" text
) | When mithuna is the international alphabet of sanskrit transliteration what is the ruling planet? | SELECT "Ruling Planet" FROM table_22513 WHERE "International Alphabet of Sanskrit Transliteration" = 'Mithuna' |
CREATE TABLE table_29385 (
"Player" text,
"Team" text,
"Matches" real,
"Overs" text,
"Wickets" real,
"Average" text,
"Economy" text,
"BBI" text,
"4wi" real,
"5wi" real
) | Who is the player when the bbi is 5/27? | SELECT "Player" FROM table_29385 WHERE "BBI" = '5/27' |
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(... | For those employees who did not have any job in the past, show me about the distribution of hire_date and the sum of salary bin hire_date by time in a bar chart, list in desc by the Y please. | SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY SUM(SALARY) DESC |
CREATE TABLE table_204_87 (
id number,
"courthouse" text,
"city" text,
"street address" text,
"jurisdiction" text,
"dates of use" text,
"named for" text
) | which jurisdiction is listed the most ? | SELECT "jurisdiction" FROM table_204_87 GROUP BY "jurisdiction" ORDER BY COUNT(*) DESC LIMIT 1 |
CREATE TABLE table_name_31 (
office VARCHAR,
prohibition_ticket VARCHAR
) | What office did Henry Hagner run for on the prohibition ticket? | SELECT office FROM table_name_31 WHERE prohibition_ticket = "henry hagner" |
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
) | Bar chart x axis name y axis the number of name, show in descending by the Y-axis please. | SELECT Name, COUNT(Name) FROM Products GROUP BY Name ORDER BY COUNT(Name) DESC |
CREATE TABLE table_11677691_9 (
college VARCHAR,
hometown VARCHAR
) | Which college is present in the hometown of Crete, Illinois? | SELECT college FROM table_11677691_9 WHERE hometown = "Crete, Illinois" |
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE treatment (
treatmentid number... | had patient 031-3355 been given a electrolyte administration - oral procedure since 2103? | SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-3355')) AND treatment.treatmentname = 'electrolyte administration - oral... |
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE microlab (
microl... | what is the monthly minimum amount of indwelling catheter that patient 002-52932 had until 03/22/2104? | SELECT MIN(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-52932')) AND intakeoutput.celllabel = 'indwe... |
CREATE TABLE table_50749 (
"2010 ARWU Rankings" text,
"2010 QS World Rankings" text,
"2010 QS Asian Rankings" text,
"2010 eduniversal Rankings" text,
"2009 QS Asian Rankings: Int\u2019l faculty review" text,
"2009 QS Asian Rankings: Int\u2019l student review" real,
"2000 Singapore \u201cAsia... | What's the ARWU ranking that has the int' student review of 144, a median rank of less than 10, and 2000 Singapore Asiaweek of none? | SELECT "2010 ARWU Rankings" FROM table_50749 WHERE "2000 Singapore \u201cAsiaweek\u201d Rankings" = 'none' AND "Median ranks" < '10' AND "2009 QS Asian Rankings: Int\u2019l student review" = '144' |
CREATE TABLE table_13250 (
"National team" text,
"Club" text,
"Year" text,
"Apps" real,
"Goals" real
) | Which National team has a Club of arsenal, and Apps smaller than 4, and a Year of 2010? | SELECT "National team" FROM table_13250 WHERE "Club" = 'arsenal' AND "Apps" < '4' AND "Year" = '2010' |
CREATE TABLE table_name_47 (
attendance VARCHAR,
visitor VARCHAR
) | How many people attended the game that had the Clippers as visiting team? | SELECT attendance FROM table_name_47 WHERE visitor = "clippers" |
CREATE TABLE table_27778 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" text,
"Position" text
) | What was his position when he garnered 38 points? | SELECT "Position" FROM table_27778 WHERE "Points" = '38' |
CREATE TABLE table_1341663_11 (
incumbent VARCHAR,
first_elected VARCHAR
) | How many sitting politicians were originally elected in 1972? | SELECT COUNT(incumbent) FROM table_1341663_11 WHERE first_elected = 1972 |
CREATE TABLE table_201_24 (
id number,
"episode number" number,
"original airdate" text,
"title" text,
"disc" number,
"description" text
) | how many episodes had their original airdate in february ? | SELECT COUNT("episode number") FROM table_201_24 WHERE "original airdate" = 2 |
CREATE TABLE table_32050 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score in the final" text
) | Tell me the tournament for score in the final of 1 6, 3 6 | SELECT "Tournament" FROM table_32050 WHERE "Score in the final" = '1–6, 3–6' |
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
)
CREATE TAB... | is there a flight from BOSTON to ATLANTA which leaves BOSTON in the afternoon and arrives close to 5pm | 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 (((flight.arrival_time <= 1715 AND flight.arrival_time >= 1645) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ATLANTA' AND flight.to... |
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
)
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_... | DENVER to ATLANTA | 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 = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ATLANTA... |
CREATE TABLE table_204_729 (
id number,
"year" text,
"show" text,
"role" text,
"channel" text,
"notes" text
) | how many roles did this actor have before 2010 ? | SELECT COUNT("role") FROM table_204_729 WHERE "year" < 2010 |
CREATE TABLE table_13729 (
"Year" real,
"Competition Description" text,
"Location" text,
"Apparatus" text,
"Rank-Final" text,
"Score-Final" real,
"Rank-Qualifying" text,
"Score-Qualifying" real
) | What was the location of the competition with a Rank-Final of 1st and a Score-Qualifying under 28.975? | SELECT "Location" FROM table_13729 WHERE "Rank-Final" = '1st' AND "Score-Qualifying" < '28.975' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.