text stringlengths 197 8.39k |
|---|
### Context: CREATE TABLE table_name_42 (
finish VARCHAR,
year INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Give the Finish for years after 2007.
### Query: SELECT finish FROM table_name_42 WHERE year > 2007 |
### Context: CREATE TABLE table_name_38 (
date VARCHAR,
week VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the game after week 6 with the New York Jets as the opponent?
### Query: SELECT date FROM table_name_38 WH... |
### Context: CREATE TABLE table_39801 (
"Name" text,
"Status" text,
"Authors" text,
"Unit" text,
"Location" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What unit is located in China and has Zhou Zhang as an author?
### Query: S... |
### Context: CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE city (
city_co... |
### Context: CREATE TABLE table_78229 (
"Peak" text,
"Height (m)" real,
"Prom. (m)" real,
"Class" text,
"Parent" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Class is Peak Sail when it has a Prom larger than 30?
### Query: SELECT "Class" FR... |
### Context: 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
)
C... |
### Context: CREATE TABLE table_34654 (
"Number of Decks" real,
"Non-Suited Match" text,
"Double Non-Suited Match" text,
"Suited Match" text,
"Suited + Non-Suited Match" text,
"Double Suited Match" text,
"House Edge" text
)
-- Using valid SQLite, answer the following questions for the tabl... |
### Context: CREATE TABLE gyb (
CLINIC_ID text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
INSU_TYPE... |
### Context: CREATE TABLE table_13214 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Gold has a Total of 721?
### Query: SELECT AVG("Gold") FROM table_13214 ... |
### Context: CREATE TABLE table_26828 (
"Branding" text,
"Callsign" text,
"Frequency" text,
"Power kW" text,
"Coverage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when coverage is dumaguete central visayas region, what is the callsign?
### Quer... |
### Context: CREATE TABLE table_17288825_6 (
date VARCHAR,
high_assists VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When aaron brooks (6) had the highest amount of assists what is the date?
### Query: SELECT date FROM table_17288825_6 WHERE high_assists ... |
### Context: 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 cost (
... |
### Context: CREATE TABLE t_kc22 (
AMOUNT number,
CHA_ITEM_LEV number,
DATA_ID text,
DIRE_TYPE number,
DOSE_FORM text,
DOSE_UNIT text,
EACH_DOSAGE text,
EXP_OCC_DATE time,
FLX_MED_ORG_ID text,
FXBZ number,
HOSP_DOC_CD text,
HOSP_DOC_NM text,
MED_DIRE_CD text,
MED_... |
### Context: CREATE TABLE Reservations (
Kids VARCHAR,
LastName VARCHAR,
CheckIn VARCHAR,
FirstName VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many kids stay in the room DAMIEN TRACHSEL checked in on Sep 21, 2010?
### Query: SELECT Kids FROM... |
### Context: CREATE TABLE gwyjzb (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURE... |
### Context: CREATE TABLE procedures (
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,
rel... |
### Context: CREATE TABLE table_204_885 (
id number,
"season" text,
"competition" text,
"round" text,
"opponent" text,
"home" text,
"away" text,
"agg." text,
"bye" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- name the competition t... |
### Context: CREATE TABLE table_name_42 (
points VARCHAR,
played INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of points when the played is less than 30?
### Query: SELECT COUNT(points) FROM table_name_42 WHERE played < 30 |
### Context: CREATE TABLE t_kc22 (
MED_EXP_DET_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
MED_EXP_BILL_ID text,
SOC_SRT_DIRE_CD text,
SOC_SRT_DIRE_NM text,
DIRE_TYPE number,
CHA_ITEM_LEV number,
MED_INV_ITEM_TYPE text,
MED_DIRE_CD text,
MED_... |
### Context: 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 cost (
... |
### Context: CREATE TABLE table_name_51 (
score VARCHAR,
competition VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- A competition of test taking place on 23 Apr 1988 had what as a score?
### Query: SELECT score FROM table_name_51 WHERE com... |
### Context: 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
)
-- Using valid SQLite, answer the following ques... |
### Context: CREATE TABLE table_train_269 (
"id" int,
"pregnancy_or_lactation" bool,
"hemoglobin_a1c_hba1c" float,
"diabetic" string,
"hba1c" float,
"prisoners" bool,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- p... |
### Context: CREATE TABLE table_14562722_2 (
episodes INTEGER,
region_4 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most epiosdes when region 4 is march 13, 2008
### Query: SELECT MAX(episodes) FROM table_14562722_2 WHERE region_4 = "March 13, 2... |
### Context: CREATE TABLE table_name_9 (
injured VARCHAR,
location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the injured that has skierlik as the location?
### Query: SELECT injured FROM table_name_9 WHERE location = "skierlik" |
### Context: CREATE TABLE stock (
shop_id number,
device_id number,
quantity number
)
CREATE TABLE shop (
shop_id number,
shop_name text,
location text,
open_date text,
open_year number
)
CREATE TABLE device (
device_id number,
device text,
carrier text,
package_version... |
### Context: CREATE TABLE table_48922 (
"Model Number" text,
"Clock Speed" text,
"L2 Cache" text,
"FSB Speed" text,
"Voltage Range" text,
"Socket" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the L2 Cache which has a Clock Speed of 1.5 gh... |
### Context: 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 (
aircraft_code_sequence text,
airline_code varchar,
... |
### Context: 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_ti... |
### Context: CREATE TABLE table_5595 (
"Date Released" text,
"Institute" text,
"Socialist" text,
"Social Democratic" text,
"Green-Communist" text,
"Left Bloc" text,
"People's Party" text,
"Lead" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.... |
### Context: CREATE TABLE table_name_6 (
away_team VARCHAR,
home_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the away team score when Home team is fitzroy?
### Query: SELECT away_team AS score FROM table_name_6 WHERE home_team = "fitzroy" |
### Context: CREATE TABLE table_57489 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Richmond's score as the ho... |
### Context: CREATE TABLE Faculty_Participates_in (
FacID INTEGER,
actid INTEGER
)
CREATE TABLE Participates_in (
stuid INTEGER,
actid INTEGER
)
CREATE TABLE Activity (
actid INTEGER,
activity_name varchar(25)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHA... |
### Context: CREATE TABLE table_name_13 (
ccbs INTEGER,
payload_to_gto VARCHAR,
upper_stage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the greatest CCBs with a Payload to GTO of , and an Upper stage of sec?
### Query: SELECT MAX(ccbs) FROM t... |
### Context: CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE locations ... |
### Context: CREATE TABLE table_name_2 (
total_region INTEGER,
year VARCHAR,
nebo VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Total Regions that have the Year 1954, and a Nebo greater than 447?
### Query: SELECT SUM(total_region) F... |
### Context: CREATE TABLE table_18989 (
"Country/Region" text,
"Local title" text,
"Television network" text,
"Seasons and winners" text,
"Judges" text,
"Presenters" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many local title with televb... |
### Context: CREATE TABLE t_kc24 (
MED_SAFE_PAY_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
REF_SLT_FLG number,
CLINIC_SLT_DATE time,
COMP_ID text,
PERSON_ID text,
FLX_MED_ORG_ID text,
INSU_TYPE text,
MED_AMOUT number,
PER_ACC_PAY number,
... |
### Context: CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text,
RYBH text
)
CREATE TABLE mzjzjlb (
YLJGDM text,
JZLSH text,
KH text,
KLX number,
MJZH text,
HZXM text,
NLS number,
NLY number,
ZSEBZ number,
JZZTDM number,
JZZTMC text,
JZJSSJ time,
... |
### Context: CREATE TABLE table_name_73 (
screen_size__inch_ VARCHAR,
intro_year VARCHAR,
model VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the size of the screen that came out in 2006 and is iliad
### Query: SELECT screen_size__inch_ FROM table... |
### Context: CREATE TABLE table_18840 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
)
-- Using valid SQLite, ans... |
### Context: CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM... |
### Context: CREATE TABLE table_77509 (
"D 49" text,
"D 48" text,
"D 47" text,
"D 46" text,
"D 45" text,
"D 44" text,
"D 43" text,
"D 42" text,
"D 41" text,
"D 40" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want the D 46 fo... |
### Context: CREATE TABLE table_28522 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" text,
"Left" text,
"Nickname" text,
"Primary Conference when joining the MSFA" text,
"Current Primary Conference" text
)
-- Using valid SQLite, ... |
### Context: CREATE TABLE table_203_634 (
id number,
"date" text,
"venue" text,
"score" text,
"victor" text,
"comments" text,
"match reports" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what year was the first union match between new zeal... |
### Context: CREATE TABLE table_2534 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the final score of Wimbledon (2/2).
... |
### Context: CREATE TABLE table_203_794 (
id number,
"year" number,
"location" text,
"attendance" number,
"theme phrase" text,
"top messages" text,
"host" text,
"opening general session guest(s)" text,
"closing general session guest(s)" text,
"sunday night reception" text,
"w... |
### Context: CREATE TABLE participates_in (
stuid number,
actid number
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE activity (
actid number,
activity_name text
)
CREATE ... |
### Context: CREATE TABLE festival_detail (
festival_id number,
festival_name text,
chair_name text,
location text,
year number,
num_of_audience number
)
CREATE TABLE artwork (
artwork_id number,
type text,
name text
)
CREATE TABLE nomination (
artwork_id number,
festival_i... |
### Context: CREATE TABLE table_16799784_3 (
diameter__km_ VARCHAR,
latitude VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- At a latitude of 67.5n, what is the diameter?
### Query: SELECT diameter__km_ FROM table_16799784_3 WHERE latitude = "67.5N" |
### Context: CREATE TABLE table_21302_1 (
no_of_villages VARCHAR,
density_persons___ha VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many villages have a density persons/ha of 5.5?
### Query: SELECT COUNT(no_of_villages) FROM table_21302_1 WHERE densit... |
### Context: CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)... |
### Context: CREATE TABLE happy_hour (
MONTH VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which months have more than 2 happy hours?
### Query: SELECT MONTH FROM happy_hour GROUP BY MONTH HAVING COUNT(*) > 2 |
### Context: CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQ... |
### Context: CREATE TABLE wdmzjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH number,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC tex... |
### Context: CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
... |
### Context: CREATE TABLE table_20722805_1 (
obama_number INTEGER,
obama_percentage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many votes did Obama have at 32.12%
### Query: SELECT MIN(obama_number) FROM table_20722805_1 WHERE obama_percentage = "32... |
### Context: CREATE TABLE table_18161 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Results" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Incumbent Tim Holden belonged to what party?
### Query: S... |
### Context: CREATE TABLE table_name_22 (
junior_marquee_player VARCHAR,
captain VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Junior Marquee team is Harry Kewell of?
### Query: SELECT junior_marquee_player FROM table_name_22 WHERE captain = "harry ke... |
### Context: CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title 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... |
### Context: CREATE TABLE table_1198175_1 (
drafted VARCHAR,
pro_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is under drafted when pro team is arizona cardinals?
### Query: SELECT drafted FROM table_1198175_1 WHERE pro_team = "Arizona Cardinals... |
### Context: CREATE TABLE table_48598 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the record when matt grice fo... |
### Context: CREATE TABLE table_57178 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the record on july 24?
### Query: SELECT "Record" FROM table_57... |
### Context: CREATE TABLE table_name_50 (
authority VARCHAR,
scientic_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the authority of the scientific name of O. Tricuspis?
### Query: SELECT authority FROM table_name_50 WHERE scientic_name = "o. ... |
### Context: CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE cost (
costid number,... |
### Context: CREATE TABLE table_76905 (
"Class" text,
"Wheel arrangement" text,
"Fleet number(s)" text,
"Year made" text,
"Quantity made" text,
"Quantity preserved" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the wheel arrangement mad... |
### Context: CREATE TABLE teachers (
lastname text,
firstname text,
classroom number
)
CREATE TABLE list (
lastname text,
firstname text,
grade number,
classroom number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which students in third grade... |
### Context: CREATE TABLE table_5779 (
"Call sign" text,
"Frequency" text,
"City of License" text,
"Owner" text,
"Format" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the call sign for the frequency of 0 105.7 fm?
### Query: SELECT "Call ... |
### Context: CREATE TABLE table_40684 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Cuts made has a Top-5 smaller than 3, and a T... |
### Context: CREATE TABLE table_204_915 (
id number,
"draw" number,
"artist" text,
"song" text,
"points" number,
"place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- tell me the number of artists who ended up in 6th place .
### Query: SELECT ... |
### Context: CREATE TABLE table_204_954 (
id number,
"no." number,
"country" text,
"2009 winter\nuniversiade" number,
"2007 wjcc" number,
"2007 wwcc" number,
"2008 wjcc" number,
"2008 wwcc" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tabl... |
### Context: CREATE TABLE t_kc21 (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURE... |
### Context: CREATE TABLE table_78848 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many total medals does a country with more than 1 silver medals have?
### ... |
### Context: CREATE TABLE table_79188 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In the tie where Southampton was the away team, who was the home team?
### Query: SELECT ... |
### Context: CREATE TABLE table_48227 (
"Rank" real,
"Player" text,
"Years" text,
"Games" real,
"Reb. Avg." real,
"Total Rebounds" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total of rebound averages with more than 98 games and a... |
### Context: CREATE TABLE table_16016 (
"Season" text,
"Division" text,
"League Apps" real,
"League Goals" real,
"FA Cup Apps" real,
"FA Cup Goals" real,
"Total Apps" real,
"Total Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Whe... |
### Context: CREATE TABLE gwyjzb (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURE... |
### Context: CREATE TABLE table_73825 (
"Settlement" text,
"Cyrillic Name Other Names" text,
"Type" text,
"Population (2011)" real,
"Largest ethnic group (2002)" text,
"Dominant religion (2002)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How... |
### Context: CREATE TABLE table_name_32 (
date VARCHAR,
attendance INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Date has an Attendance larger than 1,858?
### Query: SELECT date FROM table_name_32 WHERE attendance > 1 OFFSET 858 |
### Context: 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),
DEPARTMEN... |
### Context: CREATE TABLE table_name_71 (
title VARCHAR,
featuring VARCHAR,
series_sorted VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the title when the featuring is leela and series sorted is 4s/b?
### Query: SELECT title FROM table_name_71 ... |
### Context: CREATE TABLE Document_locations (
location_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the different location codes for documents?
### Query: SELECT DISTINCT location_code FROM Document_locations |
### Context: CREATE TABLE table_name_66 (
order INTEGER,
minister VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest order with a Minister that is joe hockey?
### Query: SELECT MIN(order) FROM table_name_66 WHERE minister = "joe hockey" |
### Context: 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 ... |
### Context: CREATE TABLE table_8313 (
"Years as tallest" text,
"Name" text,
"Height (m)" real,
"Height (ft)" real,
"Floors" real,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the fewest floors for the building that has a h... |
### Context: CREATE TABLE Services (
Service_ID INTEGER,
Service_Type_Code CHAR(15)
)
CREATE TABLE Participants_in_Events (
Event_ID INTEGER,
Participant_ID INTEGER
)
CREATE TABLE Events (
Event_ID INTEGER,
Service_ID INTEGER,
Event_Details VARCHAR(255)
)
CREATE TABLE Participants (
P... |
### Context: CREATE TABLE WINE (
Winery VARCHAR,
Price INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the distinct winery of wines having price between 50 and 100.
### Query: SELECT DISTINCT Winery FROM WINE WHERE Price BETWEEN 50 AND 100 |
### Context: CREATE TABLE table_204_885 (
id number,
"season" text,
"competition" text,
"round" text,
"opponent" text,
"home" text,
"away" text,
"agg." text,
"bye" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many different com... |
### Context: 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 transfers (
row_id number,
subject_id numb... |
### Context: 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
val... |
### Context: CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title 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,
... |
### Context: CREATE TABLE table_46657 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Player, when Total is '154'?
### Query: SELECT "Player" FROM table_46657 WHERE ... |
### Context: 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_t... |
### Context: 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,
admissi... |
### Context: CREATE TABLE table_name_71 (
year VARCHAR,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- COunt the Year which has a Venue of latakia , syria?
### Query: SELECT COUNT(year) FROM table_name_71 WHERE venue = "latakia , syria" |
### Context: CREATE TABLE table_204_338 (
id number,
"location" text,
"coordinates" text,
"type" text,
"built" text,
"details" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many voronezh radars were built before 2010 ?
### Query: SELECT CO... |
### Context: CREATE TABLE table_name_83 (
year INTEGER,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest year that has athens, greece as the venue?
### Query: SELECT MIN(year) FROM table_name_83 WHERE venue = "athens, greece" |
### Context: CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE diagnoses_icd (
row_i... |
### Context: CREATE TABLE table_name_70 (
date INTEGER,
catalog VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT DATE HAS A CATALOG OF 486553.4?
### Query: SELECT MAX(date) FROM table_name_70 WHERE catalog = "486553.4" |
### Context: 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 lab (
subject_id text,
hadm... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.