answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT census_ranking FROM table_171356_2 WHERE area_km_2 = "482.81" | What rank is the parish with 482.81 km^2? | CREATE TABLE table_171356_2 (census_ranking VARCHAR, area_km_2 VARCHAR) |
SELECT MIN(T2.HS), T1.pPos FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID GROUP BY T1.pPos | What is minimum hours of the students playing in different position? | CREATE TABLE player (HS INTEGER, pID VARCHAR); CREATE TABLE tryout (pPos VARCHAR, pID VARCHAR) |
SELECT MAX("Number") FROM table_17426 | What is the highest number listed? | CREATE TABLE table_17426 (
"Number" real,
"Builder" text,
"Built" text,
"Rebuilt" text,
"Name as rebuilt" text,
"Scrapped/Sold" text
) |
SELECT status FROM table_171356_2 WHERE census_ranking = "2,290 of 5,008" | What status doe the area with a census ranking of 2,290 of 5,008 have? | CREATE TABLE table_171356_2 (status VARCHAR, census_ranking VARCHAR) |
SELECT cName FROM college ORDER BY enr DESC LIMIT 3 | What are the names of schools with the top 3 largest size? | CREATE TABLE college (cName VARCHAR, enr 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, fare, flight, flight_fare WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.... | what is the most expensive flight from BOSTON to DALLAS | CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
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 T... |
SELECT COUNT(status) FROM table_171356_2 WHERE official_name = "Gagetown" | How many statuses are listed for the parish officially named Gagetown? | CREATE TABLE table_171356_2 (status VARCHAR, official_name VARCHAR) |
SELECT cName, state, MIN(enr) FROM college GROUP BY state | What is the name of school that has the smallest enrollment in each state? | CREATE TABLE college (cName VARCHAR, state VARCHAR, enr INTEGER) |
SELECT polling_firm FROM table_name_91 WHERE t_papadopoulos = "31%" | Which polling firm put T. Papadopoulos at 31%? | CREATE TABLE table_name_91 (
polling_firm VARCHAR,
t_papadopoulos VARCHAR
) |
SELECT census_ranking FROM table_171356_2 WHERE official_name = "Petersville" | What is Petersville's census ranking? | CREATE TABLE table_171356_2 (census_ranking VARCHAR, official_name VARCHAR) |
SELECT DISTINCT state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName | Find the states where have some college students in tryout. | CREATE TABLE college (cName VARCHAR); CREATE TABLE tryout (cName VARCHAR) |
SELECT (SELECT "score" FROM table_203_517 WHERE "date" = 'december 26') = (SELECT "score" FROM table_203_517 WHERE "date" = 'january 2') | is the total score for december 26 the same score as january 2 ? | CREATE TABLE table_203_517 (
id number,
"#" number,
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"pts" number
) |
SELECT population FROM table_171361_1 WHERE status = "City" | What is the population of each community with city status? | CREATE TABLE table_171361_1 (population VARCHAR, status VARCHAR) |
SELECT DISTINCT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes' | Find the states where have some college students in tryout and their decisions are yes. | CREATE TABLE tryout (cName VARCHAR, decision VARCHAR); CREATE TABLE college (state VARCHAR, cName VARCHAR) |
SELECT prescriptions.dose_val_rx FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 65962) AND prescriptions.drug = 'd5 1/2ns' AND STRFTIME('%y-%m', prescriptions.startdate) = '2103-05' ORDER BY prescriptions.startdate DESC LIMIT 1 | what is the last d5 1/2ns dose that patient 65962 was prescribed in 05/2103? | CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number... |
SELECT official_name FROM table_171361_1 WHERE area_km_2 = "30.75" | What is the name of the community with an area of 30.75 sq. km.? | CREATE TABLE table_171361_1 (official_name VARCHAR, area_km_2 VARCHAR) |
SELECT T1.pName, T2.cName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes' | Find the name and college of students whose decisions are yes in the tryout. | CREATE TABLE tryout (cName VARCHAR, pID VARCHAR, decision VARCHAR); CREATE TABLE player (pName VARCHAR, pID VARCHAR) |
SELECT MIN("Poles") FROM table_2508 WHERE "Year" = '1996' | How many poles were there in 1996? | CREATE TABLE table_2508 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
) |
SELECT area_km_2 FROM table_171361_1 WHERE population = 1209 | What is the area of the community with a population of 1209? | CREATE TABLE table_171361_1 (area_km_2 VARCHAR, population VARCHAR) |
SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID ORDER BY T1.pName | Find the name of all students who were in the tryout sorted in alphabetic order. | CREATE TABLE tryout (pID VARCHAR); CREATE TABLE player (pName VARCHAR, pID VARCHAR) |
SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-16517' AND patient.hospitaldischargetime IS NULL)) AND med... | when was patient 007-16517 prescribed for the last time a medication via inhale medication in the current hospital visit? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREA... |
SELECT COUNT(population) FROM table_171361_1 WHERE area_km_2 = "10.25" | How many population values are listed for the community with an area of 10.25 sq.km.? | CREATE TABLE table_171361_1 (population VARCHAR, area_km_2 VARCHAR) |
SELECT T1.pName, T1.HS FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes' | Find the name and hours of the students whose tryout decision is yes. | CREATE TABLE player (pName VARCHAR, HS VARCHAR, pID VARCHAR); CREATE TABLE tryout (pID VARCHAR, decision VARCHAR) |
SELECT team FROM table_26124171_1 WHERE series = "Championnat de France Formula Renault 2.0" | How many teams were in the series championnat de france formula renault 2.0? | CREATE TABLE table_26124171_1 (
team VARCHAR,
series VARCHAR
) |
SELECT region_1 FROM table_171320_3 WHERE region_4 = "April 2, 2009" | Name the region 1 where region 4 for april 2, 2009 | CREATE TABLE table_171320_3 (region_1 VARCHAR, region_4 VARCHAR) |
SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'striker' | Find the states of the colleges that have students in the tryout who played in striker position. | CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR); CREATE TABLE college (state VARCHAR, cName VARCHAR) |
SELECT (SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 25696 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.l... | is patient 25696's urea nitrogen last measured on the last hospital visit greater than second to last measured on the last hospital visit? | CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE ... |
SELECT region_1 FROM table_171320_3 WHERE ep__number = 13 | Name the region 1 for episode number 13 | CREATE TABLE table_171320_3 (region_1 VARCHAR, ep__number VARCHAR) |
SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes' AND T2.pPos = 'striker' | Find the names of the students who are in the position of striker and got a yes tryout decision. | CREATE TABLE tryout (pID VARCHAR, decision VARCHAR, pPos VARCHAR); CREATE TABLE player (pName VARCHAR, pID VARCHAR) |
SELECT COUNT(3 AS _dart_average) FROM table_24549777_1 WHERE player = "Gary Anderson" | How man 3-dart averages did gary anderson have? | CREATE TABLE table_24549777_1 (
player VARCHAR
) |
SELECT COUNT(series__number) FROM table_17152787_3 WHERE season__number = 1 | How many episodes have the season number of 1? | CREATE TABLE table_17152787_3 (series__number VARCHAR, season__number VARCHAR) |
SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName JOIN player AS T3 ON T2.pID = T3.pID WHERE T3.pName = 'Charles' | Find the state of the college which player Charles is attending. | CREATE TABLE tryout (cName VARCHAR, pID VARCHAR); CREATE TABLE player (pID VARCHAR, pName VARCHAR); CREATE TABLE college (state VARCHAR, cName VARCHAR) |
SELECT area__acres__ FROM table_30120556_1 WHERE civil_parish = "Kilworth" AND townland = "Monadrishane" | What is the area of the civil parish kilworth and townland monadrishane? | CREATE TABLE table_30120556_1 (
area__acres__ VARCHAR,
civil_parish VARCHAR,
townland VARCHAR
) |
SELECT director FROM table_17155250_1 WHERE original_title = "The Patience Stone" | Who was the director of the film with the original title of "The Patience Stone"? | CREATE TABLE table_17155250_1 (director VARCHAR, original_title VARCHAR) |
SELECT AVG(T1.HS), MAX(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes' | Find the average and maximum hours for the students whose tryout decision is yes. | CREATE TABLE player (HS INTEGER, pID VARCHAR); CREATE TABLE tryout (pID VARCHAR, decision VARCHAR) |
SELECT "Name" FROM table_61421 WHERE "Street address" = '01.0 10 light street' | WHAT IS THE NAME WITH 01.0 10 light street? | CREATE TABLE table_61421 (
"Name" text,
"Street address" text,
"Years as tallest" text,
"Height ft ( m )" text,
"Floors" real
) |
SELECT year__ceremony_ FROM table_17155250_1 WHERE original_title = "Fire Dancer" | For what ceremony was "Fire Dancer" not nominated? | CREATE TABLE table_17155250_1 (year__ceremony_ VARCHAR, original_title VARCHAR) |
SELECT AVG(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'no' | Find the average hours for the students whose tryout decision is no. | CREATE TABLE player (HS INTEGER, pID VARCHAR); CREATE TABLE tryout (pID VARCHAR, decision VARCHAR) |
SELECT "Location" FROM table_61734 WHERE "Method" = 'ko' AND "Result" = 'win' AND "Record" = '2-0' | What is the location when KO is the method, the result is a win, and the record is 2-0? | CREATE TABLE table_61734 (
"Result" text,
"Record" text,
"Opponent" text,
"Method" text,
"Location" text
) |
SELECT film_title_used_in_nomination FROM table_17155250_1 WHERE original_title = "The Black Tulip" | What name was used for nomination for the film with an original title of "The Black Tulip"? | CREATE TABLE table_17155250_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) |
SELECT MAX(T1.HS), pPos FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T1.HS > 1000 GROUP BY T2.pPos | What is the maximum training hours for the students whose training hours is greater than 1000 in different positions? | CREATE TABLE player (HS INTEGER, pID VARCHAR); CREATE TABLE tryout (pPos VARCHAR, pID VARCHAR) |
SELECT Name, Number_Deaths FROM storm WHERE Number_Deaths >= 1 ORDER BY Name DESC | For all storms with at least 1 death, show me the name and the total number of deaths with a bar chart, order by the bar in descending. | CREATE TABLE region (
Region_id int,
Region_code text,
Region_name text
)
CREATE TABLE affected_region (
Region_id int,
Storm_ID int,
Number_city_affected real
)
CREATE TABLE storm (
Storm_ID int,
Name text,
Dates_active text,
Max_speed int,
Damage_millions_USD real,
Nu... |
SELECT language_s_ FROM table_17155250_1 WHERE film_title_used_in_nomination = "FireDancer" | What languages were spoken in the film "FireDancer"? | CREATE TABLE table_17155250_1 (language_s_ VARCHAR, film_title_used_in_nomination VARCHAR) |
SELECT T1.cName FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID WHERE T2.pName LIKE 'D%' | Which colleges do the tryout players whose name starts with letter D go to? | CREATE TABLE tryout (cName VARCHAR, pID VARCHAR); CREATE TABLE player (pID VARCHAR, pName VARCHAR) |
SELECT "Branding" FROM table_28307 WHERE "Callsign" = 'DYTC-FM' | What bran is the callsign dytc-fm? | CREATE TABLE table_28307 (
"Branding" text,
"Callsign" text,
"Frequency" text,
"Power (kW)" text,
"Location" text
) |
SELECT director FROM table_17155250_1 WHERE original_title = "16 Days in Afghanistan" | Who was the director of the film with an original title of "16 Days in Afghanistan"? | CREATE TABLE table_17155250_1 (director VARCHAR, original_title VARCHAR) |
SELECT cName FROM tryout WHERE decision = 'yes' AND pPos = 'goalie' | Which college has any student who is a goalie and succeeded in the tryout. | CREATE TABLE tryout (cName VARCHAR, decision VARCHAR, pPos VARCHAR) |
SELECT written_by FROM table_2453243_5 WHERE no_in_series = "48" | Who write episode number 48 in the series? | CREATE TABLE table_2453243_5 (
written_by VARCHAR,
no_in_series VARCHAR
) |
SELECT model FROM table_17157367_1 WHERE method = "HA" | what is the model where the method is ha? | CREATE TABLE table_17157367_1 (model VARCHAR, method VARCHAR) |
SELECT T2.pName FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID WHERE T1.cName = (SELECT cName FROM college ORDER BY enr DESC LIMIT 1) | Find the name of the tryout players who are from the college with largest size. | CREATE TABLE college (cName VARCHAR, enr VARCHAR); CREATE TABLE tryout (pID VARCHAR, cName VARCHAR); CREATE TABLE player (pName VARCHAR, pID VARCHAR) |
SELECT JOB_ID, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY COMMISSION_PCT | For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the distribution of job_id and commission_pct in a bar chart, and order in asc by the y axis. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25... |
SELECT COUNT(model) FROM table_17157367_1 WHERE "status" = "status" AND name = "GenEva" | what is the total number of model wehre the status is named geneva? | CREATE TABLE table_17157367_1 (model VARCHAR, name VARCHAR) |
SELECT DISTINCT T1.state, T1.enr FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes' | What is the state and enrollment of the colleges where have any students who got accepted in the tryout decision. | CREATE TABLE tryout (cName VARCHAR, decision VARCHAR); CREATE TABLE college (state VARCHAR, enr VARCHAR, cName VARCHAR) |
SELECT JOB_ID, AVG(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY AVG(EMPLOYEE_ID) DESC | For those employees who was hired before 2002-06-21, draw a bar chart about the distribution of job_id and the average of employee_id , and group by attribute job_id, and show Y-axis in descending order. | CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE... |
SELECT max_fs FROM table_17157367_1 WHERE "status" = "status" AND "method" = "method" | what is the max fs where the status is status and the method is method? | CREATE TABLE table_17157367_1 (max_fs VARCHAR) |
SELECT cName FROM College WHERE enr < 13000 AND state = "AZ" UNION SELECT cName FROM College WHERE enr > 15000 AND state = "LA" | Find the names of either colleges in LA with greater than 15000 size or in state AZ with less than 13000 enrollment. | CREATE TABLE College (cName VARCHAR, enr VARCHAR, state VARCHAR) |
SELECT MIN("Sales area (m\u00b2)") FROM table_4413 WHERE "Sales per area" = '€4,094/m²' AND "No. of stores" > '2' | What is the smallest sales area (m ) that has 4,094/m and more than 2 stores? | CREATE TABLE table_4413 (
"Country" text,
"Sales (X1000)" text,
"No. of stores" real,
"Sales area (m\u00b2)" real,
"Sales per area" text,
"Average store size (m\u00b2)" real
) |
SELECT output FROM table_17157367_1 WHERE short_description = "massive" | what ist he output where the short description is massive? | CREATE TABLE table_17157367_1 (output VARCHAR, short_description VARCHAR) |
SELECT cName FROM tryout WHERE pPos = 'goalie' INTERSECT SELECT cName FROM tryout WHERE pPos = 'mid' | Find the names of schools that have some students playing in goalie and mid positions. | CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR) |
SELECT MAX("Current branch opened") FROM table_41561 WHERE "Neighborhood" = 'w. portland park' | What is the highest Current Branch Opened, when Neighborhood is W. Portland Park? | CREATE TABLE table_41561 (
"Branch" text,
"Address" text,
"Neighborhood" text,
"First branch opened" real,
"Current branch opened" real
) |
SELECT film_title_used_in_nomination FROM table_17156199_1 WHERE original_title = "শ্যামল ছায়া (Shyamol Chhaya)" | What was the nominated film title of শ্যামল ছায়া (shyamol chhaya)? | CREATE TABLE table_17156199_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) |
SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie' INTERSECT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' | Find the names of states that have some college students playing in goalie and mid positions. | CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR); CREATE TABLE college (state VARCHAR, cName VARCHAR) |
SELECT MAX(demographic.age) FROM demographic WHERE demographic.diagnosis = "POSTERIOR COMMUNICATING ANEURYSM/SDA" AND demographic.admityear >= "2203" | what is the maximum age of patients primarily diagnosed with posterior communicating aneurysm/sda before the admission year 2203? | 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 year__ceremony_ FROM table_17156199_1 WHERE original_title = "বৃত্তের বাইরে (Britter Baire)" | What year and ceremony was the original title বৃত্তের বাইরে (britter baire)? | CREATE TABLE table_17156199_1 (year__ceremony_ VARCHAR, original_title VARCHAR) |
SELECT COUNT(*) FROM (SELECT cName FROM tryout WHERE pPos = 'goalie' INTERSECT SELECT cName FROM tryout WHERE pPos = 'mid') | How many schools have some students playing in goalie and mid positions. | CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR) |
SELECT "Date" FROM table_4590 WHERE "Home team score" = '8.15 (63)' | On what Date is there a Home team score of 8.15 (63)? | CREATE TABLE table_4590 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT COUNT(year__ceremony_) FROM table_17156199_1 WHERE original_title = "স্বপ্নডানায় (Swopnodanay)" | How many years was the original title was স্বপ্নডানায় (swopnodanay)? | CREATE TABLE table_17156199_1 (year__ceremony_ VARCHAR, original_title VARCHAR) |
SELECT cName FROM tryout WHERE pPos = 'mid' EXCEPT SELECT cName FROM tryout WHERE pPos = 'goalie' | Find the names of schools that have some players in the mid position but not in the goalie position. | CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR) |
SELECT DISTINCT course.department, course.name, course.number, semester.semester FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number BETWEEN 300 AND 300 + 100 AND semester.semester IN ('SP', 'SS', 'SU') AND semester.semester_id = cou... | What 300 -level classes do you have available for the Spring or Summer term ? | CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
sc... |
SELECT nickname FROM table_1715730_2 WHERE founded = 1902 | what is the nickname founded in 1902? | CREATE TABLE table_1715730_2 (nickname VARCHAR, founded VARCHAR) |
SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie' | Find the names of states that have some college students playing in the mid position but not in the goalie position. | CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR); CREATE TABLE college (state VARCHAR, cName VARCHAR) |
SELECT COUNT("Crowd") FROM table_54764 WHERE "Home team" = 'essendon' | What was the attendance when Essendon played as the home team? | CREATE TABLE table_54764 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT location FROM table_1715730_2 WHERE enrollment = 4259 | where is the enrollment 4259? | CREATE TABLE table_1715730_2 (location VARCHAR, enrollment VARCHAR) |
SELECT COUNT(*) FROM (SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie') | How many states that have some college students playing in the mid position but not in the goalie position. | CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR); CREATE TABLE college (state VARCHAR, cName VARCHAR) |
SELECT state, enr FROM College AS T1 JOIN Tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes' | Return a bar chart on what is the state and enrollment of the colleges where have any students who got accepted in the tryout decision. | CREATE TABLE College (
cName varchar(20),
state varchar(2),
enr numeric(5,0)
)
CREATE TABLE Tryout (
pID numeric(5,0),
cName varchar(20),
pPos varchar(8),
decision varchar(3)
)
CREATE TABLE Player (
pID numeric(5,0),
pName varchar(20),
yCard varchar(3),
HS numeric(5,0)
) |
SELECT founded FROM table_1715730_2 WHERE institution = "Union University" | what is the year union university was founded? | CREATE TABLE table_1715730_2 (founded VARCHAR, institution VARCHAR) |
SELECT DISTINCT state FROM college WHERE enr < (SELECT MAX(enr) FROM college) | Find the states where have the colleges whose enrollments are less than the largest size. | CREATE TABLE college (state VARCHAR, enr INTEGER) |
SELECT COUNT(*) FROM table_204_604 WHERE "manufacturer" = 'chevrolet' | how many total cars did chevrolet manufacture ? | CREATE TABLE table_204_604 (
id number,
"year" number,
"date" text,
"driver" text,
"team" text,
"manufacturer" text,
"race distance\nlaps" number,
"race distance\nmiles (km)" text,
"race time" text,
"average speed\n(mph)" number,
"report" text
) |
SELECT _percentage_2011 FROM table_1717824_1 WHERE province = "Manitoba" | What was the percentage in Manitoba in 2011? | CREATE TABLE table_1717824_1 (_percentage_2011 VARCHAR, province VARCHAR) |
SELECT DISTINCT cName FROM college WHERE enr > (SELECT MIN(enr) FROM college WHERE state = 'FL') | Find names of colleges with enrollment greater than that of some (at least one) college in the FL state. | CREATE TABLE college (cName VARCHAR, enr INTEGER, state VARCHAR) |
SELECT MAX("Crude death rate (per 1000)") FROM table_13038 WHERE "Deaths" = '3 433' AND "Average population (x 1000)" > '298' | What is the highest crude death rate when deaths are 3 433 and average population is greater than 298? | CREATE TABLE table_13038 (
"Average population (x 1000)" real,
"Live births" text,
"Deaths" text,
"Natural change" text,
"Crude birth rate (per 1000)" real,
"Crude death rate (per 1000)" real,
"Natural change (per 1000)" real
) |
SELECT province FROM table_1717824_1 WHERE south_asians_2001 = 210295 | Which province had population of 210295 South Asians in 2001? | CREATE TABLE table_1717824_1 (province VARCHAR, south_asians_2001 VARCHAR) |
SELECT cName FROM college WHERE enr > (SELECT MAX(enr) FROM college WHERE state = 'FL') | Find names of all colleges whose enrollment is greater than that of all colleges in the FL state. | CREATE TABLE college (cName VARCHAR, enr INTEGER, state VARCHAR) |
SELECT "Height" FROM table_57174 WHERE "Player" = 'nerlens noel' | How tall is nerlens noel? | CREATE TABLE table_57174 (
"Player" text,
"Height" text,
"School" text,
"Hometown" text,
"College" text
) |
SELECT south_asians_2001 FROM table_1717824_1 WHERE province = "Nova Scotia" | What was the South Asian population in Nova Scotia in 2001? | CREATE TABLE table_1717824_1 (south_asians_2001 VARCHAR, province VARCHAR) |
SELECT SUM(enr) FROM college WHERE NOT cName IN (SELECT cName FROM tryout WHERE pPos = "goalie") | What is the total number of enrollment of schools that do not have any goalie player? | CREATE TABLE college (enr INTEGER, cName VARCHAR, pPos VARCHAR); CREATE TABLE tryout (enr INTEGER, cName VARCHAR, pPos VARCHAR) |
SELECT COUNT("40 to 44") FROM table_77332 WHERE "50 to 54" < '4,184' AND "15 to 17" < '3' | What is the number of 40 to 44 when the 50 to 54 is less than 4,184, and the 15 to 17 is less than 3? | CREATE TABLE table_77332 (
"C/W 15+" real,
"Oblast\\Age" text,
"15 to 17" real,
"18 to 19" real,
"20 to 24" real,
"25 to 29" real,
"30 to 34" real,
"35 to 39" real,
"40 to 44" real,
"45 to 49" real,
"50 to 54" real,
"55 to 59" real,
"60 to 64" real,
"65 to 69" rea... |
SELECT _percentage_2011 FROM table_1717824_1 WHERE _percentage_2001 = "2.4%" | What was the percentage in 2011 of the province that had 2.4% population in 2001? | CREATE TABLE table_1717824_1 (_percentage_2011 VARCHAR, _percentage_2001 VARCHAR) |
SELECT COUNT(DISTINCT state) FROM college WHERE enr > (SELECT AVG(enr) FROM college) | What is the number of states that has some college whose enrollment is larger than the average enrollment? | CREATE TABLE college (state VARCHAR, enr INTEGER) |
SELECT director_s_ FROM table_name_63 WHERE recipient = "avie luthra" | Who directed the film that Avie Luthra received an award for? | CREATE TABLE table_name_63 (
director_s_ VARCHAR,
recipient VARCHAR
) |
SELECT COUNT(south_asians_2001) FROM table_1717824_1 WHERE _percentage_2011 = "4.4%" | How many figures are given for total number of South Asians in 2001 for the area where they were 4.4% of population in 2011? | CREATE TABLE table_1717824_1 (south_asians_2001 VARCHAR, _percentage_2011 VARCHAR) |
SELECT COUNT(DISTINCT state) FROM college WHERE enr < (SELECT AVG(enr) FROM college) | What is the number of states that has some colleges whose enrollment is smaller than the average enrollment? | CREATE TABLE college (state VARCHAR, enr INTEGER) |
SELECT "Home team score" FROM table_56904 WHERE "Crowd" > '25,603' | What is the home score with a crowd larger than 25,603? | CREATE TABLE table_56904 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT indians_admitted FROM table_1717824_3 WHERE year = 2001 | How many Indians were admitted in 2001? | CREATE TABLE table_1717824_3 (indians_admitted VARCHAR, year VARCHAR) |
SELECT COUNT(*) FROM device | How many devices are there? | CREATE TABLE device (Id VARCHAR) |
SELECT 2006 FROM table_name_34 WHERE 2007 = "q2" | What 2006 has q2 as the 2007? | CREATE TABLE table_name_34 (
Id VARCHAR
) |
SELECT MAX(pakistanis_admitted) FROM table_1717824_3 WHERE nepalis_admitted = 627 | What is the greatest number of Pakistanis admitted to Canada during those times when the number of Nepalis admitted was 627? | CREATE TABLE table_1717824_3 (pakistanis_admitted INTEGER, nepalis_admitted VARCHAR) |
SELECT Carrier FROM device ORDER BY Carrier | List the carriers of devices in ascending alphabetical order. | CREATE TABLE device (Carrier VARCHAR) |
SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE ... | what were the three most frequent drugs prescribed to patients with an age 60 or above after they had been diagnosed with adv eff arom analgsc nec during a year before within 2 months? | CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
... |
SELECT MIN(indians_admitted) FROM table_1717824_3 WHERE sri_lankans_admitted = 3104 | What is the most number of Indians admitted to Canada when the number of Sri Lankans admitted was 3104? | CREATE TABLE table_1717824_3 (indians_admitted INTEGER, sri_lankans_admitted VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.