answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT semi_final FROM table_23429629_4 WHERE act = "Playing on Glasses" | During the act, Playing on Glasses, what was the semi-final? | CREATE TABLE table_23429629_4 (semi_final VARCHAR, act VARCHAR) |
SELECT high_rebounds FROM table_23281862_9 WHERE game = 64 | Who is the high rebounds for game 64? | CREATE TABLE table_23281862_9 (high_rebounds VARCHAR, game VARCHAR) |
SELECT "No. 10" FROM table_43793 WHERE "No. 8" = 'jackson' AND "No. 9" = 'jayden' | Name the No. 10 which has a No. 8 of jackson, and a No. 9 of jayden? | CREATE TABLE table_43793 (
"Region (year)" text,
"No. 1" text,
"No. 2" text,
"No. 3" text,
"No. 4" text,
"No. 5" text,
"No. 6" text,
"No. 7" text,
"No. 8" text,
"No. 9" text,
"No. 10" text
) |
SELECT place_came FROM table_23429629_4 WHERE artist = "Erlend Bratland" | What was the final place came for the performance of Erlend Bratland? | CREATE TABLE table_23429629_4 (place_came VARCHAR, artist VARCHAR) |
SELECT record FROM table_23281862_9 WHERE high_assists = "Aaron Brooks (6)" | What is the record where aaron brooks (6) is high assists? | CREATE TABLE table_23281862_9 (record VARCHAR, high_assists VARCHAR) |
SELECT Major, MIN(Age) FROM Student GROUP BY Major | Return a scatter chart showing the relationship between major id and minimum age. | CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE SportsInfo (
StuID INTEGER,
SportName VARCHAR(32),
HoursPerWeek INTEGER,
GamesPlayed INTEGER,
OnScholarship VARCHAR(1)
)
CREATE TABLE Video_Games (
GameID INTEGER,
GName VARCHAR(40),
GType VARCHAR(40)
)
CREATE TABLE Plays_Games (
StuID INTEGER,
GameID INTEGER,
Hours_Played INTEGER
) |
SELECT deaths_per_year FROM table_23423_2 WHERE life_expectancy_females = "66.3" | How many deaths per year have 66.3 as the life expectancy females? | CREATE TABLE table_23423_2 (deaths_per_year VARCHAR, life_expectancy_females VARCHAR) |
SELECT score FROM table_23281862_9 WHERE record = "36-33" | What is the score when 36-33 is the record? | CREATE TABLE table_23281862_9 (score VARCHAR, record VARCHAR) |
SELECT 1 AS st_leg FROM table_name_3 WHERE team_2 = "aurora" | What was the 1st leg when Team 2 was Aurora? | CREATE TABLE table_name_3 (
team_2 VARCHAR
) |
SELECT leagues_entering_at_this_round FROM table_23449363_1 WHERE winners_from_previous_round = "16" | Which leagues entered in rounds where there were 16 winners from the previous round? | CREATE TABLE table_23449363_1 (leagues_entering_at_this_round VARCHAR, winners_from_previous_round VARCHAR) |
SELECT COUNT(team) FROM table_23284271_7 WHERE score = "W 99–91 (OT)" | How many teams played against the Mavericks in a game where the score was w 99–91 (ot)? | CREATE TABLE table_23284271_7 (team VARCHAR, score VARCHAR) |
SELECT transaction_type_code, AVG(amount_of_transaction) FROM Transactions GROUP BY transaction_type_code | Show the average transaction amount for different transaction types. | CREATE TABLE Purchases (
purchase_transaction_id INTEGER,
purchase_details VARCHAR(255)
)
CREATE TABLE Transactions (
transaction_id INTEGER,
investor_id INTEGER,
transaction_type_code VARCHAR(10),
date_of_transaction DATETIME,
amount_of_transaction DECIMAL(19,4),
share_count VARCHAR(40),
other_details VARCHAR(255)
)
CREATE TABLE Transactions_Lots (
transaction_id INTEGER,
lot_id INTEGER
)
CREATE TABLE Investors (
investor_id INTEGER,
Investor_details VARCHAR(255)
)
CREATE TABLE Sales (
sales_transaction_id INTEGER,
sales_details VARCHAR(255)
)
CREATE TABLE Ref_Transaction_Types (
transaction_type_code VARCHAR(10),
transaction_type_description VARCHAR(80)
)
CREATE TABLE Lots (
lot_id INTEGER,
investor_id INTEGER,
lot_details VARCHAR(255)
) |
SELECT round FROM table_23449363_1 WHERE clubs_involved = 32 | Which rounds had 32 clubs involved? | CREATE TABLE table_23449363_1 (round VARCHAR, clubs_involved VARCHAR) |
SELECT COUNT(team) FROM table_23285761_11 WHERE high_rebounds = "Channing Frye, Jason Richardson (8)" | How many teams have channing frye, jason richardson (8) as high rebounds? | CREATE TABLE table_23285761_11 (team VARCHAR, high_rebounds VARCHAR) |
SELECT AVG(losses) FROM table_name_39 WHERE wins < 4 AND against = 2510 AND byes > 0 | How many losses for the team with less than 4 wins, more than 0 byes and 2510 against? | CREATE TABLE table_name_39 (
losses INTEGER,
byes VARCHAR,
wins VARCHAR,
against VARCHAR
) |
SELECT round FROM table_23449363_1 WHERE new_entries_this_round = "24" | Which round had 24 new entries? | CREATE TABLE table_23449363_1 (round VARCHAR, new_entries_this_round VARCHAR) |
SELECT high_assists FROM table_23285761_11 WHERE date = "April 26" | Who has the high assists when April 26 is the date? | CREATE TABLE table_23285761_11 (high_assists VARCHAR, date VARCHAR) |
SELECT district FROM table_225093_4 WHERE vacator = "John Culpepper (F)" | Which district has John Culpepper (f) as the vacator? | CREATE TABLE table_225093_4 (
district VARCHAR,
vacator VARCHAR
) |
SELECT leagues_entering_at_this_round FROM table_23449363_1 WHERE round = "Extra Preliminary round" | Which leagues entered an extra preliminary round? | CREATE TABLE table_23449363_1 (leagues_entering_at_this_round VARCHAR, round VARCHAR) |
SELECT team FROM table_23285761_11 WHERE game = 5 | Which team has 5 as a game? | CREATE TABLE table_23285761_11 (team VARCHAR, game 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 = 'SAN FRANCISCO' AND flight.departure_time < 1000 AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code | please list all the flights from BOSTON to SAN FRANCISCO leaving before 1000 | CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_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_flight_number int,
departure_time int,
departure_airline text,
departure_flight_number int,
stop_time int
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE days (
days_code varchar,
day_name 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 time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
)
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description 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 food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE compartment_class (
compartment varchar,
class_type varchar
)
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 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 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
) |
SELECT location FROM table_23453931_5 WHERE opponent = "Buffalo Sabres" | Name the location of buffalo sabres | CREATE TABLE table_23453931_5 (location VARCHAR, opponent VARCHAR) |
SELECT high_assists FROM table_23285761_7 WHERE high_rebounds = "Amar'e Stoudemire (10)" | Who did the high assists in the game where Amar'e Stoudemire (10) did the high rebounds? | CREATE TABLE table_23285761_7 (high_assists VARCHAR, high_rebounds VARCHAR) |
SELECT "Original title" FROM table_2379 WHERE "Result" = 'Not Nominated' AND "Film title used in nomination" = 'Report on Death' | Name the original title for not nominated result with report on death | CREATE TABLE table_2379 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Original title" text,
"Director" text,
"Result" text
) |
SELECT game FROM table_23453931_5 WHERE record = "13–17–9" | Name the game for 13–17–9 | CREATE TABLE table_23453931_5 (game VARCHAR, record VARCHAR) |
SELECT team FROM table_23285761_7 WHERE date = "January 26" | Who was the game on January 26 played against? | CREATE TABLE table_23285761_7 (team VARCHAR, date VARCHAR) |
SELECT "League" FROM table_1274 WHERE "School" = 'Delaware Military Academy' | What league does Delaware Military Academy belong to | CREATE TABLE table_1274 (
"School" text,
"Nickname" text,
"Colors" text,
"League" text,
"Class" text,
"Division" text
) |
SELECT score FROM table_23453931_5 WHERE date = "December 19" | Name the score for december 19 | CREATE TABLE table_23453931_5 (score VARCHAR, date VARCHAR) |
SELECT record FROM table_23285761_7 WHERE date = "January 5" | What was the record of the game played on January 5? | CREATE TABLE table_23285761_7 (record VARCHAR, date VARCHAR) |
SELECT artist FROM table_name_50 WHERE place < 3 AND percentage = "38.60%" | What Artist has a Place of 3 or less with a Percentage of 38.60%? | CREATE TABLE table_name_50 (
artist VARCHAR,
place VARCHAR,
percentage VARCHAR
) |
SELECT date FROM table_23453931_5 WHERE opponent = "New York Islanders" | Name the date for new york islanders | CREATE TABLE table_23453931_5 (date VARCHAR, opponent VARCHAR) |
SELECT record FROM table_23285761_7 WHERE game = 40 | What's the record of the game with number 40? | CREATE TABLE table_23285761_7 (record VARCHAR, game VARCHAR) |
SELECT SUM(position) FROM table_name_31 WHERE points_1 < 36 AND goals_for < 40 AND drawn < 9 | what is the position when the points 1 is less than 36, goals for is less than 40 and drawn is less than 9? | CREATE TABLE table_name_31 (
position INTEGER,
drawn VARCHAR,
points_1 VARCHAR,
goals_for VARCHAR
) |
SELECT COUNT(opponent) FROM table_23453931_5 WHERE date = "December 3" | Name the opponents for december 3 | CREATE TABLE table_23453931_5 (opponent VARCHAR, date VARCHAR) |
SELECT score FROM table_23285805_6 WHERE record = "15-25" | What was the score with the team record was 15-25? | CREATE TABLE table_23285805_6 (score VARCHAR, record VARCHAR) |
SELECT school_club_team FROM table_name_7 WHERE pick = 198 | Which School/Club Team has a Pick of 198? | CREATE TABLE table_name_7 (
school_club_team VARCHAR,
pick VARCHAR
) |
SELECT COUNT(game) FROM table_23453931_8 WHERE opponent = "Carolina Hurricanes" | How many games did they play the carolina hurricanes? | CREATE TABLE table_23453931_8 (game VARCHAR, opponent VARCHAR) |
SELECT high_rebounds FROM table_23285805_6 WHERE game = 42 | Who has the most rebounds for game 42? | CREATE TABLE table_23285805_6 (high_rebounds VARCHAR, game VARCHAR) |
SELECT T1.dname FROM department AS T1 JOIN minor_in AS T2 ON T1.dno = T2.dno GROUP BY T2.dno ORDER BY COUNT(*) DESC LIMIT 1 | Find the name of the department that has the biggest number of students minored in? | CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE member_of (
facid number,
dno number,
appt_type text
)
CREATE TABLE faculty (
facid number,
lname text,
fname text,
rank text,
sex text,
phone number,
room text,
building text
)
CREATE TABLE enrolled_in (
stuid number,
cid text,
grade text
)
CREATE TABLE course (
cid text,
cname text,
credits number,
instructor number,
days text,
hours text,
dno number
)
CREATE TABLE department (
dno number,
division text,
dname text,
room text,
building text,
dphone number
)
CREATE TABLE minor_in (
stuid number,
dno number
)
CREATE TABLE gradeconversion (
lettergrade text,
gradepoint number
) |
SELECT score FROM table_23453931_8 WHERE points = 62 | What was the score when they had 62 points? | CREATE TABLE table_23453931_8 (score VARCHAR, points VARCHAR) |
SELECT high_rebounds FROM table_23285805_6 WHERE record = "15-27" | Who had the most rebounds when the team record was 15-27? | CREATE TABLE table_23285805_6 (high_rebounds VARCHAR, record VARCHAR) |
SELECT JOB_ID, SUM(DEPARTMENT_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY SUM(DEPARTMENT_ID) DESC | For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, give me the comparison about the sum of department_id over the job_id , and group by attribute job_id, I want to display in desc by the sum department id. | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
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 locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
) |
SELECT opponent FROM table_23453931_4 WHERE points = 9 | What team did the Maple Leafs score 9 points against? | CREATE TABLE table_23453931_4 (opponent VARCHAR, points VARCHAR) |
SELECT high_assists FROM table_23285805_8 WHERE team = "Oklahoma City" | Who has the high assists when the team is Oklahoma City? | CREATE TABLE table_23285805_8 (high_assists VARCHAR, team VARCHAR) |
SELECT visitor FROM table_name_75 WHERE date = "october 31" | Who was the visitor on October 31? | CREATE TABLE table_name_75 (
visitor VARCHAR,
date VARCHAR
) |
SELECT sat_29_aug FROM table_23465864_4 WHERE tues_25_aug = "23' 18.82 97.102mph" | What time was achieved on Saturday 29th August by the rider who recorded 23' 18.82 97.102mph on Tuesday 25th August? | CREATE TABLE table_23465864_4 (sat_29_aug VARCHAR, tues_25_aug VARCHAR) |
SELECT date FROM table_23285805_8 WHERE location_attendance = "Arco Arena 17361" | On which datebis arco arena 17361 the location attendance? | CREATE TABLE table_23285805_8 (date VARCHAR, location_attendance VARCHAR) |
SELECT party FROM table_name_10 WHERE member = "sydney sampson" | Which party is sydney sampson a member of? | CREATE TABLE table_name_10 (
party VARCHAR,
member VARCHAR
) |
SELECT sat_29_aug FROM table_23465864_4 WHERE mon_24_aug = "24' 17.26 93.208mph" | What time was achieved on Saturday 29th August by the rider who recorded 24' 17.26 93.208mph on Monday 24th August? | CREATE TABLE table_23465864_4 (sat_29_aug VARCHAR, mon_24_aug VARCHAR) |
SELECT team FROM table_23285805_8 WHERE location_attendance = "American Airlines Center 19954" | Which team has the location attendance of American Airlines Center 19954? | CREATE TABLE table_23285805_8 (team VARCHAR, location_attendance VARCHAR) |
SELECT "Finish" FROM table_42279 WHERE "Chassis" = 'dallara' AND "Start" = '5' AND "Year" = '2006' | What did the Dallara chassis with a 5 start in 2006 finish? | CREATE TABLE table_42279 (
"Year" real,
"Chassis" text,
"Engine" text,
"Start" text,
"Finish" real,
"Team" text
) |
SELECT sat_29_aug FROM table_23465864_4 WHERE tues_25_aug = "22' 54.20 98.842mph" | What time was achieved on Saturday 29th August by the rider who recorded 22' 54.20 98.842mph on Tuesday 25th August? | CREATE TABLE table_23465864_4 (sat_29_aug VARCHAR, tues_25_aug VARCHAR) |
SELECT record FROM table_23285805_8 WHERE location_attendance = "Arco Arena 17361" | What is the record where arco arena 17361 is location attendance? | CREATE TABLE table_23285805_8 (record VARCHAR, location_attendance VARCHAR) |
SELECT JOB_ID, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY JOB_ID | 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 job_id and salary , rank by the X-axis in asc. | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(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 job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
) |
SELECT sat_29_aug FROM table_23465864_4 WHERE fri_28_aug = "25' 01.89 90.438mph" | What time was achieved on Saturday 29th August by the rider who recorded 25' 01.89 90.438mph on Friday 28th August? | CREATE TABLE table_23465864_4 (sat_29_aug VARCHAR, fri_28_aug VARCHAR) |
SELECT high_points FROM table_23285805_8 WHERE game = 69 | Who has the high points for the 69 game? | CREATE TABLE table_23285805_8 (high_points VARCHAR, game VARCHAR) |
SELECT COUNT("Date of issue") FROM table_31381 WHERE "Obverse" = 'Kumsusan Memorial Palace' | How many different dates of issue are the for the coin with kumsusan memorial palace on the obverse? | CREATE TABLE table_31381 (
"Value" text,
"Dimensions" text,
"Main Color" text,
"Obverse" text,
"Reverse" text,
"Watermark" text,
"Date of issue" text
) |
SELECT wed_26_aug FROM table_23465864_6 WHERE rider = "Andrew Farrell 400cc Kawasaki" | What was the event on Wed 26 Aug where rider is Andrew Farrell 400cc Kawasaki? | CREATE TABLE table_23465864_6 (wed_26_aug VARCHAR, rider VARCHAR) |
SELECT record FROM table_23286158_8 WHERE location_attendance = "Rose Garden 20,565" | Name the record for rose garden 20,565 attendance | CREATE TABLE table_23286158_8 (record VARCHAR, location_attendance VARCHAR) |
SELECT Flag, COUNT(*) FROM Ship GROUP BY Flag ORDER BY Flag DESC | Draw a bar chart for what are the different ship flags, and how many ships have each?, rank by the X-axis in desc. | CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
)
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
) |
SELECT thurs_27_aug FROM table_23465864_6 WHERE tues_25_aug = "23' 00.59 98.384mph" | What was the event on Thurs 27 Aug when Tues 25 Aug was 23' 00.59 98.384mph? | CREATE TABLE table_23465864_6 (thurs_27_aug VARCHAR, tues_25_aug VARCHAR) |
SELECT game FROM table_23286158_8 WHERE high_rebounds = "Andre Miller , Rudy Fernandez (7)" | Name the game for andre miller , rudy fernandez (7) | CREATE TABLE table_23286158_8 (game VARCHAR, high_rebounds VARCHAR) |
SELECT years FROM table_name_62 WHERE character = "joyce couwenberg" | What years have joyce couwenberg as the character? | CREATE TABLE table_name_62 (
years VARCHAR,
character VARCHAR
) |
SELECT tues_25_aug FROM table_23465864_6 WHERE mon_24_aug = "22' 24.56 101.021mph" | What was the Tues 25 Aug time and speed when Mon 24 Aug was 22' 24.56 101.021mph? | CREATE TABLE table_23465864_6 (tues_25_aug VARCHAR, mon_24_aug VARCHAR) |
SELECT high_points FROM table_23286158_8 WHERE record = "30-23" | Name the high points for 30-23 | CREATE TABLE table_23286158_8 (high_points VARCHAR, record VARCHAR) |
SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '004-64091')) AND NOT vitalperiodic.respiration IS NULL AND DATETIME(vitalperiodic.observationtime, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-1 day') ORDER BY vitalperiodic.observationtime DESC LIMIT 1 | when was the last measuring of respiration of patient 004-64091 yesterday? | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
) |
SELECT rider FROM table_23465864_6 WHERE fri_28_aug = "24' 23.36 92.820mph" | Who was the rider when Fri 28 Aug was 24' 23.36 92.820mph? | CREATE TABLE table_23465864_6 (rider VARCHAR, fri_28_aug VARCHAR) |
SELECT team FROM table_23286158_8 WHERE location_attendance = "Rose Garden 20,565" | Name the team at the rose garden 20,565 | CREATE TABLE table_23286158_8 (team VARCHAR, location_attendance VARCHAR) |
SELECT country FROM stadium GROUP BY country ORDER BY COUNT(*) DESC LIMIT 1 | Find the country that has the most stadiums. | 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
)
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
) |
SELECT opponent FROM table_23466021_4 WHERE attendance = 32194 | Which opponent has 32194 as the attendance? | CREATE TABLE table_23466021_4 (opponent VARCHAR, attendance VARCHAR) |
SELECT score FROM table_23286158_9 WHERE record = "37-27" | What was the score for the game when the record was 37-27? | CREATE TABLE table_23286158_9 (score VARCHAR, record VARCHAR) |
SELECT independent_regional_force FROM table_2651755_1 WHERE democratic_coalition = "(R) Jorge Tarud ( PPD )" | Who is the independent regional force when democratic coalition is (r) jorge tarud ( ppd )? | CREATE TABLE table_2651755_1 (
independent_regional_force VARCHAR,
democratic_coalition VARCHAR
) |
SELECT opponent FROM table_23466021_4 WHERE attendance = 36102 | Which opponent has 36102 is the attendance? | CREATE TABLE table_23466021_4 (opponent VARCHAR, attendance VARCHAR) |
SELECT high_points FROM table_23286158_9 WHERE team = "Indiana" | Who led with the highest points during the game against Indiana? | CREATE TABLE table_23286158_9 (high_points VARCHAR, team VARCHAR) |
SELECT "Teleplay" FROM table_48778 WHERE "Director" = 'george mccowan' AND "Season" < '1.1400000000000001' AND "First Broadcast" = 'april 3, 1981' | What is Teleplay, when Director is 'George McCowan', when Season is less than 1.1400000000000001, and when First Broadcast is April 3, 1981? | CREATE TABLE table_48778 (
"Title" text,
"Season" real,
"Director" text,
"Teleplay" text,
"First Broadcast" text
) |
SELECT MAX(attendance) FROM table_23466021_4 | What is the attendance? | CREATE TABLE table_23466021_4 (attendance INTEGER) |
SELECT MAX(no_in_series) FROM table_23289934_1 WHERE production_code = "3ABC11" | Name the most number in series for production code of 3abc11 | CREATE TABLE table_23289934_1 (no_in_series INTEGER, production_code VARCHAR) |
SELECT director, COUNT(*) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.director ORDER BY director | For each director, how many reviews have they received Visualize by bar chart, and order in asc by the names. | CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Reviewer (
rID int,
name text
) |
SELECT hometown FROM table_23476629_2 WHERE province = "Huesca" | What is the hometown of contestants who are from the province of Huesca? | CREATE TABLE table_23476629_2 (hometown VARCHAR, province VARCHAR) |
SELECT MAX(no_in_season) FROM table_23289934_1 WHERE production_code = "3ABC12" | Name the most number in season for production code 3abc12 | CREATE TABLE table_23289934_1 (no_in_season INTEGER, production_code VARCHAR) |
SELECT MAX(2011) FROM table_name_38 WHERE airport = "bole international airport" | Which 2011 has an Airport of bole international airport? | CREATE TABLE table_name_38 (
airport VARCHAR
) |
SELECT height__in_ FROM table_23476629_2 WHERE province = "La Rioja" | What is the height in inches of contestants who are from the province of La Rioja? | CREATE TABLE table_23476629_2 (height__in_ VARCHAR, province VARCHAR) |
SELECT title FROM table_23289934_1 WHERE no_in_season = 16 | Name the title for number 16 | CREATE TABLE table_23289934_1 (title VARCHAR, no_in_season VARCHAR) |
SELECT All_Road, All_Games_Percent FROM basketball_match ORDER BY All_Games_Percent | Show me about the distribution of All_Road and All_Games_Percent in a bar chart, and rank by the Y in asc. | 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 COUNT(age) FROM table_23476629_2 WHERE hometown = "Andujar" | How many contestants of whatever age are there whose hometown of Andujar? | CREATE TABLE table_23476629_2 (age VARCHAR, hometown VARCHAR) |
SELECT MIN(no_in_series) FROM table_23289934_1 WHERE production_code = "3ABC21" | Name the least number for production code for 3abc21 | CREATE TABLE table_23289934_1 (no_in_series INTEGER, production_code VARCHAR) |
SELECT MIN("Pick") FROM table_60085 WHERE "Overall" > '17' AND "Player name" = 'dave adams category:articles with hcards' AND "Year" > '1963' | What is the smallest Pick with Overall larger than 17, a Player name of dave adams category:articles with hcards, and a Year larger than 1963? | CREATE TABLE table_60085 (
"Year" real,
"Round" real,
"Pick" real,
"Overall" real,
"Player name" text,
"Position" text,
"AFL team" text
) |
SELECT MAX(service) FROM table_23477312_1 WHERE train_name = "Jammu Duronto" | What's the service number of the Jammu Duronto train? | CREATE TABLE table_23477312_1 (service INTEGER, train_name VARCHAR) |
SELECT original_airdate FROM table_23294081_10 WHERE performer_2 = "Jeff Davis" | What was the date that the episode with Jeff Davis as the second performer originally aired? | CREATE TABLE table_23294081_10 (original_airdate VARCHAR, performer_2 VARCHAR) |
SELECT "GPU frequency" FROM table_9826 WHERE "Model number" = 'atom n435' | What is GPU Frequency, when Model Number is Atom N435? | CREATE TABLE table_9826 (
"Model number" text,
"sSpec number" text,
"Frequency" text,
"GPU frequency" text,
"L2 cache" text,
"I/O bus" text,
"Memory" text,
"Voltage" text,
"Socket" text,
"Release date" text,
"Part number(s)" text
) |
SELECT train_name FROM table_23477312_1 WHERE destination = "Madurai Junction" | What's the name of the train to Madurai Junction? | CREATE TABLE table_23477312_1 (train_name VARCHAR, destination VARCHAR) |
SELECT COUNT(_number) FROM table_23294081_10 WHERE no = 214 | How many episodes were series episode 214? | CREATE TABLE table_23294081_10 (_number VARCHAR, no VARCHAR) |
SELECT student_capacity, gender FROM dorm WHERE dorm_name LIKE '%Donor%' | What is the student capacity and type of gender for the dorm whose name as the phrase Donor in it? | CREATE TABLE has_amenity (
dormid number,
amenid number
)
CREATE TABLE lives_in (
stuid number,
dormid number,
room_number number
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE dorm (
dormid number,
dorm_name text,
student_capacity number,
gender text
)
CREATE TABLE dorm_amenity (
amenid number,
amenity_name text
) |
SELECT service FROM table_23477312_1 WHERE train_name = "Pune Duronto" AND departure = "21:35" | What's the service number of the Pune Duronto train that departures at 21:35? | CREATE TABLE table_23477312_1 (service VARCHAR, train_name VARCHAR, departure VARCHAR) |
SELECT date FROM table_23308178_6 WHERE opponent = "Toronto Maple Leafs" | What date did the capitols play the toronto maple leafs? | CREATE TABLE table_23308178_6 (date VARCHAR, opponent VARCHAR) |
SELECT AVG(number) FROM table_name_23 WHERE player = "larry centers" AND yards < 600 | What is Larry Centers' average number when there were less than 600 yards? | CREATE TABLE table_name_23 (
number INTEGER,
player VARCHAR,
yards VARCHAR
) |
SELECT train_name FROM table_23477312_1 WHERE destination = "Bhubaneswar" | What's the name of the train that goes to Bhubaneswar? | CREATE TABLE table_23477312_1 (train_name VARCHAR, destination VARCHAR) |
SELECT location FROM table_23308178_6 WHERE record = "20-6-6" | Where was the game played when the record was 20-6-6? | CREATE TABLE table_23308178_6 (location VARCHAR, record VARCHAR) |
SELECT penanced FROM table_name_3 WHERE number_of_autos_da_fé_with_known_sentences = "71 (1600–1773)" | How many were penanced when the number with known sentences was 71 (1600 1773)? | CREATE TABLE table_name_3 (
penanced VARCHAR,
number_of_autos_da_fé_with_known_sentences VARCHAR
) |
SELECT record FROM table_23486853_6 WHERE opponent = "Pittsburgh Penguins" | What is the record when the opposing team was the Pittsburgh Penguins? | CREATE TABLE table_23486853_6 (record VARCHAR, opponent VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.