answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT club FROM table_name_40 WHERE goals > 0 AND season = "2011" | What club had over 0 goals in 2011? | CREATE TABLE table_name_40 (club VARCHAR, goals VARCHAR, season VARCHAR) |
SELECT DISTINCT flight_id FROM flight WHERE airline_code = 'TW' AND flight_number = 539 | tell me about TW flight 539 | CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt 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 class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE compartment_class (
compartment varchar,
class_type 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 dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare 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 date_day (
month_number int,
day_number int,
year int,
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 food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE month (
month_number int,
month_name text
)
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 state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE fare (
fare_id int,
from_airport varchar,
to_airport varchar,
fare_basis_code text,
fare_airline text,
restriction_code text,
one_direction_cost int,
round_trip_cost int,
round_trip_required 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
) |
SELECT COUNT(rank) FROM table_26375386_16 WHERE vote_percentage = "9.5%" | How many couples had a vote percentage of 9.5%? | CREATE TABLE table_26375386_16 (rank VARCHAR, vote_percentage VARCHAR) |
SELECT team FROM table_name_27 WHERE make = "dodge" | What team drove a Dodge vehicle? | CREATE TABLE table_name_27 (team VARCHAR, make VARCHAR) |
SELECT COUNT("ecclesiastical jurisdictions") FROM table_204_10 WHERE "established" < 1978 | how many dioceses were established before 1978 ? | CREATE TABLE table_204_10 (
id number,
"ecclesiastical jurisdictions" text,
"latin name" text,
"type" text,
"rite" text,
"ecclesiastical province" text,
"established" text,
"area (km2)" number
) |
SELECT MIN(judges) FROM table_26375386_16 WHERE couple = "Danny and Frankie" | What was the lowest judge rank for danny and frankie? | CREATE TABLE table_26375386_16 (judges INTEGER, couple VARCHAR) |
SELECT pos FROM table_name_31 WHERE driver = "stacy compton" | What was Stacy Compton's position? | CREATE TABLE table_name_31 (pos VARCHAR, driver VARCHAR) |
SELECT "High rebounds" FROM table_9284 WHERE "Date" = 'december 30' | Who had the highest rebounds on December 30? | CREATE TABLE table_9284 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) |
SELECT couple FROM table_26375386_16 WHERE total = 8 | What couple had a total of 8? | CREATE TABLE table_26375386_16 (couple VARCHAR, total VARCHAR) |
SELECT AVG(pos) FROM table_name_82 WHERE car__number = 59 | What was the average position of car number 59? | CREATE TABLE table_name_82 (pos INTEGER, car__number VARCHAR) |
SELECT "Circuit" FROM table_27535 WHERE "Date" = '13 July' | Name the circuit for 13 july | CREATE TABLE table_27535 (
"Round" text,
"Circuit" text,
"Date" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning driver" text,
"Winning team" text
) |
SELECT COUNT(change_in_population_since_1993) FROM table_2637317_1 WHERE _percentage_of_countrys_population = "4.2" | What is the change in population since 1993 in the region where the % of country's population was 4.2? | CREATE TABLE table_2637317_1 (change_in_population_since_1993 VARCHAR, _percentage_of_countrys_population VARCHAR) |
SELECT loss FROM table_name_51 WHERE date = "april 25" | How much was the loss of April 25? | CREATE TABLE table_name_51 (loss VARCHAR, date VARCHAR) |
SELECT gender, AVG(age) FROM Person GROUP BY gender ORDER BY AVG(age) DESC | Return a bar chart on what is the average age for each gender?, I want to list by the mean age in descending. | CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
) |
SELECT broadcast_area FROM table_2638104_1 WHERE channel = 1 | What is the broadcast are for channel 1? | CREATE TABLE table_2638104_1 (broadcast_area VARCHAR, channel VARCHAR) |
SELECT AVG(total) FROM table_name_76 WHERE bronze < 8 AND silver = 3 AND rank < 2 | What is the average total with less than 8 bronze, 3 silver, and a Rank smaller than 2? | CREATE TABLE table_name_76 (total INTEGER, rank VARCHAR, bronze VARCHAR, silver VARCHAR) |
SELECT "song" FROM table_204_697 WHERE id = (SELECT id FROM table_204_697 WHERE "song" = '"georgia on my mind"') - 1 | which song is previous to georgia on my mind | CREATE TABLE table_204_697 (
id number,
"song" text,
"artist(s)" text,
"concert" number,
"film" number,
"1978 album" number,
"2002 album" number
) |
SELECT callsign FROM table_2638104_1 WHERE channel = 6 | What is the call sign for channel 6? | CREATE TABLE table_2638104_1 (callsign VARCHAR, channel VARCHAR) |
SELECT AVG(total) FROM table_name_3 WHERE rank > 1 AND bronze > 8 | What is the average Total with a Rank greater than 1, and a Bronze larger than 8? | CREATE TABLE table_name_3 (total INTEGER, rank VARCHAR, bronze VARCHAR) |
SELECT "notes" FROM table_204_888 WHERE id = (SELECT id FROM table_204_888 WHERE "notes" = 'former md 453') - 1 | what note is before former md 453 ? | CREATE TABLE table_204_888 (
id number,
"location" text,
"mile" number,
"destinations" text,
"notes" text
) |
SELECT COUNT(channel) FROM table_2638104_1 WHERE broadcast_area = "Greater Tokyo" | How many channels are there in the Greater Tokyo area? | CREATE TABLE table_2638104_1 (channel VARCHAR, broadcast_area VARCHAR) |
SELECT MIN(silver) FROM table_name_7 WHERE nation = "vietnam" | What is the smallest silver from Vietnam? | CREATE TABLE table_name_7 (silver INTEGER, nation VARCHAR) |
SELECT t2.state_province_county, COUNT(*) FROM customer_addresses AS t1 JOIN addresses AS t2 ON t1.address_id = t2.address_id GROUP BY t2.state_province_county | List the state names and the number of customers living in each state. | CREATE TABLE products (
product_id number,
product_name text,
product_price number,
product_description text
)
CREATE TABLE order_deliveries (
location_code text,
actual_order_id number,
delivery_status_code text,
driver_employee_id number,
truck_id number,
delivery_date time
)
CREATE TABLE customers (
customer_id number,
payment_method text,
customer_name text,
customer_phone text,
customer_email text,
date_became_customer time
)
CREATE TABLE actual_orders (
actual_order_id number,
order_status_code text,
regular_order_id number,
actual_order_date time
)
CREATE TABLE actual_order_products (
actual_order_id number,
product_id number
)
CREATE TABLE trucks (
truck_id number,
truck_licence_number text,
truck_details text
)
CREATE TABLE delivery_route_locations (
location_code text,
route_id number,
location_address_id number,
location_name text
)
CREATE TABLE addresses (
address_id number,
address_details text,
city text,
zip_postcode text,
state_province_county text,
country text
)
CREATE TABLE delivery_routes (
route_id number,
route_name text,
other_route_details text
)
CREATE TABLE employees (
employee_id number,
employee_address_id number,
employee_name text,
employee_phone text
)
CREATE TABLE regular_order_products (
regular_order_id number,
product_id number
)
CREATE TABLE customer_addresses (
customer_id number,
address_id number,
date_from time,
address_type text,
date_to time
)
CREATE TABLE regular_orders (
regular_order_id number,
distributer_id number
) |
SELECT signal_power FROM table_2638104_1 WHERE callsign = "JOAB-DTV" | What is the signal power for JOAB-DTV? | CREATE TABLE table_2638104_1 (signal_power VARCHAR, callsign VARCHAR) |
SELECT MAX(silver) FROM table_name_34 WHERE nation = "malaysia" AND total < 23 | What is the largest silver from Malaysia with a Total smaller than 23? | CREATE TABLE table_name_34 (silver INTEGER, nation VARCHAR, total VARCHAR) |
SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 90663 AND admissions.dischtime IS NULL) | have there been any microbiology tests for patient 90663 on their current hospital visit? | CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
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 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 d_labitems (
row_id number,
itemid number,
label text
)
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 chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
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 microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
) |
SELECT COUNT(rank) FROM table_26375386_20 WHERE vote_percentage = "10.7%" | How many times is the voting percentage 10.7% | CREATE TABLE table_26375386_20 (rank VARCHAR, vote_percentage VARCHAR) |
SELECT MAX(bronze) FROM table_name_86 WHERE rank = 2 AND gold < 8 | What is the largest bronze with a Rank of 2, and a Gold smaller than 8? | CREATE TABLE table_name_86 (bronze INTEGER, rank VARCHAR, gold VARCHAR) |
SELECT "Country" FROM table_45660 WHERE "Stolen Ends" > '7' AND "Skip" = 'david murdoch' | Name the Country which has Stolen Ends larger than 7, and a Skip of david murdoch? | CREATE TABLE table_45660 (
"Country" text,
"Skip" text,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real,
"Shot %" real
) |
SELECT vote_percentage FROM table_26375386_20 WHERE couple = "Gary and Maria" | What is the vote percentage for the couple gary and maria? | CREATE TABLE table_26375386_20 (vote_percentage VARCHAR, couple VARCHAR) |
SELECT COUNT(rank) FROM table_name_1 WHERE bronze < 8 AND total < 7 AND gold < 1 | How many ranks have a Bronze smaller than 8, and a Total smaller than 7, and a Gold smaller than 1? | CREATE TABLE table_name_1 (rank VARCHAR, gold VARCHAR, bronze VARCHAR, total VARCHAR) |
SELECT population_in_millions FROM table_name_73 WHERE gdp_2012_millions_of_euro = "600,638" | What is Population in Millions, when GDP 2012 Millions of Euro is 600,638? | CREATE TABLE table_name_73 (
population_in_millions VARCHAR,
gdp_2012_millions_of_euro VARCHAR
) |
SELECT couple FROM table_26375386_20 WHERE vote_percentage = "5.8%" | what couple had a vote percentage of 5.8%? | CREATE TABLE table_26375386_20 (couple VARCHAR, vote_percentage VARCHAR) |
SELECT capital FROM table_name_75 WHERE voivodeship_or_city = "nowogródzkie" | Voivodeship or city of nowogródzkie has what capital? | CREATE TABLE table_name_75 (capital VARCHAR, voivodeship_or_city VARCHAR) |
SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'umbilical vein cath') AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')) AS t1 JOIN (SELECT admissions.subject_id, diagnoses_icd.icd9_code, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE DATETIME(diagnoses_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND DATETIME(t1.charttime, 'start of month') = DATETIME(t2.charttime, 'start of month') GROUP BY t2.icd9_code) AS t3 WHERE t3.c1 <= 5) | during this year, what are the top five most frequent diagnoses that patients were diagnosed in the same month after receiving umbilical vein cath. | CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
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_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
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 labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
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 d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
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 diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
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
) |
SELECT public FROM table_26375386_20 WHERE vote_percentage = "16.0%" | What is the public when the vote percentage is 16.0% | CREATE TABLE table_26375386_20 (public VARCHAR, vote_percentage VARCHAR) |
SELECT area__1930__in_1, 000 AS skm_2 FROM table_name_72 WHERE capital = "brześć nad bugiem" | Capital of brześć nad bugiem has what area (1930) in 1000skm? | CREATE TABLE table_name_72 (area__1930__in_1 VARCHAR, capital VARCHAR) |
SELECT COUNT("Incarceration rate Total") FROM table_27320 WHERE "Prison inmates Women" = '153' | How many regions had 153 women prison inmates? | CREATE TABLE table_27320 (
"Region" text,
"Prison inmates Men" real,
"Prison inmates Women" real,
"Prison inmates Total" real,
"Incarceration rate Male" real,
"Incarceration rate Female" real,
"Incarceration rate Total" real,
"Country comparison" text
) |
SELECT MIN(judges) FROM table_26375386_20 WHERE result = "Safe" AND vote_percentage = "10.7%" | How many judges were there when the result is safe with a vote percentage of 10.7%? | CREATE TABLE table_26375386_20 (judges INTEGER, result VARCHAR, vote_percentage VARCHAR) |
SELECT population__1931__in_1, 000 AS s FROM table_name_88 WHERE capital = "brześć nad bugiem" | Capital of brześć nad bugiem has what population (1931) in 1,000s? | CREATE TABLE table_name_88 (population__1931__in_1 VARCHAR, capital VARCHAR) |
SELECT "Population est. (2012)" FROM table_14518 WHERE "Capital" = 'santa fe' | What is the 2012 population for the state whose capital is Santa Fe? | CREATE TABLE table_14518 (
"State" text,
"Abbr." text,
"Capital" text,
"Largest city" text,
"Statehood" text,
"Population est. (2012)" real,
"House seat(s)" real
) |
SELECT COUNT(total) FROM table_26375386_20 WHERE vote_percentage = "15.0%" | How many times was the vote percentage 15.0%? | CREATE TABLE table_26375386_20 (total VARCHAR, vote_percentage VARCHAR) |
SELECT poles FROM table_name_94 WHERE wins > 0 AND podiums < 17 AND fastest_laps = 0 | Which Poles has a Wins larger than 0, and a Podiums smaller than 17? | CREATE TABLE table_name_94 (poles VARCHAR, fastest_laps VARCHAR, wins VARCHAR, podiums VARCHAR) |
SELECT opponent FROM table_name_53 WHERE record = "1-1-0" | Who is the opponent of the team with a 1-1-0 record? | CREATE TABLE table_name_53 (
opponent VARCHAR,
record VARCHAR
) |
SELECT MIN(place) FROM table_26375386_28 WHERE couple = "Keiron & Brianne" | What is the least place when the couple is Keiron & Brianne? | CREATE TABLE table_26375386_28 (place INTEGER, couple VARCHAR) |
SELECT MAX(poles) FROM table_name_74 WHERE fastest_laps = 0 AND races = 17 AND wins > 0 AND podiums < 2 | which Poles has a Fastest Laps of 0, and a Races of 17, and a Wins larger than 0, and a Podiums smaller than 2? | CREATE TABLE table_name_74 (poles INTEGER, podiums VARCHAR, wins VARCHAR, fastest_laps VARCHAR, races VARCHAR) |
SELECT COUNT(*) FROM dependent WHERE sex = 'F' | how many female dependents are there? | CREATE TABLE dependent (
sex VARCHAR
) |
SELECT COUNT(number_of_dances) FROM table_26375386_28 WHERE place = 1 | How many numbers of dances for place 1? | CREATE TABLE table_26375386_28 (number_of_dances VARCHAR, place VARCHAR) |
SELECT SUM(fastest_laps) FROM table_name_81 WHERE poles = 4 AND races > 178 | How many Fastest Laps have Poles of 4, and Races larger than 178? | CREATE TABLE table_name_81 (fastest_laps INTEGER, poles VARCHAR, races VARCHAR) |
SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '032-9230')) AND medication.drugname = 'dulcolax' AND DATETIME(medication.drugstarttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') | was the dulcolax prescribed to patient 032-9230 this month? | CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
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 treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime 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 diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
) |
SELECT COUNT(rank_by_average) FROM table_26375386_28 WHERE couple = "Keiron & Brianne" | How many ranks by average when Keiron & Brianne are the couple? | CREATE TABLE table_26375386_28 (rank_by_average VARCHAR, couple VARCHAR) |
SELECT MAX(fastest_laps) FROM table_name_65 WHERE season = "2009" AND poles < 0 | Which the Fastest Lap has a Season of 2009 and Poles smaller than 0? | CREATE TABLE table_name_65 (fastest_laps INTEGER, season VARCHAR, poles VARCHAR) |
SELECT episode FROM table_20522228_2 WHERE share = 8 | What was the episode name when share was 8? | CREATE TABLE table_20522228_2 (
episode VARCHAR,
share VARCHAR
) |
SELECT average FROM table_26375386_28 WHERE number_of_dances = 1 | What is every average when number of dances is 1? | CREATE TABLE table_26375386_28 (average VARCHAR, number_of_dances VARCHAR) |
SELECT AVG(fastest_laps) FROM table_name_8 WHERE poles = 0 AND season = "2002" AND podiums < 0 | Which the Fastest Laps that have Poles of 0, and a Season of 2002, and a Podiums smaller than 0? | CREATE TABLE table_name_8 (fastest_laps INTEGER, podiums VARCHAR, poles VARCHAR, season VARCHAR) |
SELECT HIRE_DATE, AVG(DEPARTMENT_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY AVG(DEPARTMENT_ID) | For those employees who do not work in departments with managers that have ids between 100 and 200, visualize a bar chart about the distribution of hire_date and the average of department_id bin hire_date by time, I want to sort Y in ascending order. | 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 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 regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
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 countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
) |
SELECT COUNT(rank_by_average) FROM table_26375386_28 WHERE couple = "Tana and Stuart" | How many ranks by average for the couple Tana and Stuart? | CREATE TABLE table_26375386_28 (rank_by_average VARCHAR, couple VARCHAR) |
SELECT variant FROM table_name_68 WHERE launch_site = "white sands" | What Variant has a Launch site that is white sands? | CREATE TABLE table_name_68 (variant VARCHAR, launch_site VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "11" AND lab.fluid = "Cerebrospinal Fluid (CSF)" | give me the number of patients whose days of hospital stay is greater than 11 and lab test fluid is cerebrospinal fluid (csf)? | 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 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) |
SELECT rank FROM table_26375386_22 WHERE couple = "Mikey and Melanie" | Name the rank for mikey and melanie | CREATE TABLE table_26375386_22 (rank VARCHAR, couple VARCHAR) |
SELECT score FROM table_name_85 WHERE year = 1990 | what was the score in 1990 | CREATE TABLE table_name_85 (score VARCHAR, year VARCHAR) |
SELECT outputevents.charttime FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 3267) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime LIMIT 1) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'urine out foley' AND d_items.linksto = 'outputevents') ORDER BY outputevents.charttime LIMIT 1 | on the first icu visit, when did patient 3267 have the first urine out foley output? | CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
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 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 chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
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 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 procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
) |
SELECT public FROM table_26375386_22 WHERE couple = "Mikey and Melanie" | Name the public for mikey and melanie | CREATE TABLE table_26375386_22 (public VARCHAR, couple VARCHAR) |
SELECT AVG(rank) FROM table_name_40 WHERE year = 1950 | In 1950 what is the average rank? | CREATE TABLE table_name_40 (rank INTEGER, year VARCHAR) |
SELECT "nationality" FROM table_204_301 GROUP BY "nationality" ORDER BY COUNT("name") DESC LIMIT 1 | which country had the most deputy judges ? | CREATE TABLE table_204_301 (
id number,
"nationality" text,
"name" text,
"term as a deputy judge" text,
"reason for termination" text
) |
SELECT judges FROM table_26375386_22 WHERE public = 4 | Name the judges for 4 public | CREATE TABLE table_26375386_22 (judges VARCHAR, public VARCHAR) |
SELECT name FROM table_name_47 WHERE rank < 6 AND height_feet___m = "617 / 188" | What is the building's name that is 617 / 188 in height and ranked less than 6? | CREATE TABLE table_name_47 (name VARCHAR, rank VARCHAR, height_feet___m VARCHAR) |
SELECT "Date" FROM table_48128 WHERE "Away team" = 'carlisle united' | What date was the match against carlisle united? | CREATE TABLE table_48128 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) |
SELECT COUNT(total) FROM table_26375386_22 WHERE public = 3 | Name the total number for 3 public | CREATE TABLE table_26375386_22 (total VARCHAR, public VARCHAR) |
SELECT COUNT(round) FROM table_name_1 WHERE time = "6:21" | What is the number of rounds that took place for the fight that lasted 6:21? | CREATE TABLE table_name_1 (round VARCHAR, time VARCHAR) |
SELECT "title" FROM table_203_224 WHERE "year" = 2010 ORDER BY id DESC LIMIT 1 | what was the title of the last television appearance she had in 2010 ? | CREATE TABLE table_203_224 (
id number,
"title" text,
"year" number,
"channel" text,
"role" text,
"notes" text
) |
SELECT COUNT(director) FROM table_26385848_1 WHERE film_title = "Eldra" | What is the number of directors for the film title Eldra? | CREATE TABLE table_26385848_1 (director VARCHAR, film_title VARCHAR) |
SELECT AVG(year_of_most_recent_appearance) FROM table_name_27 WHERE year_of_first_appearance > 1976 AND corps_name = "boston crusaders" | What is the average year of the most recent appearance of the Boston Crusaders, who had their first appearance after 1976? | CREATE TABLE table_name_27 (year_of_most_recent_appearance INTEGER, year_of_first_appearance VARCHAR, corps_name VARCHAR) |
SELECT "Sodium" FROM table_70784 WHERE "Rubidium" = 'nacl (2.1)' | what is the properties of sodium when rubidium is nacl (2.1)? | CREATE TABLE table_70784 (
"Lithium" text,
"Sodium" text,
"Potassium" text,
"Rubidium" text,
"Caesium" text
) |
SELECT year__ceremony_ FROM table_26385848_1 WHERE film_title = "Eldra" | What is the year (ceremony) for the film title Eldra? | CREATE TABLE table_26385848_1 (year__ceremony_ VARCHAR, film_title VARCHAR) |
SELECT COUNT(year_of_most_recent_appearance) FROM table_name_95 WHERE corps_name = "suncoast sound" AND number_of_finals_appearances > 7 | What is the year of most recent appearance of the Suncoast sound, who had more than 7 finals appearances? | CREATE TABLE table_name_95 (year_of_most_recent_appearance VARCHAR, corps_name VARCHAR, number_of_finals_appearances VARCHAR) |
SELECT prescriptions.formulary_drug_cd, prescriptions.drug_dose FROM prescriptions WHERE prescriptions.drug = "Lidocaine Viscous 2%" | what is the drug code and drug dose of drug name lidocaine viscous 2%? | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) |
SELECT director FROM table_26385848_1 WHERE film_title = "Eldra" | Who is the director for the film title Eldra? | CREATE TABLE table_26385848_1 (director VARCHAR, film_title VARCHAR) |
SELECT COUNT(year_of_first_appearance) FROM table_name_38 WHERE corps_name = "black knights" AND number_of_finals_appearances < 1 | What is the year of the first appearance of the Black Knights, who had less than 1 finals appearances? | CREATE TABLE table_name_38 (year_of_first_appearance VARCHAR, corps_name VARCHAR, number_of_finals_appearances VARCHAR) |
SELECT MAX(year) FROM table_name_58 WHERE team = "walker racing" AND wins > 1 | Which Year is the highest that has a Team of walker racing, and Wins larger than 1? | CREATE TABLE table_name_58 (
year INTEGER,
team VARCHAR,
wins VARCHAR
) |
SELECT main_language_s_ FROM table_26385848_1 WHERE year__ceremony_ = "1998 (71st)" | In the year (ceremony) 1998 (71st), what are all the main languages? | CREATE TABLE table_26385848_1 (main_language_s_ VARCHAR, year__ceremony_ VARCHAR) |
SELECT COUNT(pick__number) FROM table_name_37 WHERE college = "west virginia" AND overall < 203 | What is the Pick # of the player with an Overall less than 203 from West Virginia? | CREATE TABLE table_name_37 (pick__number VARCHAR, college VARCHAR, overall 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, food_service WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'OAKLAND' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code AND food_service.meal_code = flight.meal_code AND food_service.meal_description = 'DINNER') AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BALTIMORE' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code | show me the DINNER flights from BALTIMORE to OAKLAND | 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 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 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 month (
month_number int,
month_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 equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
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 code_description (
code varchar,
description text
)
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 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 ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE flight_fare (
flight_id int,
fare_id 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 flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description 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
)
CREATE TABLE compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
) |
SELECT director FROM table_26385848_1 WHERE year__ceremony_ = "2009 (82nd)" | In the year (ceremony) 2009 (82nd), who are all the directors? | CREATE TABLE table_26385848_1 (director VARCHAR, year__ceremony_ VARCHAR) |
SELECT AVG(round) FROM table_name_93 WHERE college = "florida" AND overall < 166 | In what Round was the draft pick from Florida with an Overall less than 166? | CREATE TABLE table_name_93 (round INTEGER, college VARCHAR, overall VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" AND diagnoses.long_title = "Unspecified erythematous condition" | count the number of patients whose ethnicity is american indian/alaska native and diagnoses long title is unspecified erythematous condition? | 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 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 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
) |
SELECT film_title FROM table_26385848_1 WHERE year__ceremony_ = "1995 (68th)" | In the year (ceremony) 1995 (68th), what is the film title? | CREATE TABLE table_26385848_1 (film_title VARCHAR, year__ceremony_ VARCHAR) |
SELECT MAX(silver) FROM table_name_38 WHERE bronze = 1 AND gold < 4 | What is the highest number of silver when there is 1 bronze and less than 4 golds? | CREATE TABLE table_name_38 (silver INTEGER, bronze VARCHAR, gold VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "HYPERGLYCEMIA" AND demographic.dob_year < "2167" | how many patients born before the year 2167 were primarily diagnosed for hyperglycemia? | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) |
SELECT primary_user FROM table_26389588_1 WHERE country_of_origin = "South Africa" | If the country of Origin is South Africa, who is the primary user? | CREATE TABLE table_26389588_1 (primary_user VARCHAR, country_of_origin VARCHAR) |
SELECT bronze FROM table_name_69 WHERE silver < 3 AND total = 7 | How many bronze medals are there when there are fewer than 3 silver medals and 7 medals total? | CREATE TABLE table_name_69 (bronze VARCHAR, silver VARCHAR, total VARCHAR) |
SELECT agg FROM table_name_49 WHERE opponent = "koper" | What was the aggregate total for the match against Koper? | CREATE TABLE table_name_49 (
agg VARCHAR,
opponent VARCHAR
) |
SELECT primary_cartridge FROM table_26389588_1 WHERE year_of_introduction = "1962" AND country_of_origin = "Denmark" | If the Country of Origin is Denmark and the year of introduction is 1962, what is the primary cartridge? | CREATE TABLE table_26389588_1 (primary_cartridge VARCHAR, year_of_introduction VARCHAR, country_of_origin VARCHAR) |
SELECT team FROM table_name_73 WHERE rank = 3 | What team has rank 3? | CREATE TABLE table_name_73 (team VARCHAR, rank VARCHAR) |
SELECT COUNT(population__2011_) FROM table_name_49 WHERE population__2006_ = 120 | What is the total number of people in 2011 speaking the mother tongue language spoken by 120 in 2006? | CREATE TABLE table_name_49 (
population__2011_ VARCHAR,
population__2006_ VARCHAR
) |
SELECT COUNT(year_of_introduction) FROM table_26389588_1 WHERE name___designation = "CETME" | How many different years was the name/designation cetme? | CREATE TABLE table_26389588_1 (year_of_introduction VARCHAR, name___designation VARCHAR) |
SELECT playing_for FROM table_name_27 WHERE _number_100 > 36 AND score = "122" | Which Playing For has a # 100 larger than 36, and a Score of 122? | CREATE TABLE table_name_27 (playing_for VARCHAR, _number_100 VARCHAR, score VARCHAR) |
SELECT * FROM Posts LIMIT 10000 | SELECT TOP 100 FROM Posts. | CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDate time,
ApprovalModeratorId number,
DeactivationDate time,
DeactivationModeratorId number
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE PostTypes (
Id number,
Name text
) |
SELECT name___designation FROM table_26389588_1 WHERE country_of_origin = "Switzerland" | If the country of origin is switzerland, what is the name/ designation? | CREATE TABLE table_26389588_1 (name___designation VARCHAR, country_of_origin VARCHAR) |
SELECT MAX(_number_100) FROM table_name_87 WHERE season = "1991" AND against = "surrey" | Which # 100 has a Season of 1991, and an Against of surrey? | CREATE TABLE table_name_87 (_number_100 INTEGER, season VARCHAR, against VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.