answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT "Congress" FROM table_19164 WHERE "Member-elect" = 'Richard P. Giles' | What edition of congress for member-elect richard p. giles? | CREATE TABLE table_19164 (
"Member-elect" text,
"Party" text,
"District" text,
"Election date" text,
"Congress" text,
"Reason for non-seating" text
) |
SELECT home_team AS score FROM table_name_92 WHERE venue = "windy hill" | What did the home team score at Windy Hill? | CREATE TABLE table_name_92 (home_team VARCHAR, venue VARCHAR) |
SELECT metropolitan_area FROM table_22916979_1 WHERE land_area__mi_2__ = "23.80" | Which major metropolitan area had a land area of 23.80? | CREATE TABLE table_22916979_1 (metropolitan_area VARCHAR, land_area__mi_2__ VARCHAR) |
SELECT COUNT(*) FROM accounts | How many accounts do we have? | CREATE TABLE statements (
statement_id number,
statement_details text
)
CREATE TABLE ref_budget_codes (
budget_type_code text,
budget_type_description text
)
CREATE TABLE documents (
document_id number,
document_type_code text,
project_id number,
document_date time,
document_name text,
document_description text,
other_details text
)
CREATE TABLE documents_with_expenses (
document_id number,
budget_type_code text,
document_details text
)
CREATE TABLE ref_document_types (
document_type_code text,
document_type_name text,
document_type_description text
)
CREATE TABLE projects (
project_id number,
project_details text
)
CREATE TABLE accounts (
account_id number,
statement_id number,
account_details text
) |
SELECT MAX(crowd) FROM table_name_49 WHERE home_team = "richmond" | When the home team was Richmond, what was the largest crowd? | CREATE TABLE table_name_49 (crowd INTEGER, home_team VARCHAR) |
SELECT COUNT(state) FROM table_22916979_1 WHERE population_density__people_per_mi_2__ = "10188.8" | How many states had a population density of 10188.8? | CREATE TABLE table_22916979_1 (state VARCHAR, population_density__people_per_mi_2__ VARCHAR) |
SELECT "Score" FROM table_61903 WHERE "Away team" = 'west ham united' | What score has west ham united as the away team? | CREATE TABLE table_61903 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) |
SELECT AVG(1 AS st_prize__) AS $__ FROM table_name_55 WHERE location = "tennessee" | Tell me the average 1st prize for tennessee | CREATE TABLE table_name_55 (location VARCHAR) |
SELECT COUNT(left) FROM table_2293402_2 WHERE nickname = "Cardinals" | Name the number of left for cardinals | CREATE TABLE table_2293402_2 (left VARCHAR, nickname VARCHAR) |
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE ((fare.round_trip_required = 'NO' AND flight_fare.fare_id = fare.fare_id AND flight.departure_time < 1000 AND flight.flight_id = flight_fare.flight_id) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'CHICAGO' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'COLUMBUS' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code | COLUMBUS to CHICAGO one way before 1000 | CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
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_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
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 class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
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 equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description 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 month (
month_number int,
month_name text
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
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 airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE compartment_class (
compartment varchar,
class_type varchar
)
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
) |
SELECT winner FROM table_name_97 WHERE tournament = "comfort classic" | Tell me the winner of the comfort classic | CREATE TABLE table_name_97 (winner VARCHAR, tournament VARCHAR) |
SELECT institution FROM table_2293402_2 WHERE type = "Private" | Name the school that is private | CREATE TABLE table_2293402_2 (institution VARCHAR, type VARCHAR) |
SELECT school_club_team FROM table_name_55 WHERE position = "forward-center" AND player = "amal mccaskill" | Amal McCaskill who plays forward-center played for what school/club team? | CREATE TABLE table_name_55 (
school_club_team VARCHAR,
position VARCHAR,
player VARCHAR
) |
SELECT COUNT(pct) FROM table_name_13 WHERE losses < 1 AND finals = 4 | How many percentages have losses fewer than 1 with finals appearances of 4? | CREATE TABLE table_name_13 (pct VARCHAR, losses VARCHAR, finals VARCHAR) |
SELECT location FROM table_2293402_2 WHERE founded = 1798 | Name the location that was founded 1798 | CREATE TABLE table_2293402_2 (location VARCHAR, founded VARCHAR) |
SELECT record FROM table_name_55 WHERE date = "december 5, 2007" | What is the record of the game on December 5, 2007? | CREATE TABLE table_name_55 (
record VARCHAR,
date VARCHAR
) |
SELECT minimum_age_at_1st_dose FROM table_name_28 WHERE number_of_doses = "3 doses" AND dose = "2-3 drops" | Name the least age for the 1st dose for 3 doses of 2-3 drops | CREATE TABLE table_name_28 (minimum_age_at_1st_dose VARCHAR, number_of_doses VARCHAR, dose VARCHAR) |
SELECT nickname FROM table_2293402_2 WHERE founded = 1798 | Name the nickname that was founded 1798 | CREATE TABLE table_2293402_2 (nickname VARCHAR, founded VARCHAR) |
SELECT catalog FROM table_name_55 WHERE date = "19 july 2008" | What was the name of the catalog released on 19 July 2008? | CREATE TABLE table_name_55 (
catalog VARCHAR,
date VARCHAR
) |
SELECT number_of_doses FROM table_name_13 WHERE vaccine = "bacillus calmette-guérin" | How many doses for the bacillus calmette-guérin? | CREATE TABLE table_name_13 (number_of_doses VARCHAR, vaccine VARCHAR) |
SELECT MIN(10), 000 + _places FROM table_22916979_5 WHERE principal_city = "Louisville" | Name the least 10,000+ places for louisville | CREATE TABLE table_22916979_5 (_places VARCHAR, principal_city VARCHAR) |
SELECT * FROM table_train_7 WHERE age >= 18 | at least 18 years of age | CREATE TABLE table_train_7 (
"id" int,
"bleeding" int,
"hypotension" bool,
"burn_injury" int,
"hypoperfusion" bool,
"hypertension" bool,
"age" float,
"lactate" int,
"NOUSE" float
) |
SELECT home_team FROM table_name_42 WHERE away_team = "carlton" | What team did team carlton play while away? | CREATE TABLE table_name_42 (home_team VARCHAR, away_team VARCHAR) |
SELECT density FROM table_22916979_5 WHERE densest_incorporated_place = "Pennsbury Village" | Name the density for pennsbury village | CREATE TABLE table_22916979_5 (density VARCHAR, densest_incorporated_place VARCHAR) |
SELECT product_type_code, COUNT(product_type_code) FROM Product_Suppliers AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 3 GROUP BY product_type_code | Give me a pie chart showing the number of products supplied by supplier id 3 for different product type code. | CREATE TABLE Supplier_Addresses (
supplier_id INTEGER,
address_id INTEGER,
date_from DATETIME,
date_to DATETIME
)
CREATE TABLE Staff (
staff_id INTEGER,
staff_gender VARCHAR(1),
staff_name VARCHAR(80)
)
CREATE TABLE Staff_Department_Assignments (
staff_id INTEGER,
department_id INTEGER,
date_assigned_from DATETIME,
job_title_code VARCHAR(10),
date_assigned_to DATETIME
)
CREATE TABLE Suppliers (
supplier_id INTEGER,
supplier_name VARCHAR(80),
supplier_phone VARCHAR(80)
)
CREATE TABLE Department_Store_Chain (
dept_store_chain_id INTEGER,
dept_store_chain_name VARCHAR(80)
)
CREATE TABLE Customer_Orders (
order_id INTEGER,
customer_id INTEGER,
order_status_code VARCHAR(10),
order_date DATETIME
)
CREATE TABLE Products (
product_id INTEGER,
product_type_code VARCHAR(10),
product_name VARCHAR(80),
product_price DECIMAL(19,4)
)
CREATE TABLE Departments (
department_id INTEGER,
dept_store_id INTEGER,
department_name VARCHAR(80)
)
CREATE TABLE Department_Stores (
dept_store_id INTEGER,
dept_store_chain_id INTEGER,
store_name VARCHAR(80),
store_address VARCHAR(255),
store_phone VARCHAR(80),
store_email VARCHAR(80)
)
CREATE TABLE Customers (
customer_id INTEGER,
payment_method_code VARCHAR(10),
customer_code VARCHAR(20),
customer_name VARCHAR(80),
customer_address VARCHAR(255),
customer_phone VARCHAR(80),
customer_email VARCHAR(80)
)
CREATE TABLE Order_Items (
order_item_id INTEGER,
order_id INTEGER,
product_id INTEGER
)
CREATE TABLE Customer_Addresses (
customer_id INTEGER,
address_id INTEGER,
date_from DATETIME,
date_to DATETIME
)
CREATE TABLE Addresses (
address_id INTEGER,
address_details VARCHAR(255)
)
CREATE TABLE Product_Suppliers (
product_id INTEGER,
supplier_id INTEGER,
date_supplied_from DATETIME,
date_supplied_to DATETIME,
total_amount_purchased VARCHAR(80),
total_value_purchased DECIMAL(19,4)
) |
SELECT home_team FROM table_name_77 WHERE venue = "windy hill" | What home team plays at Windy Hill? | CREATE TABLE table_name_77 (home_team VARCHAR, venue VARCHAR) |
SELECT COUNT(rank) FROM table_22916979_5 WHERE densest_incorporated_place = "Stone Park" | Name the number of rank for stone park | CREATE TABLE table_22916979_5 (rank VARCHAR, densest_incorporated_place VARCHAR) |
SELECT Name, SUM(T1.Show_times_per_day) FROM schedule AS T1 JOIN cinema AS T2 ON T1.Cinema_ID = T2.Cinema_ID GROUP BY T1.Cinema_ID ORDER BY Name DESC | What is total number of show times per dat for each cinema Show bar chart, order in descending by the bars. | CREATE TABLE schedule (
Cinema_ID int,
Film_ID int,
Date text,
Show_times_per_day int,
Price float
)
CREATE TABLE film (
Film_ID int,
Rank_in_series int,
Number_in_season int,
Title text,
Directed_by text,
Original_air_date text,
Production_code text
)
CREATE TABLE cinema (
Cinema_ID int,
Name text,
Openning_year int,
Capacity int,
Location text
) |
SELECT 2 AS nd_party FROM table_name_66 WHERE election = "1918" | What was the 2nd Party in the 1918 Election? | CREATE TABLE table_name_66 (election VARCHAR) |
SELECT metropolitan_area FROM table_22916979_5 WHERE densest_incorporated_place = "North Bay Village" | Name the area for north bay village | CREATE TABLE table_22916979_5 (metropolitan_area VARCHAR, densest_incorporated_place VARCHAR) |
SELECT Date_Payment_Made, COUNT(Date_Payment_Made) FROM Payments WHERE Payment_Method_Code = 'Visa' ORDER BY COUNT(Date_Payment_Made) | For those payments processed with Visa, bin the payment day into the Day of week interval and count them for a bar chart, and sort total number in ascending order. | CREATE TABLE Payments (
Payment_ID INTEGER,
Settlement_ID INTEGER,
Payment_Method_Code VARCHAR(255),
Date_Payment_Made DATE,
Amount_Payment INTEGER
)
CREATE TABLE Customer_Policies (
Policy_ID INTEGER,
Customer_ID INTEGER,
Policy_Type_Code CHAR(15),
Start_Date DATE,
End_Date DATE
)
CREATE TABLE Settlements (
Settlement_ID INTEGER,
Claim_ID INTEGER,
Date_Claim_Made DATE,
Date_Claim_Settled DATE,
Amount_Claimed INTEGER,
Amount_Settled INTEGER,
Customer_Policy_ID INTEGER
)
CREATE TABLE Customers (
Customer_ID INTEGER,
Customer_Details VARCHAR(255)
)
CREATE TABLE Claims (
Claim_ID INTEGER,
Policy_ID INTEGER,
Date_Claim_Made DATE,
Date_Claim_Settled DATE,
Amount_Claimed INTEGER,
Amount_Settled INTEGER
) |
SELECT 3 AS rd_party FROM table_name_35 WHERE election = "1922" | What was the 3rd Party in the Election of 1922? | CREATE TABLE table_name_35 (election VARCHAR) |
SELECT region___nuts_2006_ FROM table_2293510_1 WHERE ppp__million_€_ = 23164 | Where is the PPP 23164 million €? | CREATE TABLE table_2293510_1 (region___nuts_2006_ VARCHAR, ppp__million_€_ VARCHAR) |
SELECT horsepower FROM table_name_94 WHERE vin_code = "h" AND engine = "351-2v cleveland v8" | Name the horsepower for VIN code of h and engine for 351-2v cleveland v8 | CREATE TABLE table_name_94 (
horsepower VARCHAR,
vin_code VARCHAR,
engine VARCHAR
) |
SELECT MAX(erp_w) FROM table_name_6 WHERE frequency_mhz < 91.1 | What is the ERP W number where the frequency is smaller than 91.1? | CREATE TABLE table_name_6 (erp_w INTEGER, frequency_mhz INTEGER) |
SELECT total__million_€__ FROM table_2293510_1 WHERE ppp__million_€_ = 21779 | What's the total (in million €) in the region where PPP is 21779 million €? | CREATE TABLE table_2293510_1 (total__million_€__ VARCHAR, ppp__million_€_ VARCHAR) |
SELECT MAX("Silver") FROM table_68250 WHERE "Gold" = '1' AND "Nation" = 'djibouti' AND "Total" < '3' | What's the highest silver and 1 gold that the nation of djibouti received with a total less than 3? | CREATE TABLE table_68250 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT home_team AS score FROM table_name_69 WHERE home_team = "collingwood" | What was the score of Collingwood? | CREATE TABLE table_name_69 (home_team VARCHAR) |
SELECT _percentage_of_eu_average_gdp__ppp_ FROM table_2293510_1 WHERE €_per_capita__2005_ = 2519 | What's the percentage of EU average GDP (PPP) in the region where € per capita is 2519 | CREATE TABLE table_2293510_1 (_percentage_of_eu_average_gdp__ppp_ VARCHAR, €_per_capita__2005_ 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_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BALTIMORE' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHILADELPHIA' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code | i would like to see the flights from BALTIMORE to PHILADELPHIA | CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
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 ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE month (
month_number int,
month_name text
)
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 time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
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 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 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 compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight 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 date_day (
month_number int,
day_number int,
year int,
day_name 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 state (
state_code text,
state_name text,
country_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 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 code_description (
code varchar,
description text
) |
SELECT venue FROM table_name_83 WHERE away_team = "south melbourne" | Where did South Melbourne play? | CREATE TABLE table_name_83 (venue VARCHAR, away_team VARCHAR) |
SELECT MAX(stage) FROM table_22941863_19 WHERE winner = "Bernhard Eisel" | If the winner is Bernhard Eisel, what is the stage maximum? | CREATE TABLE table_22941863_19 (stage INTEGER, winner VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "DISCH-TRAN TO PSYCH HOSP" AND demographic.admityear < "2187" | what is the number of patients whose discharge location is disch-tran to psych hosp and admission year is less than 2187? | 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
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title 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
) |
SELECT venue FROM table_name_79 WHERE home_team = "north melbourne" | What is the venue of North Melbourne? | CREATE TABLE table_name_79 (venue VARCHAR, home_team VARCHAR) |
SELECT mountains_classification FROM table_22941863_19 WHERE winner = "Bernhard Eisel" | What is the mountain classification name if the winner is Bernhard Eisel? | CREATE TABLE table_22941863_19 (mountains_classification VARCHAR, winner VARCHAR) |
SELECT final_score FROM table_name_40 WHERE opponent = "atlético choloma" | What was the final score when the opponent was Atl tico Choloma? | CREATE TABLE table_name_40 (
final_score VARCHAR,
opponent VARCHAR
) |
SELECT loss FROM table_name_20 WHERE opponent = "coyotes" | What was the loss from the coyotes as opponents? | CREATE TABLE table_name_20 (loss VARCHAR, opponent VARCHAR) |
SELECT points_classification FROM table_22941863_19 WHERE stage = 3 | If the stage is 3, what is the points classification name? | CREATE TABLE table_22941863_19 (points_classification VARCHAR, stage VARCHAR) |
SELECT Name, Price FROM Products WHERE Price BETWEEN 60 AND 120 | For those products with a price between 60 and 120, show me about the proportion of price and price in a pie chart. | 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 final_episode FROM table_name_93 WHERE actor = "rob estes" | What was the last episode featuring Rob Estes? | CREATE TABLE table_name_93 (final_episode VARCHAR, actor VARCHAR) |
SELECT team_classification FROM table_22941863_19 WHERE stage = 9 | If the stage is 9, what is the team classification name? | CREATE TABLE table_22941863_19 (team_classification VARCHAR, stage VARCHAR) |
SELECT date_of_publication, COUNT(date_of_publication) FROM Catalogs AS t1 JOIN Catalog_Structure AS t2 ON t1.catalog_id = t2.catalog_id WHERE catalog_level_number > 5 GROUP BY catalog_name ORDER BY COUNT(date_of_publication) | Find the names and publication dates of all catalogs that have catalog level number greater than 5 Bin publication dates into Year interval, and count catalog and group by catalog name, order the number of date of publication from low to high order. | CREATE TABLE Catalogs (
catalog_id INTEGER,
catalog_name VARCHAR(50),
catalog_publisher VARCHAR(80),
date_of_publication DATETIME,
date_of_latest_revision DATETIME
)
CREATE TABLE Catalog_Structure (
catalog_level_number INTEGER,
catalog_id INTEGER,
catalog_level_name VARCHAR(50)
)
CREATE TABLE Attribute_Definitions (
attribute_id INTEGER,
attribute_name VARCHAR(30),
attribute_data_type VARCHAR(10)
)
CREATE TABLE Catalog_Contents (
catalog_entry_id INTEGER,
catalog_level_number INTEGER,
parent_entry_id INTEGER,
previous_entry_id INTEGER,
next_entry_id INTEGER,
catalog_entry_name VARCHAR(80),
product_stock_number VARCHAR(50),
price_in_dollars DOUBLE,
price_in_euros DOUBLE,
price_in_pounds DOUBLE,
capacity VARCHAR(20),
length VARCHAR(20),
height VARCHAR(20),
width VARCHAR(20)
)
CREATE TABLE Catalog_Contents_Additional_Attributes (
catalog_entry_id INTEGER,
catalog_level_number INTEGER,
attribute_id INTEGER,
attribute_value VARCHAR(255)
) |
SELECT block FROM table_name_23 WHERE cospar_id = "1995-060a" | What block has a COSPAR ID of 1995-060a? | CREATE TABLE table_name_23 (block VARCHAR, cospar_id VARCHAR) |
SELECT mountains_classification FROM table_22941863_19 WHERE winner = "Michael Albasini" | If the winner is Michael Albasini, what is the mountains classification name? | CREATE TABLE table_22941863_19 (mountains_classification VARCHAR, winner VARCHAR) |
SELECT time FROM table_name_60 WHERE year > 1985 AND place < 2 AND athlete = "riochy sekiya" | Which Time has a Year larger than 1985, and a Place smaller than 2, and an Athlete of riochy sekiya? | CREATE TABLE table_name_60 (
time VARCHAR,
athlete VARCHAR,
year VARCHAR,
place VARCHAR
) |
SELECT rocket FROM table_name_41 WHERE block = "block i" AND cospar_id = "1995-060a" | What rocket has a Block of block i and a COSPAR ID of 1995-060a? | CREATE TABLE table_name_41 (rocket VARCHAR, block VARCHAR, cospar_id VARCHAR) |
SELECT winner FROM table_22941863_19 WHERE sprints_classification = "no award" | What is the name of the winner when the sprints classification is no award? | CREATE TABLE table_22941863_19 (winner VARCHAR, sprints_classification VARCHAR) |
SELECT jockey FROM table_30098144_2 WHERE race = "Doncaster Handicap" | List the rider for the doncaster handicap compeition. | CREATE TABLE table_30098144_2 (
jockey VARCHAR,
race VARCHAR
) |
SELECT name FROM table_name_2 WHERE rocket = "titan iv(401)b" AND block = "block i/ii hybrid" | What name has a Rocket of titan iv(401)b and a Block of block i/ii hybrid? | CREATE TABLE table_name_2 (name VARCHAR, rocket VARCHAR, block VARCHAR) |
SELECT us_viewers__in_millions_ FROM table_22951088_3 WHERE written_by = "Deidre Shaw" | How many viewers (in millions) watched the episode written by deidre shaw? | CREATE TABLE table_22951088_3 (us_viewers__in_millions_ VARCHAR, written_by VARCHAR) |
SELECT COUNT("Porphyria") FROM table_22223 WHERE "Substrate" = 'δ-Aminolevulinic acid' | how many porphyria have substrate -aminolevulinic acid | CREATE TABLE table_22223 (
"Enzyme" text,
"Location" text,
"Substrate" text,
"Product" text,
"Chromosome" text,
"EC" text,
"OMIM" real,
"Porphyria" text
) |
SELECT rocket FROM table_name_30 WHERE block = "block i/ii hybrid" | What rocket has a block i/ii hybrid? | CREATE TABLE table_name_30 (rocket VARCHAR, block VARCHAR) |
SELECT original_air_date FROM table_22951088_3 WHERE no = 1 | What was the original air date of episode number 1? | CREATE TABLE table_22951088_3 (original_air_date VARCHAR, no VARCHAR) |
SELECT "Final Score" FROM table_26170 WHERE "Date" = 'September 20' | What was the score on September 20? | CREATE TABLE table_26170 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Final Score" text,
"Attendance" real,
"Record" text
) |
SELECT rocket FROM table_name_31 WHERE cospar_id = "2002-001a" | What rocket has a COSPAR ID of 2002-001a? | CREATE TABLE table_name_31 (rocket VARCHAR, cospar_id VARCHAR) |
SELECT bowler FROM table_22962745_35 WHERE batsmen = "Dwaraka Ravi Teja RP Singh Pragyan Ojha" | Who was the bowler when the batsmen was dwaraka ravi teja rp singh pragyan ojha? | CREATE TABLE table_22962745_35 (bowler VARCHAR, batsmen VARCHAR) |
SELECT "name" FROM table_40354 WHERE "Calculated" = '56' | What is the name of the element with a calculated value of 56? | CREATE TABLE table_40354 (
"number" real,
"symbol" text,
"name" text,
"empirical \u2020" text,
"Calculated" text,
"van der Waals" text,
"Covalent (single bond)" text,
"Covalent (triple bond)" text
) |
SELECT cospar_id FROM table_name_40 WHERE launch_date_time__utc_ = "1995-11-06, 05:15:01" | What COSPAR ID has a Launch date/time (UTC) of 1995-11-06, 05:15:01? | CREATE TABLE table_name_40 (cospar_id VARCHAR, launch_date_time__utc_ VARCHAR) |
SELECT COUNT(bowler) FROM table_22962745_35 WHERE batsmen = "David Hussey Azhar Mahmood Gurkeerat Singh" | How many bowlers were there when david hussey azhar mahmood gurkeerat singh was the batsmen? | CREATE TABLE table_22962745_35 (bowler VARCHAR, batsmen 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, days, flight WHERE (((days.day_name = 'SATURDAY' AND flight.flight_days = days.days_code AND flight.flight_number = 1083) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PHILADELPHIA' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND flight.airline_code = 'DL' | does flight DL 1083 from PHILADELPHIA to DENVER fly on SATURDAY | CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant 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 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 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 date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
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 food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
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 state (
state_code text,
state_name text,
country_name 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 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 score FROM table_name_94 WHERE competition = "super league xii" AND date = "15/04/07" | On 15/04/07 in the competition Super League XII, what was the score? | CREATE TABLE table_name_94 (score VARCHAR, competition VARCHAR, date VARCHAR) |
SELECT season FROM table_22962745_35 WHERE batsmen = "Herschelle Gibbs Andrew Symonds Venugopal Rao" | What season was herschelle gibbs andrew symonds venugopal rao batsmen? | CREATE TABLE table_22962745_35 (season VARCHAR, batsmen VARCHAR) |
SELECT MIN(place) FROM table_name_50 WHERE televotes = 15424 | What is the lowest Place, when Televotes is 15424? | CREATE TABLE table_name_50 (
place INTEGER,
televotes VARCHAR
) |
SELECT score FROM table_name_12 WHERE date = "21/07/07" | On 21/07/07, what was the score? | CREATE TABLE table_name_12 (score VARCHAR, date VARCHAR) |
SELECT scorecard FROM table_22962745_35 WHERE batsmen = "Robin Uthappa Mark Boucher Jacques Kallis" | What was the scorecard when robin uthappa mark boucher jacques kallis was the batsmen? | CREATE TABLE table_22962745_35 (scorecard VARCHAR, batsmen VARCHAR) |
SELECT "Length of game" FROM table_35599 WHERE "Home team" = 'baltimore colts' | What was the length of the game where the Baltimore Colts were at home? | CREATE TABLE table_35599 (
"Length of game" text,
"Date" text,
"Away team" text,
"Score" text,
"Home team" text
) |
SELECT venue FROM table_name_48 WHERE season = "1907" | What was the venue of season 1907? | CREATE TABLE table_name_48 (venue VARCHAR, season VARCHAR) |
SELECT MAX(no) FROM table_22962745_35 WHERE against = "Rajasthan Royals" | What is the number when against is rajasthan royals? | CREATE TABLE table_22962745_35 (no INTEGER, against VARCHAR) |
SELECT 2012 FROM table_name_11 WHERE 2007 = "a" AND 2011 = "qf" | What is the 2012 value with A in 2007 and qf in 2011? | CREATE TABLE table_name_11 (
Id VARCHAR
) |
SELECT bowling FROM table_name_23 WHERE season = "1907" | What is the bowling score of season 1907? | CREATE TABLE table_name_23 (bowling VARCHAR, season VARCHAR) |
SELECT COUNT(stellar_classification) FROM table_2296507_1 WHERE system = "3 Neptune planets < 1 AU" | Name number of stellar classification for 3 neptune planets < 1 au | CREATE TABLE table_2296507_1 (stellar_classification VARCHAR, system VARCHAR) |
SELECT song FROM table_name_70 WHERE issue_date_s_ = "19 june" | What is the Song with an Issue Date(s) that is 19 june? | CREATE TABLE table_name_70 (
song VARCHAR,
issue_date_s_ VARCHAR
) |
SELECT season FROM table_name_62 WHERE player = "tich freeman" AND opponent = "v warwickshire" | Which season did Tich Freeman play against opponent V Warwickshire? | CREATE TABLE table_name_62 (season VARCHAR, player VARCHAR, opponent VARCHAR) |
SELECT system FROM table_2296507_1 WHERE constellation = "Aries" | Name the system for aries | CREATE TABLE table_2296507_1 (system VARCHAR, constellation VARCHAR) |
SELECT SUM("sacks") FROM table_203_258 WHERE "team" = 'hou' | what is the total amount of sacks with houston ? | CREATE TABLE table_203_258 (
id number,
"year" number,
"team" text,
"games" number,
"combined tackles" number,
"tackles" number,
"assisted tackles" number,
"sacks" number,
"forced fumbles" number,
"fumble recoveries" number,
"fumble return yards" number,
"interceptions" number,
"interception return yards" number,
"yards per interception return" number,
"longest interception return" number,
"interceptions returned for touchdown" number,
"passes defended" number
) |
SELECT home_team AS score FROM table_name_45 WHERE home_team = "south melbourne" | What was South Melbourne's score as the home team? | CREATE TABLE table_name_45 (home_team VARCHAR) |
SELECT stellar_age__myr_ FROM table_2296507_1 WHERE stellar_classification = "F3V" | Name the stellar age for f3v | CREATE TABLE table_2296507_1 (stellar_age__myr_ VARCHAR, stellar_classification VARCHAR) |
SELECT "Tie no" FROM table_77444 WHERE "Home team" = 'stoke city' AND "Date" = '9 february 1946' | What was the Tie no when then home team was Stoke City for the game played on 9 February 1946? | CREATE TABLE table_77444 (
"Tie no" real,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) |
SELECT home_team AS score FROM table_name_4 WHERE home_team = "essendon" | How many points did the home team Essendon score? | CREATE TABLE table_name_4 (home_team VARCHAR) |
SELECT dust__or_debris__location__au_ FROM table_2296507_1 WHERE star = "HD 69830" | Name the dust for star being hd 69830 | CREATE TABLE table_2296507_1 (dust__or_debris__location__au_ VARCHAR, star VARCHAR) |
SELECT MAX("Purse( $ )") FROM table_57440 WHERE "1st Prize( $ )" = '45,000' AND "Tournament" = 'gte kaanapali classic' | What is the highest Purse ($) that has a 1st Prize ($) of 45,000 at the gte kaanapali classic tournament? | CREATE TABLE table_57440 (
"Date" text,
"Tournament" text,
"Location" text,
"Purse( $ )" real,
"Winner" text,
"Score" text,
"1st Prize( $ )" text
) |
SELECT character FROM table_name_91 WHERE episodes > 22 | What character is in over 22 episodes? | CREATE TABLE table_name_91 (character VARCHAR, episodes INTEGER) |
SELECT COUNT(name) FROM table_22977424_8 WHERE promoted_from_league = "Exeter Chiefs" | Name the number of names for exeter chiefs | CREATE TABLE table_22977424_8 (name VARCHAR, promoted_from_league VARCHAR) |
SELECT "Lost" FROM table_35280 WHERE "Played" = '22' AND "Tries against" = '88' | tries against is 88, played is 22, what is the lost? | CREATE TABLE table_35280 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text
) |
SELECT MIN(episodes) FROM table_name_35 WHERE actor = "anabel barnston" | What is the lowest number of episodes for anabel barnston? | CREATE TABLE table_name_35 (episodes INTEGER, actor VARCHAR) |
SELECT name FROM table_22977424_8 WHERE promoted_to_league = "Henley Manchester" | Name the name for henley manchester | CREATE TABLE table_22977424_8 (name VARCHAR, promoted_to_league VARCHAR) |
SELECT race_2 FROM table_name_26 WHERE race_1 = "dnf" AND race_3 = "dnf" AND track = "winton" | What Race 2 has a Race 1 of dnf, a Race 3 of dnf, and the Track Winton? | CREATE TABLE table_name_26 (
race_2 VARCHAR,
track VARCHAR,
race_1 VARCHAR,
race_3 VARCHAR
) |
SELECT character FROM table_name_51 WHERE episodes < 23 AND actor = "dani harmer" | What character is played by dani harmer for under 23 episodes? | CREATE TABLE table_name_51 (character VARCHAR, episodes VARCHAR, actor VARCHAR) |
SELECT name FROM table_22977424_8 WHERE promoted_to_league = "Doncaster Newbury" | Name the name for doncaster newbury | CREATE TABLE table_22977424_8 (name VARCHAR, promoted_to_league VARCHAR) |
SELECT SUM(rank) FROM table_name_51 WHERE province = "gīlān" AND date_of_official_foundation_of_municipality > 1922 AND 2006 > 557366 | What is the sum of Rank, when Province is G l n, when Date of Official Foundation of Municipality is after 1922, and when 2006 is greater than 557366? | CREATE TABLE table_name_51 (
rank INTEGER,
province VARCHAR,
date_of_official_foundation_of_municipality VARCHAR
) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.