answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT college FROM table_15592941_1 WHERE player_name = "Jeremy Zuttah" | What college did jeremy zuttah attend? | CREATE TABLE table_15592941_1 (college VARCHAR, player_name VARCHAR) |
SELECT T1.first_name, T1.last_name FROM customer AS T1 JOIN rental AS T2 ON T1.customer_id = T2.customer_id ORDER BY T2.rental_date LIMIT 1 | What is the first name and the last name of the customer who made the earliest rental? | CREATE TABLE customer (first_name VARCHAR, last_name VARCHAR, customer_id VARCHAR); CREATE TABLE rental (customer_id VARCHAR, rental_date VARCHAR) |
SELECT "Round" FROM table_79109 WHERE "Winning team" = 'a.z.k./roc-compétition a.z.k./roc-compétition' AND "Date" = '30 june' | What is the round on 30 June with a.z.k./roc-comp tition a.z.k./roc-comp tition as the winning team? | CREATE TABLE table_79109 (
"Round" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Winning team" text
) |
SELECT MAX(pa) FROM table_15597975_2 WHERE stolen_ends = 5 | When the stolen ends equal 5 whats the amount of pa? | CREATE TABLE table_15597975_2 (pa INTEGER, stolen_ends VARCHAR) |
SELECT DISTINCT T1.first_name, T1.last_name FROM staff AS T1 JOIN rental AS T2 ON T1.staff_id = T2.staff_id JOIN customer AS T3 ON T2.customer_id = T3.customer_id WHERE T3.first_name = 'APRIL' AND T3.last_name = 'BURNS' | What is the full name of the staff member who has rented a film to a customer with the first name April and the last name Burns? | CREATE TABLE customer (customer_id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE rental (staff_id VARCHAR, customer_id VARCHAR); CREATE TABLE staff (first_name VARCHAR, last_name VARCHAR, staff_id VARCHAR) |
SELECT demographic.age, lab.fluid FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.subject_id = "2560" | find out the age and lab test fluid to be checked for patient with patient id 2560. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... |
SELECT position_in_2013 FROM table_1560673_1 WHERE first_season = 2014 | What position is the player whose first year is 2014 | CREATE TABLE table_1560673_1 (position_in_2013 VARCHAR, first_season VARCHAR) |
SELECT store_id FROM customer GROUP BY store_id ORDER BY COUNT(*) DESC LIMIT 1 | Which store has most the customers? | CREATE TABLE customer (store_id VARCHAR) |
SELECT "Urban sub-area" FROM table_37692 WHERE "Council area" = 'east dunbartonshire' AND "Population" = '19,020' | What is the urban sub-area with an East Dunbartonshire council area and a population of 19,020? | CREATE TABLE table_37692 (
"Rank" text,
"Urban sub-area" text,
"Population" text,
"Status" text,
"Council area" text
) |
SELECT position_in_2013 FROM table_1560673_1 WHERE number_of_seasons_in_second_tier = "29" | What was the players position in 2013 who had 29 seasons in the second tier | CREATE TABLE table_1560673_1 (position_in_2013 VARCHAR, number_of_seasons_in_second_tier VARCHAR) |
SELECT amount FROM payment ORDER BY amount DESC LIMIT 1 | What is the largest payment amount? | CREATE TABLE payment (amount VARCHAR) |
SELECT cname FROM college WHERE enr > 18000 ORDER BY cname | List the name of the colleges whose enrollment is greater 18000 sorted by the college's name. | CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
)
CREATE TABLE college (
cname text,
state text,
enr number
)
CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
) |
SELECT first_season FROM table_1560673_1 WHERE club = "Syrianska FC" | What was the first season for Syrianska FC | CREATE TABLE table_1560673_1 (first_season VARCHAR, club VARCHAR) |
SELECT T2.address FROM staff AS T1 JOIN address AS T2 ON T1.address_id = T2.address_id WHERE T1.first_name = 'Elsa' | Where does the staff member with the first name Elsa live? | CREATE TABLE staff (address_id VARCHAR, first_name VARCHAR); CREATE TABLE address (address VARCHAR, address_id VARCHAR) |
SELECT Carrier, AVG(Memory_in_G) FROM phone GROUP BY Carrier ORDER BY AVG(Memory_in_G) DESC | What are the memories and carriers of phones Show bar chart, and show by the mean memory in g in descending. | CREATE TABLE phone_market (
Market_ID int,
Phone_ID text,
Num_of_stock int
)
CREATE TABLE market (
Market_ID int,
District text,
Num_of_employees int,
Num_of_shops real,
Ranking int
)
CREATE TABLE phone (
Name text,
Phone_ID int,
Memory_in_G int,
Carrier text,
Price... |
SELECT MIN(first_season) FROM table_1560673_1 | What was the earliest season recorded for any team | CREATE TABLE table_1560673_1 (first_season INTEGER) |
SELECT first_name FROM customer WHERE NOT customer_id IN (SELECT customer_id FROM rental WHERE rental_date > '2005-08-23 02:06:01') | What are the first names of customers who have not rented any films after '2005-08-23 02:06:01'? | CREATE TABLE customer (first_name VARCHAR, customer_id VARCHAR, rental_date INTEGER); CREATE TABLE rental (first_name VARCHAR, customer_id VARCHAR, rental_date INTEGER) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "1" AND diagnoses.icd9_code = "261" | what is the number of patients whose death status is 1 and diagnoses icd9 code is 261? | 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 MAX(points_for) FROM table_15607589_2 WHERE date = "October 11" | Name the number of points for october 11 | CREATE TABLE table_15607589_2 (points_for INTEGER, date VARCHAR) |
SELECT COUNT(*) FROM bank | How many bank branches are there? | CREATE TABLE bank (Id VARCHAR) |
SELECT Tags.TagName, AVG(CAST(Posts.Score AS FLOAT)) AS avg, COUNT(Posts.Id) AS count FROM Tags LEFT JOIN Posts ON Posts.Tags LIKE '%' + Tags.TagName + '%' GROUP BY Tags.TagName HAVING COUNT(Posts.Id) >= 5 ORDER BY avg DESC LIMIT 1 | which tag is used in questions with the highest average score, excluding tags used in less than 5 q. | CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time... |
SELECT date FROM table_15607589_2 WHERE week = 9 | Name the date for week 9 | CREATE TABLE table_15607589_2 (date VARCHAR, week VARCHAR) |
SELECT SUM(no_of_customers) FROM bank | How many customers are there? | CREATE TABLE bank (no_of_customers INTEGER) |
SELECT SUM("Gold") FROM table_51383 WHERE "Bronze" = '0' AND "Total" < '1' | When the Total is less than 1, and Bronze is 0, how many Gold medals are there? | CREATE TABLE table_51383 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT points_against FROM table_15607589_2 WHERE date = "November 7" | Name the points against for november 7 | CREATE TABLE table_15607589_2 (points_against VARCHAR, date VARCHAR) |
SELECT SUM(no_of_customers) FROM bank WHERE city = 'New York City' | Find the number of customers in the banks at New York City. | CREATE TABLE bank (no_of_customers INTEGER, city VARCHAR) |
SELECT MAX(game) FROM table_name_40 WHERE march = 29 | March of 29 involves what highest scoring game? | CREATE TABLE table_name_40 (
game INTEGER,
march VARCHAR
) |
SELECT points_against FROM table_15607589_2 WHERE date = "November 14" | Name the points against for november 14 | CREATE TABLE table_15607589_2 (points_against VARCHAR, date VARCHAR) |
SELECT AVG(no_of_customers) FROM bank WHERE state = 'Utah' | Find the average number of customers in all banks of Utah state. | CREATE TABLE bank (no_of_customers INTEGER, state VARCHAR) |
SELECT "Original air date" FROM table_72086 WHERE "Production code" = '9ABX02' | The episode with production code 9abx02 was originally aired on what date? | CREATE TABLE table_72086 (
"No. in set" real,
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
) |
SELECT first_downs FROM table_15607589_2 WHERE points_against = 0 | Name the first downs for points against being 0 | CREATE TABLE table_15607589_2 (first_downs VARCHAR, points_against VARCHAR) |
SELECT AVG(no_of_customers) FROM bank | Find the average number of customers cross all banks. | CREATE TABLE bank (no_of_customers INTEGER) |
SELECT "Females (%)" FROM table_19423 WHERE "India/State/UT" = 'Maharashtra' | What is the percentage of females where in India and are maharashtra? | CREATE TABLE table_19423 (
"State/UT Code" real,
"India/State/UT" text,
"Literate Persons (%)" text,
"Males (%)" text,
"Females (%)" text
) |
SELECT record FROM table_15607589_2 WHERE opponent = "New York Giants" | Name the record for new york giants | CREATE TABLE table_15607589_2 (record VARCHAR, opponent VARCHAR) |
SELECT city, state FROM bank WHERE bname = 'morningside' | Find the city and state of the bank branch named morningside. | CREATE TABLE bank (city VARCHAR, state VARCHAR, bname VARCHAR) |
SELECT name FROM city WHERE county_id = (SELECT county_id FROM county_public_safety ORDER BY police_officers DESC LIMIT 1) | Show the name of cities in the county that has the largest number of police officers. | CREATE TABLE county_public_safety (
county_id number,
name text,
population number,
police_officers number,
residents_per_officer number,
case_burden number,
crime_rate number,
police_force text,
location text
)
CREATE TABLE city (
city_id number,
county_id number,
name ... |
SELECT MIN(purse___us) AS $__ FROM table_15618241_1 WHERE year = 2011 | Name the least purse for 2011 | CREATE TABLE table_15618241_1 (purse___us INTEGER, year VARCHAR) |
SELECT bname FROM bank WHERE state = 'New York' | Find the branch names of banks in the New York state. | CREATE TABLE bank (bname VARCHAR, state VARCHAR) |
SELECT "Skip" FROM table_50536 WHERE "Third" = 'anna sloan' AND "Season" = '2012-13' | What is the skip that has a third of Anna Sloan in season 2012-13? | CREATE TABLE table_50536 (
"Season" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
) |
SELECT COUNT(wheel_arrangement) FROM table_15608800_2 WHERE class = "D14" | Name the number of wheel arrangement when class is d14 | CREATE TABLE table_15608800_2 (wheel_arrangement VARCHAR, class VARCHAR) |
SELECT cust_name FROM customer ORDER BY acc_bal | List the name of all customers sorted by their account balance in ascending order. | CREATE TABLE customer (cust_name VARCHAR, acc_bal VARCHAR) |
SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 84042) AND prescriptions.drug IN ('hydromorphone p.f.', 'fentanyl patch', 'vial') AND DATETIME(prescriptions.startdate) >= DATETIME(CURRENT_TIME(), '-57 month') | since 57 months ago, had patient 84042 been prescribed hydromorphone p.f., fentanyl patch, or vial? | CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
... |
SELECT MAX(number_at_pyewipe) FROM table_15608800_2 | Name the most number of pyewipe | CREATE TABLE table_15608800_2 (number_at_pyewipe INTEGER) |
SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name ORDER BY SUM(T2.amount) | List the name of all different customers who have some loan sorted by their total loan amount. | CREATE TABLE loan (cust_id VARCHAR, amount INTEGER); CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR) |
SELECT time_retired FROM table_name_12 WHERE grid = 24 | I want the time/retired for grid of 24 | CREATE TABLE table_name_12 (
time_retired VARCHAR,
grid VARCHAR
) |
SELECT number_at_march FROM table_15608800_2 WHERE class = "J66" | Name the number at march when class is j66 | CREATE TABLE table_15608800_2 (number_at_march VARCHAR, class VARCHAR) |
SELECT state, acc_type, credit_score FROM customer WHERE no_of_loans = 0 | Find the state, account type, and credit score of the customer whose number of loan is 0. | CREATE TABLE customer (state VARCHAR, acc_type VARCHAR, credit_score VARCHAR, no_of_loans VARCHAR) |
SELECT "Spine" FROM table_38310 WHERE "Number of issues" = '12' | Which spine has 12 issues? | CREATE TABLE table_38310 (
"Start month" text,
"End month" text,
"Cover" text,
"Spine" text,
"Indicia" text,
"Masthead" text,
"Number of issues" real
) |
SELECT railway FROM table_15608800_2 WHERE class = "J19" | Name the railway when class is j19 | CREATE TABLE table_15608800_2 (railway VARCHAR, class VARCHAR) |
SELECT COUNT(DISTINCT city) FROM bank | Find the number of different cities which banks are located at. | CREATE TABLE bank (city VARCHAR) |
SELECT MIN("Year") FROM table_32109 WHERE "Theatre" = 'shubert theatre' | Tell me the lowest year for shubert theatre | CREATE TABLE table_32109 (
"Year" real,
"Play" text,
"Role" text,
"Theatre" text,
"Location" text
) |
SELECT railway FROM table_15608800_2 WHERE class = "J15" | Name the railway when class is j15 | CREATE TABLE table_15608800_2 (railway VARCHAR, class VARCHAR) |
SELECT COUNT(DISTINCT state) FROM bank | Find the number of different states which banks are located at. | CREATE TABLE bank (state VARCHAR) |
SELECT MIN(top_division_titles) FROM table_11250_4 | What is the least top division titles? | CREATE TABLE table_11250_4 (
top_division_titles INTEGER
) |
SELECT years_in_orlando FROM table_15621965_1 WHERE school_club_team = "Penn State" | Name the years in orlando for penn state | CREATE TABLE table_15621965_1 (years_in_orlando VARCHAR, school_club_team VARCHAR) |
SELECT COUNT(DISTINCT acc_type) FROM customer | How many distinct types of accounts are there? | CREATE TABLE customer (acc_type VARCHAR) |
SELECT STRFTIME('%j', patient.hospitaldischargetime) - STRFTIME('%j', patient.hospitaladmittime) FROM patient WHERE patient.uniquepid = '010-20205' AND NOT patient.hospitaladmittime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1 | calculate the duration of hospital stay of patient 010-20205's last hospital stay. | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... |
SELECT nationality FROM table_15621965_1 WHERE no = 9 | Name the nationality of number 9 | CREATE TABLE table_15621965_1 (nationality VARCHAR, no VARCHAR) |
SELECT cust_name, acc_bal FROM customer WHERE cust_name LIKE '%a%' | Find the name and account balance of the customer whose name includes the letter ‘a’. | CREATE TABLE customer (cust_name VARCHAR, acc_bal VARCHAR) |
SELECT "Round" FROM table_43511 WHERE "Opponent" = 'freiburg' | Which round has an opponent of Freiburg? | CREATE TABLE table_43511 (
"Season" text,
"Competition" text,
"Round" text,
"Opponent" text,
"Home" text,
"Away" text
) |
SELECT years_in_orlando FROM table_15621965_10 WHERE position = "Forward" | Name the years in orlando for forward | CREATE TABLE table_15621965_10 (years_in_orlando VARCHAR, position VARCHAR) |
SELECT SUM(acc_bal) FROM customer WHERE state = 'Utah' OR state = 'Texas' | Find the total account balance of each customer from Utah or Texas. | CREATE TABLE customer (acc_bal INTEGER, state VARCHAR) |
SELECT AVG("Area (km\u00b2)") FROM table_11104 WHERE "Density (/km\u00b2)" = '263' | What's the Area with a Density of 263? | CREATE TABLE table_11104 (
"Suburb" text,
"Population (in 2008)" real,
"Median age (in 2006)" text,
"Mean household size (in 2006)" text,
"Area (km\u00b2)" real,
"Density (/km\u00b2)" real,
"Date first settled as a suburb" real,
"Gazetted as a Division Name" text
) |
SELECT COUNT(player) FROM table_15621965_10 WHERE school_club_team = "Arizona" | Name the number of players from arizona | CREATE TABLE table_15621965_10 (player VARCHAR, school_club_team VARCHAR) |
SELECT cust_name FROM customer WHERE acc_type = 'saving' INTERSECT SELECT cust_name FROM customer WHERE acc_type = 'checking' | Find the name of customers who have both saving and checking account types. | CREATE TABLE customer (cust_name VARCHAR, acc_type VARCHAR) |
SELECT position FROM table_name_4 WHERE years_for_rockets = "1992-93" | For the years 1992-93, what position did he play for the Houston Rockets? | CREATE TABLE table_name_4 (
position VARCHAR,
years_for_rockets VARCHAR
) |
SELECT years_in_orlando FROM table_15621965_10 WHERE school_club_team = "Concord HS" | Name the years in orlando that the player from concord hs was in | CREATE TABLE table_15621965_10 (years_in_orlando VARCHAR, school_club_team VARCHAR) |
SELECT cust_name FROM customer EXCEPT SELECT cust_name FROM customer WHERE acc_type = 'saving' | Find the name of customers who do not have an saving account. | CREATE TABLE customer (cust_name VARCHAR, acc_type VARCHAR) |
SELECT MAX(points) FROM table_23308178_8 | What is the largest number of points they had? | CREATE TABLE table_23308178_8 (
points INTEGER
) |
SELECT COUNT(player) FROM table_15621965_14 WHERE school_club_team = "Louisiana State" | Name the number of players for louisiana state | CREATE TABLE table_15621965_14 (player VARCHAR, school_club_team VARCHAR) |
SELECT cust_name FROM customer EXCEPT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE T2.loan_type = 'Mortgages' | Find the name of customers who do not have a loan with a type of Mortgages. | CREATE TABLE loan (cust_id VARCHAR, loan_type VARCHAR); CREATE TABLE customer (cust_name VARCHAR); CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR) |
SELECT Name, MAX(Revenue) FROM Manufacturers GROUP BY Headquarter | Create a bar chart showing maximal revenue across name | 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
) |
SELECT school_club_team FROM table_15621965_14 WHERE player = "Kevin Ollie" | Name the school/club team for kevin ollie | CREATE TABLE table_15621965_14 (school_club_team VARCHAR, player VARCHAR) |
SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Mortgages' INTERSECT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Auto' | Find the name of customers who have loans of both Mortgages and Auto. | CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR); CREATE TABLE loan (cust_id VARCHAR) |
SELECT COUNT("Bronze") FROM table_10315 WHERE "Sport" = 'futsal' | Tell me the total number of Bronze for futsal | CREATE TABLE table_10315 (
"Sport" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT school_club_team FROM table_15621965_14 WHERE player = "Jawann Oldham" | Name the school/club team for jawann oldham | CREATE TABLE table_15621965_14 (school_club_team VARCHAR, player VARCHAR) |
SELECT cust_name FROM customer WHERE credit_score < (SELECT AVG(credit_score) FROM customer) | Find the name of customers whose credit score is below the average credit scores of all customers. | CREATE TABLE customer (cust_name VARCHAR, credit_score INTEGER) |
SELECT MIN(year_drafted) FROM table_18373863_2 WHERE years_played = "2005" | When 2005 is the year played what is the lowest year drafted? | CREATE TABLE table_18373863_2 (
year_drafted INTEGER,
years_played VARCHAR
) |
SELECT player FROM table_15621965_14 WHERE school_club_team = "Seattle" | Name the player for seattle | CREATE TABLE table_15621965_14 (player VARCHAR, school_club_team VARCHAR) |
SELECT bname FROM bank ORDER BY no_of_customers DESC LIMIT 1 | Find the branch name of the bank that has the most number of customers. | CREATE TABLE bank (bname VARCHAR, no_of_customers VARCHAR) |
SELECT ACC_Road, School_ID FROM basketball_match GROUP BY ACC_Home, ACC_Road ORDER BY ACC_Road DESC | Give me the comparison about School_ID over the ACC_Road , and group by attribute ACC_Home by a bar chart, and order by the bars in desc. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... |
SELECT nationality FROM table_15621965_16 WHERE school_club_team = "Clemson" | What is the nationality of th player who's school is Clemson? | CREATE TABLE table_15621965_16 (nationality VARCHAR, school_club_team VARCHAR) |
SELECT cust_name FROM customer ORDER BY credit_score LIMIT 1 | Find the name of customer who has the lowest credit score. | CREATE TABLE customer (cust_name VARCHAR, credit_score VARCHAR) |
SELECT "General Classification" FROM table_59025 WHERE "Mountains Classification" = 'david loosli' AND "Stage" = '3' | What's the general classification of stage 3 with David Loosli as the mountains classification? | CREATE TABLE table_59025 (
"Stage" text,
"Winner" text,
"General Classification" text,
"Mountains Classification" text,
"Points Classification" text,
"Sprints classification" text,
"Team Classification" text
) |
SELECT years_in_orlando FROM table_15621965_16 WHERE school_club_team = "Clemson" | What years did the player who's school is Clemson spend in Orlando? | CREATE TABLE table_15621965_16 (years_in_orlando VARCHAR, school_club_team VARCHAR) |
SELECT cust_name, acc_type, acc_bal FROM customer ORDER BY credit_score DESC LIMIT 1 | Find the name, account type, and account balance of the customer who has the highest credit score. | CREATE TABLE customer (cust_name VARCHAR, acc_type VARCHAR, acc_bal VARCHAR, credit_score VARCHAR) |
SELECT MAX("Established") FROM table_19156 WHERE "High School" = 'Mount Tahoma' | When was Mount Tahoma established? | CREATE TABLE table_19156 (
"High School" text,
"Type" text,
"Established" real,
"Enrollment" real,
"Mascot" text,
"WIAA Classification" text,
"Notes" text
) |
SELECT MAX(no) FROM table_15621965_16 WHERE school_club_team = "Delta State" | What is the number of the player who attended Delta State? | CREATE TABLE table_15621965_16 (no INTEGER, school_club_team VARCHAR) |
SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name ORDER BY SUM(T2.amount) DESC LIMIT 1 | Find the name of customer who has the highest amount of loans. | CREATE TABLE loan (cust_id VARCHAR, amount INTEGER); CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR) |
SELECT directed_by FROM table_2221484_2 WHERE series__number = 266 | Who directed episode 266 in the series? | CREATE TABLE table_2221484_2 (
directed_by VARCHAR,
series__number VARCHAR
) |
SELECT player FROM table_15621965_2 WHERE position = "Forward-Center" | Who plays the position of forward-center? | CREATE TABLE table_15621965_2 (player VARCHAR, position VARCHAR) |
SELECT state FROM bank GROUP BY state ORDER BY SUM(no_of_customers) DESC LIMIT 1 | Find the state which has the most number of customers. | CREATE TABLE bank (state VARCHAR, no_of_customers INTEGER) |
SELECT date FROM table_name_10 WHERE tournament = "the tour championship" | When did the Tournament of the Tour Championship take place? | CREATE TABLE table_name_10 (
date VARCHAR,
tournament VARCHAR
) |
SELECT years_in_orlando FROM table_15621965_3 WHERE player = "Chris Corchiani" | During what years did Chris Corchiani play in Orlando? | CREATE TABLE table_15621965_3 (years_in_orlando VARCHAR, player VARCHAR) |
SELECT AVG(acc_bal), acc_type FROM customer WHERE credit_score < 50 GROUP BY acc_type | For each account type, find the average account balance of customers with credit score lower than 50. | CREATE TABLE customer (acc_type VARCHAR, acc_bal INTEGER, credit_score INTEGER) |
SELECT "Province" FROM table_48114 WHERE "Largest city" = 'birjand' | What province has the largest city of Birjand? | CREATE TABLE table_48114 (
"Province" text,
"Largest city" text,
"2nd Largest" text,
"3rd Largest" text,
"4th largest" text
) |
SELECT date_of_issue FROM table_15635768_1 WHERE face_value = "42¢" | When the face value is 42¢, what was the issue's date? | CREATE TABLE table_15635768_1 (date_of_issue VARCHAR, face_value VARCHAR) |
SELECT SUM(acc_bal), state FROM customer WHERE credit_score > 100 GROUP BY state | For each state, find the total account balance of customers whose credit score is above 100. | CREATE TABLE customer (state VARCHAR, acc_bal INTEGER, credit_score INTEGER) |
SELECT Event_Details, COUNT(Event_Details) FROM Events GROUP BY Event_Details | Group and count details for the events using a pie chart. | CREATE TABLE Events (
Event_ID INTEGER,
Service_ID INTEGER,
Event_Details VARCHAR(255)
)
CREATE TABLE Participants_in_Events (
Event_ID INTEGER,
Participant_ID INTEGER
)
CREATE TABLE Participants (
Participant_ID INTEGER,
Participant_Type_Code CHAR(15),
Participant_Details VARCHAR(255)... |
SELECT place_of_issue FROM table_15635768_1 WHERE ecosystem = "Kelp Forest" | Which location has the ecosystem of kelp forest? | CREATE TABLE table_15635768_1 (place_of_issue VARCHAR, ecosystem VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.