answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT MAX(ff) FROM table_26176081_29 WHERE solo = 56 | What is the highest ff when solo is 56? | CREATE TABLE table_26176081_29 (ff INTEGER, solo VARCHAR) |
SELECT COUNT(rank) FROM table_name_90 WHERE player = "tiger woods" AND events < 21 | Tiger Woods has played less than 21 events and is what rank? | CREATE TABLE table_name_90 (rank VARCHAR, player VARCHAR, events VARCHAR) |
SELECT "name" FROM table_204_598 WHERE "name" <> 'karl rove' AND "president served under" = (SELECT "president served under" FROM table_204_598 WHERE "name" = 'karl rove') | name the advisor who served under the same president as karl rove . | CREATE TABLE table_204_598 (
id number,
"name" text,
"state of residence" text,
"took office" text,
"left office" text,
"president served under" text
) |
SELECT name FROM table_26176081_29 WHERE tfl_yds = "2-2" | What is the name when tfl-yds is 2-2? | CREATE TABLE table_26176081_29 (name VARCHAR, tfl_yds VARCHAR) |
SELECT MIN(game) FROM table_name_77 WHERE score = "108-85" | Score of 108-85 is what lowest game? | CREATE TABLE table_name_77 (game INTEGER, score VARCHAR) |
SELECT frequency FROM table_name_68 WHERE format = "contemporary christian music" | what is the frequency when the format is contemporary christian music? | CREATE TABLE table_name_68 (
frequency VARCHAR,
format VARCHAR
) |
SELECT no_yds FROM table_26176081_29 WHERE no_yds = "1-13" | What is no-yds when no.-yds is 1-13? | CREATE TABLE table_26176081_29 (no_yds VARCHAR) |
SELECT score FROM table_name_5 WHERE location = "brendan byrne arena" | Location of brendan byrne arena had what score? | CREATE TABLE table_name_5 (score VARCHAR, location VARCHAR) |
SELECT MIN("Total") FROM table_75487 WHERE "Rank" < '1' | Which Total is the lowest one that has a Rank smaller than 1? | CREATE TABLE table_75487 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT MAX(f_laps) FROM table_26178824_1 | what are the maximum f/laps? | CREATE TABLE table_26178824_1 (f_laps INTEGER) |
SELECT location FROM table_name_83 WHERE opponent = "chicago bulls" | Opponent of chicago bulls had what location? | CREATE TABLE table_name_83 (location VARCHAR, opponent VARCHAR) |
SELECT AVG(top_5) FROM table_name_79 WHERE cuts_made = 42 | What is the average for the top five having a number of 42 cuts made. | CREATE TABLE table_name_79 (
top_5 INTEGER,
cuts_made VARCHAR
) |
SELECT wins FROM table_26178824_1 WHERE series = "Formula Renault 2.0 NEC" AND position = "18th" | how many wins had series formula renault 2.0 nec and the position is 18th? | CREATE TABLE table_26178824_1 (wins VARCHAR, series VARCHAR, position VARCHAR) |
SELECT opponent FROM table_name_34 WHERE location = "boston garden" AND record = "58-23" | Location of boston garden, and a Record of 58-23 involved what opponent? | CREATE TABLE table_name_34 (opponent VARCHAR, location VARCHAR, record VARCHAR) |
SELECT COUNT(round_of_32) FROM table_18602462_22 WHERE round_of_16 = "Polidori ( ITA ) W 6-1, 3-6, 6-3" | How many round of 32 results are followed by Polidori ( Ita ) w 6-1, 3-6, 6-3 in the round of 16? | CREATE TABLE table_18602462_22 (
round_of_32 VARCHAR,
round_of_16 VARCHAR
) |
SELECT MIN(poles) FROM table_26178824_1 | what are the minimum poles? | CREATE TABLE table_26178824_1 (poles INTEGER) |
SELECT location FROM table_name_16 WHERE score = "119-115 (ot)" | Score of 119-115 (ot) involved what location? | CREATE TABLE table_name_16 (location VARCHAR, score VARCHAR) |
SELECT DISTINCT T1.supplier_name, T1.supplier_phone FROM suppliers AS T1 JOIN product_suppliers AS T2 ON T1.supplier_id = T2.supplier_id JOIN products AS T3 ON T2.product_id = T3.product_id WHERE T3.product_name = "red jeans" | List the names and phone numbers of all the distinct suppliers who supply red jeans. | CREATE TABLE suppliers (
supplier_name VARCHAR,
supplier_phone VARCHAR,
supplier_id VARCHAR
)
CREATE TABLE product_suppliers (
supplier_id VARCHAR,
product_id VARCHAR
)
CREATE TABLE products (
product_id VARCHAR,
product_name VARCHAR
) |
SELECT original_air_date FROM table_2618072_1 WHERE written_by = "Michael S. Chernuchin & Joe Morgenstern" | When was the original air date written by michael s. chernuchin & joe morgenstern? | CREATE TABLE table_2618072_1 (original_air_date VARCHAR, written_by VARCHAR) |
SELECT AVG(fall_07) FROM table_name_83 WHERE fall_05 = 271 AND fall_09 < 347 | What is the average value for Fall 07 when Fall 05 is 271 and Fall 09 is less than 347? | CREATE TABLE table_name_83 (fall_07 INTEGER, fall_05 VARCHAR, fall_09 VARCHAR) |
SELECT DISTINCT FLIGHT_0.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, airport_service AS AIRPORT_SERVICE_3, city AS CITY_0, city AS CITY_1, city AS CITY_2, city AS CITY_3, fare, flight AS FLIGHT_0, flight AS FLIGHT_1, flight_fare AS FLIGHT_FARE, flight_fare AS FLIGHT_FARE_1 WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHILADELPHIA' AND CITY_2.city_code = AIRPORT_SERVICE_2.city_code AND CITY_2.city_name = 'BOSTON' AND CITY_3.city_code = AIRPORT_SERVICE_3.city_code AND CITY_3.city_name = 'PHILADELPHIA' AND fare.one_direction_cost = (SELECT MAX(FAREalias1.one_direction_cost) FROM airport_service AS AIRPORT_SERVICEalias4, airport_service AS AIRPORT_SERVICEalias5, city AS CITYalias4, city AS CITYalias5, fare AS FAREalias1, flight AS FLIGHTalias2, flight_fare AS FLIGHT_FAREalias2 WHERE CITYalias4.city_code = AIRPORT_SERVICEalias4.city_code AND CITYalias4.city_name = 'BOSTON' AND CITYalias5.city_code = AIRPORT_SERVICEalias5.city_code AND CITYalias5.city_name = 'PHILADELPHIA' AND FLIGHT_FAREalias2.fare_id = FAREalias1.fare_id AND FLIGHTalias2.flight_id = FLIGHT_FAREalias2.flight_id AND FLIGHTalias2.from_airport = AIRPORT_SERVICEalias4.airport_code AND FLIGHTalias2.to_airport = AIRPORT_SERVICEalias5.airport_code) AND flight_fare.fare_id = fare.fare_id AND FLIGHT_FARE_1.fare_id = fare.fare_id AND FLIGHT_0.flight_id = flight_fare.flight_id AND FLIGHT_0.to_airport = AIRPORT_SERVICE_1.airport_code AND FLIGHT_1.flight_id = FLIGHT_FARE_1.flight_id AND FLIGHT_1.from_airport = AIRPORT_SERVICE_2.airport_code AND FLIGHT_1.to_airport = AIRPORT_SERVICE_3.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND FLIGHT_0.from_airport = AIRPORT_SERVICE_0.airport_code | the most expensive flight between BOSTON and PHILADELPHIA | CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time int,
dual_carrier text,
flight_days text,
flight_id int,
flight_number int,
from_airport varchar,
meal_code text,
stops int,
time_elapsed int,
to_airport varchar
)
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 equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
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 code_description (
code varchar,
description text
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
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_required varchar
)
CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,
premium text,
economy text,
discounted text,
night text,
season text,
basis_days text
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE airport (
airport_code varchar,
airport_name text,
airport_location text,
state_code varchar,
country_name varchar,
time_zone_code varchar,
minimum_connect_time int
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar,
wing_span int,
length int,
weight int,
capacity int,
pay_load int,
cruising_speed int,
range_miles int,
pressurized varchar
)
CREATE TABLE compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
) |
SELECT directed_by FROM table_2618072_1 WHERE production_code = 67425 | Who is the directed by when the production code is 67425? | CREATE TABLE table_2618072_1 (directed_by VARCHAR, production_code VARCHAR) |
SELECT AVG(fall_07) FROM table_name_99 WHERE fall_09 < 296 | What was the average value for Fall 07 when Fall 09 is less than 296? | CREATE TABLE table_name_99 (fall_07 INTEGER, fall_09 INTEGER) |
SELECT school FROM table_11677691_2 WHERE player = "Ha'Sean Clinton-Dix" | WHAT SCHOOL DOES HA'SEAN CLINTON-DIX BELONG TO? | CREATE TABLE table_11677691_2 (
school VARCHAR,
player VARCHAR
) |
SELECT COUNT(title) FROM table_2618119_1 WHERE directed_by = "Matthew Penn" AND no_in_series = 143 | How many titles have directors of matthew Penn and number in series of 143? | CREATE TABLE table_2618119_1 (title VARCHAR, directed_by VARCHAR, no_in_series VARCHAR) |
SELECT SUM(fall_09) FROM table_name_56 WHERE maryland_counties = "allegany" AND fall_07 < 751 | What is the sum of all values in Fall 09 in Allegany county with Fall 07 less than 751? | CREATE TABLE table_name_56 (fall_09 INTEGER, maryland_counties VARCHAR, fall_07 VARCHAR) |
SELECT DISTINCT prescriptions.route FROM prescriptions WHERE prescriptions.drug = 'lidocaine 5% ointment' | what is lidocaine 5% ointment's way of ingesting it? | 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 TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
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 chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
) |
SELECT COUNT(no_in_series) FROM table_2618119_1 WHERE no_in_season = 8 | How many numbers in series were for the number in season of 8? | CREATE TABLE table_2618119_1 (no_in_series VARCHAR, no_in_season VARCHAR) |
SELECT MAX(fall_08) FROM table_name_95 WHERE fall_09 = 792 AND fall_05 < 791 | What is the largest value for Fall 08 when Fall 09 is 792 and Fall 05 is less than 791? | CREATE TABLE table_name_95 (fall_08 INTEGER, fall_09 VARCHAR, fall_05 VARCHAR) |
SELECT SUM("Goals for") FROM table_45558 WHERE "Goal Difference" > '-3' AND "Club" = 'real avilés cf' AND "Goals against" > '60' | what is the goals when the goal difference is more than -3, the club is real avil s cf and the goals against is more than 60? | CREATE TABLE table_45558 (
"Position" real,
"Club" text,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) |
SELECT directed_by FROM table_2618113_1 WHERE production_code = "K0122" | Who directed k0122? | CREATE TABLE table_2618113_1 (directed_by VARCHAR, production_code VARCHAR) |
SELECT MAX(fall_08) FROM table_name_28 WHERE fall_07 < 242 | What is the largest value for Fall 08 when Fall 07 is less than 242? | CREATE TABLE table_name_28 (fall_08 INTEGER, fall_07 INTEGER) |
SELECT "Tie no" FROM table_62591 WHERE "Away team" = 'ipswich town' | What is the Tie no for Away Team Ipswich Town? | CREATE TABLE table_62591 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) |
SELECT MAX(no_in_season) FROM table_2618113_1 WHERE production_code = "K0104" | Which season had k0104? | CREATE TABLE table_2618113_1 (no_in_season INTEGER, production_code VARCHAR) |
SELECT nationality FROM table_name_11 WHERE round = 4 | What is the nationality of the player in round 4? | CREATE TABLE table_name_11 (nationality VARCHAR, round VARCHAR) |
SELECT score FROM table_name_13 WHERE away_team = "southport" | What was the score for the away team southport? | CREATE TABLE table_name_13 (
score VARCHAR,
away_team VARCHAR
) |
SELECT original_air_date FROM table_2618113_1 WHERE production_code = "K0120" | What was the airdate of k0120? | CREATE TABLE table_2618113_1 (original_air_date VARCHAR, production_code VARCHAR) |
SELECT round FROM table_name_70 WHERE nationality = "canada" AND player = "jimmy drolet" | What is the round of Jimmy Drolet from Canada? | CREATE TABLE table_name_70 (round VARCHAR, nationality VARCHAR, player VARCHAR) |
SELECT "Launch designation" FROM table_56836 WHERE "COSPAR ID SATCAT \u2116" = '2009-001a' | What is the launch designation of the satellite with a 2009-001a COSPAR ID? | CREATE TABLE table_56836 (
"Name" text,
"COSPAR ID SATCAT \u2116" text,
"Launch date (UTC)" text,
"Launch vehicle" text,
"Launch site" text,
"Launch designation" text,
"Longitude" text
) |
SELECT institution FROM table_261927_1 WHERE nickname = "Seahawks" | What is the institution with the nickname seahawks? | CREATE TABLE table_261927_1 (institution VARCHAR, nickname VARCHAR) |
SELECT SUM(round) FROM table_name_43 WHERE position = "right wing" AND player = "jessie rezansoff" | What is the round number of Jessie Rezansoff, who plays right wing? | CREATE TABLE table_name_43 (round INTEGER, position VARCHAR, player VARCHAR) |
SELECT DISTINCT AUTHOR_1.authorid FROM author AS AUTHOR_0, author AS AUTHOR_1, writes AS WRITES_0, writes AS WRITES_1 WHERE AUTHOR_0.authorname = 'emina torlak' AND WRITES_0.authorid = AUTHOR_0.authorid AND WRITES_1.authorid = AUTHOR_1.authorid AND WRITES_1.paperid = WRITES_0.paperid | author who wrote papers with emina torlak | CREATE TABLE field (
fieldid int
)
CREATE TABLE dataset (
datasetid int,
datasetname varchar
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE writes (
paperid int,
authorid int
) |
SELECT colors FROM table_261927_1 WHERE nickname = "Engineers" | What is the colors for the nickname engineers? | CREATE TABLE table_261927_1 (colors VARCHAR, nickname VARCHAR) |
SELECT team FROM table_name_11 WHERE qual_2 = "1:01.093" | Which team had a qualifying 2 time of 1:01.093? | CREATE TABLE table_name_11 (team VARCHAR, qual_2 VARCHAR) |
SELECT Destroyed_by_Employee_ID, COUNT(*) FROM Documents_to_be_destroyed GROUP BY Destroyed_by_Employee_ID | Show the employee ids and the number of documents destroyed by each employee. | CREATE TABLE Documents_to_be_destroyed (
Destroyed_by_Employee_ID VARCHAR
) |
SELECT COUNT(institution) FROM table_261927_1 WHERE colors = "Blue & Gold" | How many have the colors blue & gold? | CREATE TABLE table_261927_1 (institution VARCHAR, colors VARCHAR) |
SELECT qual_2 FROM table_name_55 WHERE qual_1 = "1:01.630" | What was the qualifying 2 time for the team with a qualifying 1 time of 1:01.630? | CREATE TABLE table_name_55 (qual_2 VARCHAR, qual_1 VARCHAR) |
SELECT "name" FROM table_204_292 WHERE "minutes" < 20 ORDER BY id LIMIT 1 | who is the first person on the list to play less than 20 minutes ? | CREATE TABLE table_204_292 (
id number,
"no." number,
"name" text,
"class" number,
"games" number,
"minutes" number,
"points" number,
"2 points\n(made/attempts)" text,
"2 points\n(%)" number,
"3 points\n(made/attempts)" text,
"3 points\n(%)" number,
"free throws\n(made/attempts)" text,
"free throws\n(%)" number,
"rebounds offensive" number,
"rebounds defensive" number,
"rebounds total" number,
"assists" number,
"turnovers" number,
"steals" number,
"blocked shots" number,
"personal fouls" number,
"fouls drawn" number
) |
SELECT institution FROM table_261927_1 WHERE nickname = "Engineers" | What is the institution with the nickname engineers? | CREATE TABLE table_261927_1 (institution VARCHAR, nickname VARCHAR) |
SELECT qual_1 FROM table_name_27 WHERE team = "rusport" AND name = "justin wilson" | What was the qualifying 1 time for Rusport and Justin Wilson? | CREATE TABLE table_name_27 (qual_1 VARCHAR, team VARCHAR, name VARCHAR) |
SELECT MAX("Attendance") FROM table_62767 WHERE "Dolphins points" < '24' AND "Opponent" = 'new england patriots' | What's the most in attendance when the Dolphins points were less than 24 and, they played the New England Patriots? | CREATE TABLE table_62767 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Dolphins points" real,
"Opponents" real,
"Record" text,
"Attendance" real
) |
SELECT enrollment FROM table_261927_1 WHERE colors = "Green & Black" | What is the enrollment for the colors green & black? | CREATE TABLE table_261927_1 (enrollment VARCHAR, colors VARCHAR) |
SELECT team FROM table_name_40 WHERE qual_1 = "1:01.342" | Which team had a qualifying 1 time of 1:01.342? | CREATE TABLE table_name_40 (team VARCHAR, qual_1 VARCHAR) |
SELECT event FROM table_name_2 WHERE year = 2006 | What event was in 2006? | CREATE TABLE table_name_2 (
event VARCHAR,
year VARCHAR
) |
SELECT institution FROM table_261906_2 WHERE location = "Wilkes-Barre, Pennsylvania" | What institution(s) are located in wilkes-barre, pennsylvania? | CREATE TABLE table_261906_2 (institution VARCHAR, location VARCHAR) |
SELECT best FROM table_name_54 WHERE qual_1 = "1:01.043" | What is the best time of the team that had a qualifying 1 time of 1:01.043? | CREATE TABLE table_name_54 (best VARCHAR, qual_1 VARCHAR) |
SELECT to_par FROM table_name_33 WHERE score < 70 AND player = "matt kowal" | Which To Par has a Score smaller than 70, and a Player of matt kowal? | CREATE TABLE table_name_33 (
to_par VARCHAR,
score VARCHAR,
player VARCHAR
) |
SELECT MAX(enrollment) FROM table_261906_2 WHERE joined_mac = 1997 | What is the highest enrollment schools that joined the mac in 1997? | CREATE TABLE table_261906_2 (enrollment INTEGER, joined_mac VARCHAR) |
SELECT SUM(pick__number) FROM table_name_17 WHERE player = "mike zaher" | How many picks did Mike Zaher have? | CREATE TABLE table_name_17 (pick__number INTEGER, player VARCHAR) |
SELECT MIN(pick__number) FROM table_25017530_5 WHERE player = "Steven Turner" | Name the least pick number for steven turner | CREATE TABLE table_25017530_5 (
pick__number INTEGER,
player VARCHAR
) |
SELECT MAX(joined_mac) FROM table_261906_2 WHERE institution = "Delaware Valley College" | What is the enrollment at delaware valley college? | CREATE TABLE table_261906_2 (joined_mac INTEGER, institution VARCHAR) |
SELECT COUNT(pick__number) FROM table_name_57 WHERE player = "matt marquess" | How many pick numbers did Matt Marquess have? | CREATE TABLE table_name_57 (pick__number VARCHAR, player VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = "E9300" AND prescriptions.drug_type = "MAIN" | count the number of patients whose diagnoses icd9 code is e9300 and drug type is main? | 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,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
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 text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear 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
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) |
SELECT MIN(joined_mac) FROM table_261906_2 WHERE nickname = "Eagles" | What year did the the school with the nickname eagles join the mac? | CREATE TABLE table_261906_2 (joined_mac INTEGER, nickname VARCHAR) |
SELECT mls_team FROM table_name_69 WHERE pick__number = 31 | Which MLS Team's pick number was 31? | CREATE TABLE table_name_69 (mls_team VARCHAR, pick__number VARCHAR) |
SELECT All_Games, Team_ID FROM basketball_match ORDER BY Team_ID | Show me about the distribution of All_Games and Team_ID in a bar chart, and list Team_ID from low to high order please. | 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_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
) |
SELECT institution FROM table_261931_2 WHERE nickname = "Bobcats" | Which institution's nickname is the Bobcats? | CREATE TABLE table_261931_2 (institution VARCHAR, nickname VARCHAR) |
SELECT date FROM table_name_97 WHERE visitor = "toronto" | what day did the team go to toronto | CREATE TABLE table_name_97 (date VARCHAR, visitor VARCHAR) |
SELECT record FROM table_name_44 WHERE loss = "o'connor (0-1)" | Which Record has a Loss of o'connor (0-1)? | CREATE TABLE table_name_44 (
record VARCHAR,
loss VARCHAR
) |
SELECT enrollment FROM table_261931_2 WHERE location = "New London, Connecticut" | What is the enrollment at the institution in New London, Connecticut? | CREATE TABLE table_261931_2 (enrollment VARCHAR, location VARCHAR) |
SELECT score FROM table_name_14 WHERE visitor = "chicago" | what team visited chicago | CREATE TABLE table_name_14 (score VARCHAR, visitor VARCHAR) |
SELECT COUNT(rank) FROM table_name_72 WHERE total_points > 194 AND round4 < 64 AND round3 > 51 AND round2 < 66 | what is the rank when the total points is more than 194, round4 is less than 64, round3 is more than 51 and round 2 is less than 66? | CREATE TABLE table_name_72 (
rank VARCHAR,
round2 VARCHAR,
round3 VARCHAR,
total_points VARCHAR,
round4 VARCHAR
) |
SELECT joined FROM table_261931_2 WHERE location = "Lewiston, Maine" | When did the institution located in Lewiston, Maine join the conference? | CREATE TABLE table_261931_2 (joined VARCHAR, location VARCHAR) |
SELECT home FROM table_name_32 WHERE date = "october 8" | what team played on october 8 | CREATE TABLE table_name_32 (home VARCHAR, date VARCHAR) |
SELECT meter_200, meter_300 FROM swimmer WHERE nationality = 'Australia' | Find all 200 meter and 300 meter results of swimmers with nationality 'Australia'. | CREATE TABLE event (
id number,
name text,
stadium_id number,
year text
)
CREATE TABLE stadium (
id number,
name text,
capacity number,
city text,
country text,
opening_year number
)
CREATE TABLE swimmer (
id number,
name text,
nationality text,
meter_100 number,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
time text
)
CREATE TABLE record (
id number,
result text,
swimmer_id number,
event_id number
) |
SELECT institution FROM table_261931_2 WHERE nickname = "Polar Bears" | Which institution's nickname is the Polar Bears? | CREATE TABLE table_261931_2 (institution VARCHAR, nickname VARCHAR) |
SELECT position FROM table_name_69 WHERE game_1 = "noel cleal" | Which Position has a Game 1 of noel cleal? | CREATE TABLE table_name_69 (position VARCHAR, game_1 VARCHAR) |
SELECT position FROM table_23619005_3 WHERE cfl_team = "Saskatchewan Roughriders" | What was the position of the player from Saskatchewan Roughriders? | CREATE TABLE table_23619005_3 (
position VARCHAR,
cfl_team VARCHAR
) |
SELECT nickname FROM table_261941_1 WHERE institution = "Linfield College" | What is the nickname of Linfield College? | CREATE TABLE table_261941_1 (nickname VARCHAR, institution VARCHAR) |
SELECT game_3 FROM table_name_75 WHERE game_1 = "brett kenny" | Which Game 3 has a Game 1 of brett kenny? | CREATE TABLE table_name_75 (game_3 VARCHAR, game_1 VARCHAR) |
SELECT SUM(totaltk) FROM table_name_9 WHERE yards < 0 | what is the sum of totaltk when yards is less than 0? | CREATE TABLE table_name_9 (
totaltk INTEGER,
yards INTEGER
) |
SELECT founded FROM table_261941_1 WHERE type = "Private/Baptist" | When was the private/baptist school founded? | CREATE TABLE table_261941_1 (founded VARCHAR, type VARCHAR) |
SELECT venue FROM table_name_36 WHERE opponent = "at new york giants" | Opponent of at new york giants had what venue? | CREATE TABLE table_name_36 (venue VARCHAR, opponent VARCHAR) |
SELECT COUNT(*) > 0 FROM (SELECT course_id FROM student_record WHERE earn_credit = 'Y' AND student_id = 1) AS DERIVED_TABLEalias0, course AS COURSEalias0, course_offering AS COURSE_OFFERINGalias0, semester AS SEMESTERalias0 WHERE COURSEalias0.course_id = COURSE_OFFERINGalias0.course_id AND NOT COURSEalias0.course_id IN (DERIVED_TABLEalias0.course_id) AND NOT COURSEalias0.course_id IN (SELECT DISTINCT COURSE_PREREQUISITEalias0.course_id FROM course_prerequisite AS COURSE_PREREQUISITEalias0 WHERE NOT COURSE_PREREQUISITEalias0.pre_course_id IN (DERIVED_TABLEalias0.course_id)) AND COURSEalias0.department = 'UC' AND COURSEalias0.number = 475 AND SEMESTERalias0.semester = 'Spring' AND SEMESTERalias0.semester_id = COURSE_OFFERINGalias0.semester AND SEMESTERalias0.year = 2016 | Is UC 475 available for me during Spring ? | CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requirement varchar,
description varchar,
num_semesters int,
num_enrolled int,
has_discussion varchar,
has_lab varchar,
has_projects varchar,
has_exams varchar,
num_reviews int,
clarity_score int,
easiness_score int,
helpfulness_score int
)
CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar,
friday varchar,
saturday varchar,
sunday varchar,
has_final_project varchar,
has_final_exam varchar,
textbook varchar,
class_address varchar,
allow_audit varchar
)
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational int,
long_lectures int,
extra_credit int,
few_tests int,
good_feedback int,
tough_tests int,
heavy_papers int,
cares_for_students int,
heavy_assignments int,
respected int,
participation int,
heavy_reading int,
tough_grader int,
hilarious int,
would_take_again int,
good_lecture int,
no_skip int
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as varchar,
admit_term int,
predicted_graduation_semester int,
degree varchar,
minor varchar,
internship varchar
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
) |
SELECT COUNT(enrollment) FROM table_261941_1 WHERE joined = "1931, 1949 1" | How many different items appear in the enrollment column that joined in 1931, 1949 1? | CREATE TABLE table_261941_1 (enrollment VARCHAR, joined VARCHAR) |
SELECT week FROM table_name_43 WHERE result = "l 10-23" | Result of l 10-23 occurred in what week? | CREATE TABLE table_name_43 (week VARCHAR, result VARCHAR) |
SELECT "Title" FROM table_65236 WHERE "Production Num." = '4645' | With 4645 as the production number what was the title? | CREATE TABLE table_65236 (
"Title" text,
"Series" text,
"Characters" text,
"Production Num." real,
"Release date" text
) |
SELECT location FROM table_261941_1 WHERE joined = "1926, 1996 2" | What is the location of the University that joined in 1926, 1996 2? | CREATE TABLE table_261941_1 (location VARCHAR, joined VARCHAR) |
SELECT record FROM table_name_69 WHERE week > 5 AND opponent = "at new york giants" | Week larger than 5, and an opponent of at new york giants had what record? | CREATE TABLE table_name_69 (record VARCHAR, week VARCHAR, opponent VARCHAR) |
SELECT COUNT(against) FROM table_name_54 WHERE opposing_teams = "italy" | What is the against when the opposing team is Italy? | CREATE TABLE table_name_54 (
against VARCHAR,
opposing_teams VARCHAR
) |
SELECT MIN(founded) FROM table_261941_1 | When was the earliest founded university? | CREATE TABLE table_261941_1 (founded INTEGER) |
SELECT date FROM table_name_77 WHERE attendance = "35,842" | Attendance of 35,842 had what date? | CREATE TABLE table_name_77 (date VARCHAR, attendance VARCHAR) |
SELECT "Year" FROM table_24543 WHERE "Odds of winner" = '16.66' | When were the odds of winner 16.66? | CREATE TABLE table_24543 (
"Year" real,
"Horse" text,
"Driver" text,
"Trainer" text,
"Country of owner" text,
"Odds of winner" text,
"Winning time (km rate)" text
) |
SELECT standing FROM table_2619469_1 WHERE goals_against = 130 | What was the team standing if the won 130 goals against another team? | CREATE TABLE table_2619469_1 (standing VARCHAR, goals_against VARCHAR) |
SELECT attendance FROM table_name_27 WHERE result = "w 16-10* o.t." | Result of w 16-10* o.t. had what attendance? | CREATE TABLE table_name_27 (attendance VARCHAR, result VARCHAR) |
SELECT Left_office, COUNT(Left_office) FROM party ORDER BY COUNT(Left_office) DESC | Bar chart x axis left office y axis the number of left office, order by the total number in descending. | CREATE TABLE region (
Region_ID int,
Region_name text,
Date text,
Label text,
Format text,
Catalogue text
)
CREATE TABLE party_events (
Event_ID int,
Event_Name text,
Party_ID int,
Member_in_charge_ID int
)
CREATE TABLE member (
Member_ID int,
Member_Name text,
Party_ID text,
In_office text
)
CREATE TABLE party (
Party_ID int,
Minister text,
Took_office text,
Left_office text,
Region_ID int,
Party_name text
) |
SELECT type FROM table_261954_1 WHERE location = "Roanoke, Virginia" | What is every type for the location of Roanoke, Virginia? | CREATE TABLE table_261954_1 (type VARCHAR, location VARCHAR) |
SELECT report FROM table_name_6 WHERE date = "june 5, 2005" | What Report has the Date of June 5, 2005? | CREATE TABLE table_name_6 (report VARCHAR, date VARCHAR) |
SELECT score FROM table_name_24 WHERE date = "22 september 1972" | What is the score on 22 September 1972? | CREATE TABLE table_name_24 (
score VARCHAR,
date VARCHAR
) |
SELECT COUNT(joined) FROM table_261954_1 WHERE institution = "Guilford College" | How many values for joined occur at Guilford College? | CREATE TABLE table_261954_1 (joined VARCHAR, institution VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.