answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT dvd_release FROM table_19982699_1 WHERE director = "Billy O'Brien" | When was the dvd release directed by Billy O'Brien? | CREATE TABLE table_19982699_1 (dvd_release VARCHAR, director VARCHAR) |
SELECT AVG("Attendance") FROM table_44081 WHERE "Opponents" = '38' AND "Falcons points" < '14' | What is the average attendance of the game with 38 opponent and less than 14 Falcons points? | CREATE TABLE table_44081 (
"Game" text,
"Date" text,
"Opponent" text,
"Result" text,
"Falcons points" real,
"Opponents" real,
"Attendance" real
) |
SELECT MIN(pick) FROM table_name_29 WHERE nationality = "canada" AND draft < 1985 AND player = "brian bradley" | What was the lowest Pick number of Player Brian Bradley from Canada, in a Draft year before 1985? | CREATE TABLE table_name_29 (pick INTEGER, player VARCHAR, nationality VARCHAR, draft VARCHAR) |
SELECT record FROM table_20010140_9 WHERE game = 20 | What was the record after game 20? | CREATE TABLE table_20010140_9 (record VARCHAR, game VARCHAR) |
SELECT years_in_orlando FROM table_name_11 WHERE position = "center" | Which years in Orlando are featured with the center position? | CREATE TABLE table_name_11 (
years_in_orlando VARCHAR,
position VARCHAR
) |
SELECT round FROM table_name_4 WHERE pick > 231 AND draft > 1988 AND player = "adam cracknell" | Which Round was Player Adam Cracknell Picked after 231 in a Draft year after 1988? | CREATE TABLE table_name_4 (round VARCHAR, player VARCHAR, pick VARCHAR, draft VARCHAR) |
SELECT high_assists FROM table_20010140_9 WHERE team = "Iowa" | For the game against Iowa, who had the most assists? | CREATE TABLE table_20010140_9 (high_assists VARCHAR, team VARCHAR) |
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BOSTON' AND flight.departure_time < 1000 AND flight.to_airport = AIRPORT_SERVICE_1.airpor... | are there any flights from DALLAS FORT WORTH to BOSTON leaving before 1000 | CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_... |
SELECT COUNT(yards) FROM table_name_99 WHERE avg = 9 AND rec = 1 | Name the total number of yards for avg of 9 and rec of 1 | CREATE TABLE table_name_99 (yards VARCHAR, avg VARCHAR, rec VARCHAR) |
SELECT high_assists FROM table_20010140_10 WHERE date = "February 15" | state high assists on february 15 | CREATE TABLE table_20010140_10 (high_assists VARCHAR, date VARCHAR) |
SELECT T1.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Manufacturer | For those records from the products and each product's manufacturer, show me about the distribution of name and the sum of manufacturer , and group by attribute name in a bar chart, order by the y-axis from low to high. | 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 MAX(losses) FROM table_name_69 WHERE points_for < 79 AND games_played = 10 AND point_differential < 34 | What is the highest number of losses that the team incurred while scoring less than 79 points in 10 games with a point differential less than 34? | CREATE TABLE table_name_69 (losses INTEGER, point_differential VARCHAR, points_for VARCHAR, games_played VARCHAR) |
SELECT COUNT(high_points) FROM table_20010140_10 WHERE date = "February 19" | how many high points where date is february 19 | CREATE TABLE table_20010140_10 (high_points VARCHAR, date VARCHAR) |
SELECT "School/Club Team" FROM table_46621 WHERE "Player" = 'gerald wilkins' | What school/club did gerald wilkins attend? | CREATE TABLE table_46621 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Grizzlies" text,
"School/Club Team" text
) |
SELECT player FROM table_name_85 WHERE date_of_birth__age_when_delisted_ = "13 february 1987 (aged 24)" | Which Player has a Date of Birth (Age When Delisted) of 13 February 1987 (aged 24)? | CREATE TABLE table_name_85 (player VARCHAR, date_of_birth__age_when_delisted_ VARCHAR) |
SELECT COUNT(location_attendance) FROM table_20010140_10 WHERE record = "15β10 (5β7)" | state the number of location attendance where record is 15β10 (5β7) | CREATE TABLE table_20010140_10 (location_attendance VARCHAR, record VARCHAR) |
SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | For those employees who do not work in departments with managers that have ids between 100 and 200, draw a bar chart about the distribution of hire_date and the average of manager_id bin hire_date by weekday. | 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 regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
... |
SELECT senior_list FROM table_name_84 WHERE date_of_birth__age_when_delisted_ = "5 june 1984 (aged 23)" | What is listed under Senior List for Date of Birth (Age When Delisted) of 5 June 1984 (aged 23)? | CREATE TABLE table_name_84 (senior_list VARCHAR, date_of_birth__age_when_delisted_ VARCHAR) |
SELECT COUNT(date) FROM table_20010140_10 WHERE high_assists = "Stu Douglass (5) β 4" | how many dates where high assists is stu douglass (5) β 4 | CREATE TABLE table_20010140_10 (date VARCHAR, high_assists VARCHAR) |
SELECT "fee" FROM table_204_482 WHERE "name" = 'kevin watson' | what was the transfer fee to transfer kevin watson ? | CREATE TABLE table_204_482 (
id number,
"date" text,
"position" text,
"name" text,
"from" text,
"fee" text
) |
SELECT AVG(year_began_making_autos) FROM table_name_30 WHERE year_joined_gm = 1917 | What is the average year to begin making autos for a brand that joined GM in 1917? | CREATE TABLE table_name_30 (year_began_making_autos INTEGER, year_joined_gm VARCHAR) |
SELECT COUNT(record) FROM table_20010140_10 WHERE date = "February 22" | how many records were made on february 22 | CREATE TABLE table_20010140_10 (record VARCHAR, date VARCHAR) |
SELECT "Result" FROM table_50066 WHERE "Category" = 'best actor in a supporting role' | What's the result for the category of best actor in a supporting role? | CREATE TABLE table_50066 (
"Year" real,
"Award giving body" text,
"Category" text,
"Nominated for" text,
"Result" text
) |
SELECT date FROM table_name_74 WHERE home_team = "melbourne" | Name the date with a home team of melbourne | CREATE TABLE table_name_74 (date VARCHAR, home_team VARCHAR) |
SELECT MAX(applications) FROM table_20007413_3 WHERE year = "1986" | Name the most applications for 1986 | CREATE TABLE table_20007413_3 (applications INTEGER, year VARCHAR) |
SELECT "Harris" FROM table_20443 WHERE "Party" = 'Labour' | What is the percentage of the Labour Party on the Harris Poll | CREATE TABLE table_20443 (
"Party" text,
"Marplan" text,
"Gallup" text,
"National Opinion Polls (NOP)" text,
"Opinion Research Centre (OPC)" text,
"Harris" text
) |
SELECT venue FROM table_name_40 WHERE home_team = "collingwood" | Name the venue for collingwood home team | CREATE TABLE table_name_40 (venue VARCHAR, home_team VARCHAR) |
SELECT torque FROM table_20007413_3 WHERE year = "1986" | Name the torque for 1986 | CREATE TABLE table_20007413_3 (torque VARCHAR, year VARCHAR) |
SELECT engine FROM table_name_97 WHERE year > 1978 AND entrant = "ram penthouse rizla racing" | What engine was used by Ram Penthouse Rizla Racing in 1978? | CREATE TABLE table_name_97 (
engine VARCHAR,
year VARCHAR,
entrant VARCHAR
) |
SELECT year FROM table_name_7 WHERE gen_secretary = "silvana jansen" | Which year has a Gen.-Secretary of silvana jansen? | CREATE TABLE table_name_7 (year VARCHAR, gen_secretary VARCHAR) |
SELECT network FROM table_20026849_1 WHERE destination = "Australia" | What network showed the season with Australia as the destination? | CREATE TABLE table_20026849_1 (network VARCHAR, destination VARCHAR) |
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, flight, flight_stop WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DALLAS' AND CITY_2.cit... | find all flights from PHILADELPHIA to DALLAS stopping in ATLANTA | CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE fare (
fare_id int,
from_airport varchar,
to_airport varchar,
fare_basis_code text,
fare_airline text,
restriction_code text,
one_direction_cost int,
round_trip_cost int,
round_trip_req... |
SELECT Vice AS president FROM table_name_29 WHERE president = "daniel masny" AND treasurer = "rebecca t. altmann" | Which Vice President has a President of daniel masny, and a Treasurer of rebecca t. altmann? | CREATE TABLE table_name_29 (Vice VARCHAR, president VARCHAR, treasurer VARCHAR) |
SELECT MAX(season) FROM table_20026849_1 WHERE contestants = 20 | What was the latest season with 20 contestants? | CREATE TABLE table_20026849_1 (season INTEGER, contestants VARCHAR) |
SELECT COUNT(position) FROM table_name_62 WHERE goals_for < 40 AND played > 38 | How many positions have goals of fewer than 40 and more than 38 played? | CREATE TABLE table_name_62 (
position VARCHAR,
goals_for VARCHAR,
played VARCHAR
) |
SELECT president FROM table_name_89 WHERE year = "2002-2003, second semester" | Who was president Year of 2002-2003, second semester? | CREATE TABLE table_name_89 (president VARCHAR, year VARCHAR) |
SELECT MIN(season) FROM table_20026849_1 WHERE winner = "Ashutosh Kaushik" | What season was won by Ashutosh Kaushik? | CREATE TABLE table_20026849_1 (season INTEGER, winner VARCHAR) |
SELECT COUNT(*) FROM table_203_595 WHERE "playoffs" = 'did not qualify' AND "open cup" = 'did not qualify' | how many times did they not qualify for both playoffs and open cup ? | CREATE TABLE table_203_595 (
id number,
"year" number,
"division" number,
"league" text,
"reg. season" text,
"playoffs" text,
"open cup" text
) |
SELECT treasurer FROM table_name_74 WHERE president = "sebastian ihler" | Which treasurer has a President of sebastian ihler? | CREATE TABLE table_name_74 (treasurer VARCHAR, president VARCHAR) |
SELECT destination FROM table_20026849_1 WHERE winner = "Anwar Syed" | What was the destination of the season won by Anwar Syed? | CREATE TABLE table_20026849_1 (destination VARCHAR, winner VARCHAR) |
SELECT "event" FROM table_204_363 WHERE id = (SELECT id FROM table_204_363 WHERE "event" = 'dynamite!! usa') - 1 | which event comes before dynamite !! usa ? | CREATE TABLE table_204_363 (
id number,
"res." text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"date" text,
"round" number,
"time" text,
"location" text,
"notes" text
) |
SELECT opponent FROM table_name_1 WHERE surface = "grass" | Which opponent used a grass surface? | CREATE TABLE table_name_1 (opponent VARCHAR, surface VARCHAR) |
SELECT season FROM table_20026849_1 WHERE winner = "Anthony Yeh" | What season was won by Anthony Yeh? | CREATE TABLE table_20026849_1 (season VARCHAR, winner VARCHAR) |
SELECT "Team" FROM table_71845 WHERE "Completion %" = '59.8%' | Which team has a 59.8% completion rate? | CREATE TABLE table_71845 (
"Year" text,
"Team" text,
"Attempts" text,
"Completions" text,
"Completion %" text,
"Yards" text
) |
SELECT tournament FROM table_name_3 WHERE score = "6β7 (0β7) , 6β2, 4β6" | Which tournament had a score of 6β7 (0β7) , 6β2, 4β6? | CREATE TABLE table_name_3 (tournament VARCHAR, score VARCHAR) |
SELECT winner FROM table_20026849_1 WHERE destination = "Africa" | Who won the season with Africa as its destination? | CREATE TABLE table_20026849_1 (winner VARCHAR, destination VARCHAR) |
SELECT COUNT(drumset_name) FROM table_2889300_6 WHERE drumstand__oftenoptional_ = "HD-1/3Stand" AND tom_tom_pads = "3xCloth-Head" | how many drumsets of drumstand (oftenoptional) with hd-1/3stand and tom-tom pads is 3xcloth-head are | CREATE TABLE table_2889300_6 (
drumset_name VARCHAR,
drumstand__oftenoptional_ VARCHAR,
tom_tom_pads VARCHAR
) |
SELECT COUNT(points) FROM table_name_72 WHERE lost < 4 | Tell me the total number of points for lost less than 4 | CREATE TABLE table_name_72 (points VARCHAR, lost INTEGER) |
SELECT african_spoonbill FROM table_20042805_2 WHERE hadeda_ibis = "Brown Snake Eagle" | What is the African Spoonbill when the Hadeda Ibis is the Brown Snake Eagle? | CREATE TABLE table_20042805_2 (african_spoonbill VARCHAR, hadeda_ibis VARCHAR) |
SELECT demographic.marital_status, demographic.expire_flag FROM demographic WHERE demographic.subject_id = "98220" | what is marital status and death status of subject id 98220? | 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 SUM(drawn) FROM table_name_81 WHERE lost < 0 | I want the sum of drawn for lost less than 0 | CREATE TABLE table_name_81 (drawn INTEGER, lost INTEGER) |
SELECT hadeda_ibis FROM table_20042805_2 WHERE ostrich = "Dark Chanting Goshawk" | What is the Hadeda Ibis when the Ostrich is Dark Chanting Goshawk? | CREATE TABLE table_20042805_2 (hadeda_ibis VARCHAR, ostrich VARCHAR) |
SELECT SUM("Rank") FROM table_59811 WHERE "Network" = 'bbc one' AND "Number of Viewers" = '30.15million' | Which Rank has a Network of bbc one, and a Number of Viewers of 30.15million? Question 2 | CREATE TABLE table_59811 (
"Rank" real,
"Show" text,
"Number of Viewers" text,
"Date" text,
"Network" text
) |
SELECT points_difference FROM table_name_29 WHERE points = 14 | I want the points difference for points of 14 | CREATE TABLE table_name_29 (points_difference VARCHAR, points VARCHAR) |
SELECT african_spoonbill FROM table_20042805_2 WHERE hadeda_ibis = "Flernecked Nightjar" | What is the African Spoonbill when the Hadeda Ibis is Flernecked Nightjar? | CREATE TABLE table_20042805_2 (african_spoonbill VARCHAR, hadeda_ibis VARCHAR) |
SELECT MAX("Pick") FROM table_47802 WHERE "Position" = 'wr' AND "College" = 'michigan' AND "Overall" > '255' | What is the maximum pick when WR was the position and Michigan the college, and the overall greater than 255? | CREATE TABLE table_47802 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) |
SELECT SUM(rank) FROM table_name_59 WHERE gold > 0 AND total > 32 AND silver < 23 | Tell me the sum of rank for when gold is more than 0 and silver less than 23 with total more than 32 | CREATE TABLE table_name_59 (rank INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR) |
SELECT hadeda_ibis FROM table_20042805_2 WHERE knobbilled_duck = "Pied Crow" | What is the Hadeda Ibis when the Knobbilled Duck is Pied Crow? | CREATE TABLE table_20042805_2 (hadeda_ibis VARCHAR, knobbilled_duck VARCHAR) |
SELECT "High rebounds" FROM table_22669 WHERE "Record" = '7-1' | Name the high rebounds for record 7-1 | CREATE TABLE table_22669 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location/Attendance" text,
"Record" text
) |
SELECT SUM(silver) FROM table_name_34 WHERE nation = "liechtenstein" AND bronze > 4 | Tell me the sum of silver for liechtenstein and bronze more than 4 | CREATE TABLE table_name_34 (silver INTEGER, nation VARCHAR, bronze VARCHAR) |
SELECT african_spoonbill FROM table_20042805_2 WHERE ostrich = "Brown-hooded Kingfisher" | What is the African Spoonbill when the Ostrich is Brown-hooded Kingfisher? | CREATE TABLE table_20042805_2 (african_spoonbill VARCHAR, ostrich VARCHAR) |
SELECT state, enr FROM College AS T1 JOIN Tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes' ORDER BY state | What is the state and enrollment of the colleges where have any students who got accepted in the tryout decision Plot them as bar chart, order X-axis in asc order. | CREATE TABLE Tryout (
pID numeric(5,0),
cName varchar(20),
pPos varchar(8),
decision varchar(3)
)
CREATE TABLE College (
cName varchar(20),
state varchar(2),
enr numeric(5,0)
)
CREATE TABLE Player (
pID numeric(5,0),
pName varchar(20),
yCard varchar(3),
HS numeric(5,0)
) |
SELECT tournament FROM table_name_70 WHERE score = "6β4, 4β6, 7β5" | Which tournament had a score of 6β4, 4β6, 7β5? | CREATE TABLE table_name_70 (tournament VARCHAR, score VARCHAR) |
SELECT hadeda_ibis FROM table_20042805_2 WHERE whitefaced_duck = "Blacksmith Plover" | What is the Hadeda Ibis when the Whitefaced Duck is Blacksmith Plover? | CREATE TABLE table_20042805_2 (hadeda_ibis VARCHAR, whitefaced_duck VARCHAR) |
SELECT record FROM table_21796261_4 WHERE location = "BC Place Stadium" | What's the record achieved in the gamed played at BC Place Stadium? | CREATE TABLE table_21796261_4 (
record VARCHAR,
location VARCHAR
) |
SELECT tournament FROM table_name_7 WHERE score = "7β5, 2β6, 7β6" | Which tournament had a score of 7β5, 2β6, 7β6? | CREATE TABLE table_name_7 (tournament VARCHAR, score VARCHAR) |
SELECT winning_pilot FROM table_20036882_2 WHERE country = "Hungary" | Name the winning pilot for hungary | CREATE TABLE table_20036882_2 (winning_pilot VARCHAR, country VARCHAR) |
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight, food_service WHERE ((date_day.day_number = 25 AND date_day.month_number = 6 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.... | i'd like to go from ST. PAUL to KANSAS CITY on friday with a meal | CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,
arrival_time int,
arrival_airline text,
arrival_flig... |
SELECT opponent_in_the_final FROM table_name_89 WHERE surface = "hard" AND score = "6β3, 3β6, 7β5" | Who was the opponent in the final in which the court surface was hard and the score was 6β3, 3β6, 7β5? | CREATE TABLE table_name_89 (opponent_in_the_final VARCHAR, surface VARCHAR, score VARCHAR) |
SELECT MAX(round) FROM table_20036882_2 WHERE winning_pilot = "Michael Goulian" | Name the most round for michael goulian | CREATE TABLE table_20036882_2 (round INTEGER, winning_pilot VARCHAR) |
SELECT ACC_Road, School_ID FROM basketball_match GROUP BY ACC_Home, ACC_Road ORDER BY ACC_Road | Give me the comparison about School_ID over the ACC_Road , and group by attribute ACC_Home by a bar chart, sort by the X in ascending. | 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... |
SELECT surface FROM table_name_90 WHERE score = "6β4, 6β1" | What was the court surface when the score was 6β4, 6β1? | CREATE TABLE table_name_90 (surface VARCHAR, score VARCHAR) |
SELECT country FROM table_20036882_2 WHERE winning_pilot = "Hannes Arch" | Name the country for hannes arch | CREATE TABLE table_20036882_2 (country VARCHAR, winning_pilot VARCHAR) |
SELECT date_of_issue FROM table_name_40 WHERE place_of_issue = "tallahassee, florida" | On what date were sheets issued in Tallahassee, Florida? | CREATE TABLE table_name_40 (
date_of_issue VARCHAR,
place_of_issue VARCHAR
) |
SELECT date FROM table_name_62 WHERE opponent_in_the_final = "gwinyai tongoona" | On what date was the opponent in the final Gwinyai Tongoona? | CREATE TABLE table_name_62 (date VARCHAR, opponent_in_the_final VARCHAR) |
SELECT written_by FROM table_20046379_3 WHERE no_in_series = "45" | Who wrote the episode with series number 45? | CREATE TABLE table_20046379_3 (written_by VARCHAR, no_in_series VARCHAR) |
SELECT "club" FROM table_204_135 WHERE "position" = 1 | which team took first place ? | CREATE TABLE table_204_135 (
id number,
"position" number,
"club" text,
"played" number,
"points" number,
"wins" number,
"draws" number,
"losses" number,
"goals for" number,
"goals against" number,
"goal difference" number
) |
SELECT record FROM table_name_13 WHERE visitor = "golden state warriors" AND date = "11/18" | What was the record from the Golden State Warriors on 11/18? | CREATE TABLE table_name_13 (record VARCHAR, visitor VARCHAR, date VARCHAR) |
SELECT us_viewers__millions_ FROM table_20046379_3 WHERE production_code = "214" | How many millions of people in the US saw the episode with production code 214? | CREATE TABLE table_20046379_3 (us_viewers__millions_ VARCHAR, production_code VARCHAR) |
SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' | For all employees who have the letters D or S in their first name, find hire_date and the average of manager_id bin hire_date by time, and visualize them by a bar chart. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
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... |
SELECT class FROM table_name_95 WHERE wheels = "4-4-0" AND no_built < 40 | What class has 4-4-0 wheels and was less than number 40 built? | CREATE TABLE table_name_95 (class VARCHAR, wheels VARCHAR, no_built VARCHAR) |
SELECT title FROM table_20046379_3 WHERE us_viewers__millions_ = "3.8" | What's the title of the episode seen by 3.8 million people in the US? | CREATE TABLE table_20046379_3 (title VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT COUNT("matters") FROM table_203_609 WHERE "type" = 'political party' | how many matters have political party as their type ? | CREATE TABLE table_203_609 (
id number,
"#" number,
"matters" text,
"sections of the constitution allowing their institution" text,
"eligible petitioners" text,
"type" text
) |
SELECT space_crusade FROM table_name_7 WHERE english = "finnish" | Name the space crusade when the english is of finnish | CREATE TABLE table_name_7 (space_crusade VARCHAR, english VARCHAR) |
SELECT COUNT(original_air_date) FROM table_20046379_3 WHERE no_in_series = "35" | On how many different dates did the episode with series number 35 air for the first time? | CREATE TABLE table_20046379_3 (original_air_date VARCHAR, no_in_series VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" AND demographic.age < "49" | how many patients admitted via office referral are less than 49 years of age? | 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 space_crusade FROM table_name_92 WHERE genestealers = "genrΓΈvere (gene robbers)" | Name the space crusade which has Genestealers of genrΓΈvere (gene robbers) | CREATE TABLE table_name_92 (space_crusade VARCHAR, genestealers VARCHAR) |
SELECT date FROM table_2006661_1 WHERE value = "55c" | Name the date for value 55c | CREATE TABLE table_2006661_1 (date VARCHAR, value VARCHAR) |
SELECT named AS after FROM table_name_61 WHERE latitude = 6.4 | Tell me the named for latitude of 6.4 | CREATE TABLE table_name_61 (
named VARCHAR,
latitude VARCHAR
) |
SELECT score FROM table_name_24 WHERE winners = "galatasaray" AND runners_up = "trabzonspor" AND year = 1990 | What was Galatasaray score when when he won in 1990 and Trabzonspor was the runner-up? | CREATE TABLE table_name_24 (score VARCHAR, year VARCHAR, winners VARCHAR, runners_up VARCHAR) |
SELECT scott FROM table_2006661_1 WHERE species = "Chloropsis hardwickii" | Name the scott for chloropsis hardwickii | CREATE TABLE table_2006661_1 (scott VARCHAR, species VARCHAR) |
SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t4.icd9_code FROM (SELECT t3.icd9_code, DENSE_RANK() OVER (ORDER BY t3.c1 DESC) AS c2 FROM (SELECT t2.icd9_code, 100 - SUM(CASE WHEN patients.dod IS NULL THEN 1 WHEN STRFTIME('%j', patients.dod) - STRFTIME('%j', t2.chartt... | i would like to get the top five diagnosis that has the highest three year mortality rate. | CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE tr... |
SELECT COUNT(matches) FROM table_name_15 WHERE prize_money = "Β£1,000,000" | How many matches were there in the round with Β£1,000,000 in prize money? | CREATE TABLE table_name_15 (matches VARCHAR, prize_money VARCHAR) |
SELECT MAX(population__2000_) FROM table_2004733_2 WHERE barangay = "Bulac" | How many people lived in bulac in the year 2000? | CREATE TABLE table_2004733_2 (population__2000_ INTEGER, barangay VARCHAR) |
SELECT "Number" FROM table_34156 WHERE "Name" = 'tony dixon' | What number is Tony Dixon? | CREATE TABLE table_34156 (
"Position" text,
"Number" real,
"Name" text,
"Height" text,
"Weight" real,
"Class" text,
"Hometown" text,
"Games\u2191" real
) |
SELECT date FROM table_name_36 WHERE matches = 1 | What was the date for a round that only had 1 match? | CREATE TABLE table_name_36 (date VARCHAR, matches VARCHAR) |
SELECT population__2010_ FROM table_2004733_2 WHERE population_density__2010_ = "3,965.02" | In 2010, how many people lived in cities with a population density of 3,965.02? | CREATE TABLE table_2004733_2 (population__2010_ VARCHAR, population_density__2010_ VARCHAR) |
SELECT method FROM table_name_11 WHERE event = "ufc fight night 10" | What was the method for the UFC Fight Night 10 event? | CREATE TABLE table_name_11 (
method VARCHAR,
event VARCHAR
) |
SELECT date FROM table_name_87 WHERE away_team = "hawthorn" | What date did Hawthorn play as the away team? | CREATE TABLE table_name_87 (date VARCHAR, away_team VARCHAR) |
SELECT barangay FROM table_2004733_2 WHERE area__in_km_2__ = "3.6787" | What's the name of the barangay whose area is 3.6787 kmΒ² ? | CREATE TABLE table_2004733_2 (barangay VARCHAR, area__in_km_2__ VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.