instruction stringlengths 0 1.06k | input stringlengths 33 7.14k | response stringlengths 2 4.44k | source stringclasses 25
values | text stringlengths 302 8.5k |
|---|---|---|---|---|
What is the status of the ship INS Ranvir? | CREATE TABLE table_59850 (
"Name" text,
"Pennant" text,
"Builder" text,
"Homeport" text,
"Commissioned" text,
"Status" text
) | SELECT "Status" FROM table_59850 WHERE "Name" = 'ins ranvir' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the status of the ship INS Ranvir? ### Input: CREATE TABLE table_59850 (
"Name" text,
"Pennant" text,
"B... |
What is the website of the school affiliated with the Church of England? | CREATE TABLE table_28523_3 (
school VARCHAR,
religious_affiliation VARCHAR
) | SELECT school AS website FROM table_28523_3 WHERE religious_affiliation = "Church of England" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the website of the school affiliated with the Church of England? ### Input: CREATE TABLE table_28523_3 (
school ... |
what's the county with code being 2 | CREATE TABLE table_19089 (
"Code" real,
"County" text,
"Former Province" text,
"Area (km 2 )" text,
"Population Census 2009" real,
"Capital" text
) | SELECT "County" FROM table_19089 WHERE "Code" = '2' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what's the county with code being 2 ### Input: CREATE TABLE table_19089 (
"Code" real,
"County" text,
"Former Pr... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, give me the comparison about the sum of salary over the job_id , and group by attribute job_id by a bar chart, list y axis in asc order please. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),... | SELECT JOB_ID, SUM(SALARY) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY SUM(SALARY) | nvbench | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not ... |
In the final against Ashley Harkleroad what was the score? | CREATE TABLE table_66202 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
) | SELECT "Score" FROM table_66202 WHERE "Opponent in the final" = 'ashley harkleroad' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: In the final against Ashley Harkleroad what was the score? ### Input: CREATE TABLE table_66202 (
"Outcome" text,
"Da... |
What is the highest number of ends lost? | CREATE TABLE table_21220 (
"Province" text,
"Skip" text,
"W" real,
"L" real,
"PF" real,
"PA" real,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real,
"Shot Pct." real
) | SELECT MAX("Ends Lost") FROM table_21220 | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the highest number of ends lost? ### Input: CREATE TABLE table_21220 (
"Province" text,
"Skip" text,
"W"... |
For those employees who did not have any job in the past, give me the comparison about the amount of hire_date over the hire_date bin hire_date by time, and I want to sort the number of hire date in desc order. | 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 jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE locations (
LOCAT... | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY COUNT(HIRE_DATE) DESC | nvbench | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: For those employees who did not have any job in the past, give me the comparison about the amount of hire_date over the hire... |
on last month/27, what is maximum value of sao2 for patient 012-4131? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime t... | SELECT MAX(vitalperiodic.sao2) FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '012-4131')) AND NOT vitalperiodic.sao2 IS NULL AND DATETI... | eicu | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: on last month/27, what is maximum value of sao2 for patient 012-4131? ### Input: CREATE TABLE medication (
medicationid ... |
What are the ids for courses that were offered in both Fall of 2009 and Spring of 2010? | CREATE TABLE teaches (
id text,
course_id text,
sec_id text,
semester text,
year number
)
CREATE TABLE time_slot (
time_slot_id text,
day text,
start_hr number,
start_min number,
end_hr number,
end_min number
)
CREATE TABLE classroom (
building text,
room_number tex... | SELECT course_id FROM section WHERE semester = 'Fall' AND year = 2009 INTERSECT SELECT course_id FROM section WHERE semester = 'Spring' AND year = 2010 | spider | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What are the ids for courses that were offered in both Fall of 2009 and Spring of 2010? ### Input: CREATE TABLE teaches (
... |
What is the democratic coalation when together we can do more is sergio castro ( pc )? | CREATE TABLE table_28761 (
"Dist." real,
"Democratic Coalition" text,
"Alliance" text,
"Together We Can Do More" text,
"Independent Regional Force" text,
"Independents" text
) | SELECT "Democratic Coalition" FROM table_28761 WHERE "Together We Can Do More" = 'Sergio Castro ( PC )' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the democratic coalation when together we can do more is sergio castro ( pc )? ### Input: CREATE TABLE table_28761 (... |
Date of sun. oct. 1 has what location? | CREATE TABLE table_name_29 (
location VARCHAR,
date VARCHAR
) | SELECT location FROM table_name_29 WHERE date = "sun. oct. 1" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Date of sun. oct. 1 has what location? ### Input: CREATE TABLE table_name_29 (
location VARCHAR,
date VARCHAR
) ### ... |
who was the winner in the first year of 1992 ? | CREATE TABLE table_204_874 (
id number,
"year" number,
"winner" text,
"runner-up" text,
"final score" text,
"third" text
) | SELECT "winner" FROM table_204_874 WHERE "year" = 1992 | squall | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: who was the winner in the first year of 1992 ? ### Input: CREATE TABLE table_204_874 (
id number,
"year" number,
... |
how many patients received mechanical ventilation during the same month after having been diagnosed with hypothyroidism, since 2105? | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE medication (
me... | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'hypothyroidism' AND STRFTIME('%y', diagnosis.diagnosistime) >= '2105') AS t1 JOIN (SELECT patient.uniquepid,... | eicu | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: how many patients received mechanical ventilation during the same month after having been diagnosed with hypothyroidism, sin... |
Which state spent the least revenue towards schools and whats the state average score | CREATE TABLE finrev_fed_key_17 (
state_code number,
state text,
#_records text
)
CREATE TABLE ndecoreexcel_math_grade8 (
year number,
state text,
all_students text,
average_scale_score number
)
CREATE TABLE finrev_fed_17 (
state_code number,
idcensus number,
school_district tex... | SELECT T2.state, T3.average_scale_score FROM finrev_fed_key_17 AS T2 JOIN finrev_fed_17 AS T1 ON T1.state_code = T2.state_code JOIN ndecoreexcel_math_grade8 AS T3 ON T2.state = T3.state GROUP BY T2.state ORDER BY SUM(T1.t_fed_rev) LIMIT 1 | studentmathscore | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which state spent the least revenue towards schools and whats the state average score ### Input: CREATE TABLE finrev_fed_key... |
How many papers are published in total? | CREATE TABLE papers (
Id VARCHAR
) | SELECT COUNT(*) FROM papers | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many papers are published in total? ### Input: CREATE TABLE papers (
Id VARCHAR
) ### Response: SELECT COUNT(*) FROM... |
What's the latest keynote version of version 2.3 of numbers with pages greater than 4.3? | CREATE TABLE table_name_18 (
keynote_version INTEGER,
numbers_version VARCHAR,
pages_version VARCHAR
) | SELECT MAX(keynote_version) FROM table_name_18 WHERE numbers_version = "2.3" AND pages_version > 4.3 | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What's the latest keynote version of version 2.3 of numbers with pages greater than 4.3? ### Input: CREATE TABLE table_name_... |
What was the Attendance when Oxford United was the Home team? | CREATE TABLE table_name_58 (
attendance INTEGER,
home_team VARCHAR
) | SELECT SUM(attendance) FROM table_name_58 WHERE home_team = "oxford united" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the Attendance when Oxford United was the Home team? ### Input: CREATE TABLE table_name_58 (
attendance INTEGER... |
what is patient 72107's length of stay in the icu for the first 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 transfers (
r... | SELECT STRFTIME('%j', icustays.outtime) - STRFTIME('%j', icustays.intime) FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 72107) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime LIMIT 1 | mimic_iii | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what is patient 72107's length of stay in the icu for the first time? ### Input: CREATE TABLE chartevents (
row_id numbe... |
What is the home team score when the home team is Collingwood? | CREATE TABLE table_12023 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team score" FROM table_12023 WHERE "Home team" = 'collingwood' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the home team score when the home team is Collingwood? ### Input: CREATE TABLE table_12023 (
"Home team" text,
... |
What is the Country when the IATA shows cju? | CREATE TABLE table_38159 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
) | SELECT "Country" FROM table_38159 WHERE "IATA" = 'cju' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the Country when the IATA shows cju? ### Input: CREATE TABLE table_38159 (
"City" text,
"Country" text,
... |
What is the name of the Chassis of Diver Maria Teresa de Filippis in round 1? | CREATE TABLE table_name_62 (
chassis VARCHAR,
rounds VARCHAR,
driver VARCHAR
) | SELECT chassis FROM table_name_62 WHERE rounds = "1" AND driver = "maria teresa de filippis" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the name of the Chassis of Diver Maria Teresa de Filippis in round 1? ### Input: CREATE TABLE table_name_62 (
ch... |
Get country tags and their frequency. | CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewRejectionReasons (
Id... | SELECT Tags.TagName, COUNT(PostTags.TagId) AS no FROM PostTags, Tags WHERE Tags.Id = PostTags.TagId AND TagName = 'france' GROUP BY TagName ORDER BY no DESC | sede | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Get country tags and their frequency. ### Input: CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number... |
what was the yearly average dose of vascular 5 flush amount (ml) that patient 021-111547 was taking since 04/2105? | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wa... | SELECT AVG(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-111547')) AND intakeoutput.celllabel = 'vasc... | eicu | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what was the yearly average dose of vascular 5 flush amount (ml) that patient 021-111547 was taking since 04/2105? ### Input... |
What is Branding, when Callsign is 'DXED-TV'? | CREATE TABLE table_name_73 (
branding VARCHAR,
callsign VARCHAR
) | SELECT branding FROM table_name_73 WHERE callsign = "dxed-tv" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is Branding, when Callsign is 'DXED-TV'? ### Input: CREATE TABLE table_name_73 (
branding VARCHAR,
callsign VAR... |
What is the average first elected for the district South Carolina 2? | CREATE TABLE table_name_75 (
first_elected INTEGER,
district VARCHAR
) | SELECT AVG(first_elected) FROM table_name_75 WHERE district = "south carolina 2" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the average first elected for the district South Carolina 2? ### Input: CREATE TABLE table_name_75 (
first_elect... |
what are the three drugs that are prescribed the most frequently in 2104? | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE intakeoutput (
intakeoutputid numb... | SELECT t1.drugname FROM (SELECT medication.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM medication WHERE STRFTIME('%y', medication.drugstarttime) = '2104' GROUP BY medication.drugname) AS t1 WHERE t1.c1 <= 3 | eicu | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what are the three drugs that are prescribed the most frequently in 2104? ### Input: CREATE TABLE treatment (
treatmenti... |
Show me about the distribution of meter_300 and ID in a bar chart, could you order by the y-axis in descending? | CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE swimme... | SELECT meter_300, ID FROM swimmer ORDER BY ID DESC | nvbench | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Show me about the distribution of meter_300 and ID in a bar chart, could you order by the y-axis in descending? ### Input: C... |
How much freedom can did the people of Guinea experience in 2013? | CREATE TABLE table_1415 (
"Country" text,
"Freedom in the World 2013" text,
"2013 Index of Economic Freedom" text,
"2013 Press Freedom Index" text,
"2012 Democracy Index" text
) | SELECT "Freedom in the World 2013" FROM table_1415 WHERE "Country" = 'Guinea' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How much freedom can did the people of Guinea experience in 2013? ### Input: CREATE TABLE table_1415 (
"Country" text,
... |
Is there a course that can help prepare me for PIBS 507 ? | CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test... | SELECT DISTINCT advisory_requirement FROM course WHERE department = 'PIBS' AND number = 507 | advising | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Is there a course that can help prepare me for PIBS 507 ? ### Input: CREATE TABLE program (
program_id int,
name var... |
What was the result for the contestant whose background was as a business major? | CREATE TABLE table_19810459_1 (
result VARCHAR,
background VARCHAR
) | SELECT result FROM table_19810459_1 WHERE background = "Business major" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the result for the contestant whose background was as a business major? ### Input: CREATE TABLE table_19810459_1 (
... |
What is Eftychia Karagianni Pos.? | CREATE TABLE table_60545 (
"Name" text,
"Pos." text,
"Height" text,
"Weight" text,
"Date of Birth" text,
"Club" text
) | SELECT "Pos." FROM table_60545 WHERE "Name" = 'eftychia karagianni' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is Eftychia Karagianni Pos.? ### Input: CREATE TABLE table_60545 (
"Name" text,
"Pos." text,
"Height" text,... |
What is the loss for the record of 42-36? | CREATE TABLE table_15053 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | SELECT "Loss" FROM table_15053 WHERE "Record" = '42-36' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the loss for the record of 42-36? ### Input: CREATE TABLE table_15053 (
"Date" text,
"Opponent" text,
"S... |
What is the smallest grid value that had 16 points and a team of Mi-Jack Conquest Racing? | CREATE TABLE table_name_79 (
grid INTEGER,
team VARCHAR,
points VARCHAR
) | SELECT MIN(grid) FROM table_name_79 WHERE team = "mi-jack conquest racing" AND points = "16" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the smallest grid value that had 16 points and a team of Mi-Jack Conquest Racing? ### Input: CREATE TABLE table_name... |
What is the sum of Events when the top-25 is more than 5, and the top-10 is less than 4, and wins is more than 2? | CREATE TABLE table_40561 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) | SELECT SUM("Events") FROM table_40561 WHERE "Top-25" > '5' AND "Top-10" < '4' AND "Wins" > '2' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the sum of Events when the top-25 is more than 5, and the top-10 is less than 4, and wins is more than 2? ### Input:... |
What is the lowest crowd when essendon is the away team? | CREATE TABLE table_11786 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT MIN("Crowd") FROM table_11786 WHERE "Away team" = 'essendon' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the lowest crowd when essendon is the away team? ### Input: CREATE TABLE table_11786 (
"Home team" text,
"Ho... |
what LIMOUSINE service in LOS ANGELES | 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 state (
state_code text,
state_name text,
country_name text
)
CREATE T... | SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'LOS ANGELES' AND ground_service.city_code = city.city_code AND ground_service.transport_type = 'LIMOUSINE' | atis | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what LIMOUSINE service in LOS ANGELES ### Input: CREATE TABLE restriction (
restriction_code text,
advance_purchase ... |
What country does Tiger Woods play for? | CREATE TABLE table_name_17 (
country VARCHAR,
player VARCHAR
) | SELECT country FROM table_name_17 WHERE player = "tiger woods" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What country does Tiger Woods play for? ### Input: CREATE TABLE table_name_17 (
country VARCHAR,
player VARCHAR
) ##... |
Which Event has a Record of 4:02.54? | CREATE TABLE table_42245 (
"Event" text,
"Record" text,
"Nation" text,
"Date" text,
"Venue" text
) | SELECT "Event" FROM table_42245 WHERE "Record" = '4:02.54' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which Event has a Record of 4:02.54? ### Input: CREATE TABLE table_42245 (
"Event" text,
"Record" text,
"Nation"... |
who is the the womens doubles with mens doubles being reinhold pum karl buchart and mixed doubles being hermann fr hlich lore voit | CREATE TABLE table_19791 (
"Year" real,
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text
) | SELECT "Womens doubles" FROM table_19791 WHERE "Mens doubles" = 'Reinhold Pum Karl Buchart' AND "Mixed doubles" = 'Hermann Fröhlich Lore Voit' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: who is the the womens doubles with mens doubles being reinhold pum karl buchart and mixed doubles being hermann fr hlich lor... |
How many original air dates were there for episodes with a production code of 4398016? | CREATE TABLE table_24188 (
"No in Series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"U.S. viewers (millions)" text
) | SELECT COUNT("Original air date") FROM table_24188 WHERE "Production code" = '4398016' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many original air dates were there for episodes with a production code of 4398016? ### Input: CREATE TABLE table_24188 (... |
Select TagName From Tags Order By Count Asc. | CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number... | SELECT TagName FROM Tags ORDER BY Count | sede | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Select TagName From Tags Order By Count Asc. ### Input: CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREA... |
Find the names of the customers who have order status both 'On Road' and 'Shipped'. | CREATE TABLE invoices (
invoice_number number,
invoice_date time,
invoice_details text
)
CREATE TABLE shipment_items (
shipment_id number,
order_item_id number
)
CREATE TABLE order_items (
order_item_id number,
product_id number,
order_id number,
order_item_status text,
order_i... | SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "On Road" INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "Shipped" | spider | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Find the names of the customers who have order status both 'On Road' and 'Shipped'. ### Input: CREATE TABLE invoices (
i... |
Return a bar chart about the distribution of ACC_Road and Team_ID , and group by attribute All_Home. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT ACC_Road, Team_ID FROM basketball_match GROUP BY All_Home, ACC_Road | nvbench | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Return a bar chart about the distribution of ACC_Road and Team_ID , and group by attribute All_Home. ### Input: CREATE TABLE... |
What is the name of the bowl game that was played in Tempe, Arizona? | CREATE TABLE table_16046689_29 (
bowl_game VARCHAR,
city VARCHAR
) | SELECT bowl_game FROM table_16046689_29 WHERE city = "Tempe, Arizona" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the name of the bowl game that was played in Tempe, Arizona? ### Input: CREATE TABLE table_16046689_29 (
bowl_ga... |
Return a histogram on what are the names and seatings for all tracks opened after 2000, ordered by seating? | CREATE TABLE race (
Race_ID int,
Name text,
Class text,
Date text,
Track_ID text
)
CREATE TABLE track (
Track_ID int,
Name text,
Location text,
Seating real,
Year_Opened real
) | SELECT Name, Seating FROM track WHERE Year_Opened > 2000 ORDER BY Seating | nvbench | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Return a histogram on what are the names and seatings for all tracks opened after 2000, ordered by seating? ### Input: CREAT... |
Show the total number of the first year of parties with the theme 'Spring' or 'Teqnology' with a bar chart, bin the first year into weekday interval and count the first year, and I want to display y axis from low to high order. | CREATE TABLE party_host (
Party_ID int,
Host_ID int,
Is_Main_in_Charge bool
)
CREATE TABLE host (
Host_ID int,
Name text,
Nationality text,
Age text
)
CREATE TABLE party (
Party_ID int,
Party_Theme text,
Location text,
First_year text,
Last_year text,
Number_of_host... | SELECT First_year, COUNT(First_year) FROM party WHERE Party_Theme = "Spring" OR Party_Theme = "Teqnology" ORDER BY COUNT(First_year) | nvbench | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Show the total number of the first year of parties with the theme 'Spring' or 'Teqnology' with a bar chart, bin the first ye... |
provide the number of patients whose ethnicity is white and year of birth is less than 2058? | 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 te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "WHITE" AND demographic.dob_year < "2058" | mimicsql_data | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: provide the number of patients whose ethnicity is white and year of birth is less than 2058? ### Input: CREATE TABLE prescri... |
Which classes are required to declare MODGREEK my major ? | CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar,
friday varchar,
saturday varchar,
sunday varchar,
has_final_proje... | SELECT DISTINCT course.department, course.name, course.number FROM course, program_course WHERE course.department LIKE '%MODGREEK%' AND program_course.category LIKE 'PreMajor' AND program_course.course_id = course.course_id | advising | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which classes are required to declare MODGREEK my major ? ### Input: CREATE TABLE course_offering (
offering_id int,
... |
Given 452 and 473 , which course is harder ? | CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
... | SELECT DISTINCT course.number FROM course, program_course WHERE (course.number = 452 OR course.number = 473) AND course.department = 'EECS' AND program_course.course_id = course.course_id ORDER BY program_course.workload DESC LIMIT 1 | advising | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Given 452 and 473 , which course is harder ? ### Input: CREATE TABLE requirement (
requirement_id int,
requirement v... |
What is the Author of the Title with a First Issue of September 2010? | CREATE TABLE table_name_87 (
author VARCHAR,
first_issue VARCHAR
) | SELECT author FROM table_name_87 WHERE first_issue = "september 2010" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the Author of the Title with a First Issue of September 2010? ### Input: CREATE TABLE table_name_87 (
author VAR... |
calculate the number of patients who had had a -eos lab test until 2102. | 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,
h... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT lab.patientunitstayid FROM lab WHERE lab.labname = '-eos' AND STRFTIME('%y', lab.labresulttime) <= '2102') | eicu | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: calculate the number of patients who had had a -eos lab test until 2102. ### Input: CREATE TABLE medication (
medication... |
Tell me the city of license for 0 106.9 fm | CREATE TABLE table_name_1 (
city_of_license VARCHAR,
frequency VARCHAR
) | SELECT city_of_license FROM table_name_1 WHERE frequency = "0 106.9 fm" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Tell me the city of license for 0 106.9 fm ### Input: CREATE TABLE table_name_1 (
city_of_license VARCHAR,
frequency... |
What is the rank of the athletes that have Notes of fb, and a Time of 6:47.30? | CREATE TABLE table_name_36 (
rank INTEGER,
notes VARCHAR,
time VARCHAR
) | SELECT SUM(rank) FROM table_name_36 WHERE notes = "fb" AND time = "6:47.30" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the rank of the athletes that have Notes of fb, and a Time of 6:47.30? ### Input: CREATE TABLE table_name_36 (
r... |
find the average age of female patients with death status 1. | 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,
religion text,
... | SELECT AVG(demographic.age) FROM demographic WHERE demographic.gender = "F" AND demographic.expire_flag = "1" | mimicsql_data | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: find the average age of female patients with death status 1. ### Input: CREATE TABLE procedures (
subject_id text,
h... |
What is the air date when the U.S. viewers was 5.50 million? | CREATE TABLE table_17467447_1 (
original_airdate VARCHAR,
us_viewers__million_ VARCHAR
) | SELECT original_airdate FROM table_17467447_1 WHERE us_viewers__million_ = "5.50" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the air date when the U.S. viewers was 5.50 million? ### Input: CREATE TABLE table_17467447_1 (
original_airdate... |
What are the EECS major 's ULCS courses ? | CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar,
friday varchar,
saturday varchar,
sunday varchar,
has_final_proje... | SELECT DISTINCT course.department, course.name, course.number FROM course, program_course WHERE course.department LIKE '%EECS%' AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id | advising | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What are the EECS major 's ULCS courses ? ### Input: CREATE TABLE course_offering (
offering_id int,
course_id int,
... |
What is the average number played that has fewer than 11 wins, more than 42 goals, more than 22 points, and 11 losses? | CREATE TABLE table_46004 (
"Position" real,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | SELECT AVG("Played") FROM table_46004 WHERE "Wins" < '11' AND "Goals for" > '42' AND "Points" > '22' AND "Losses" = '11' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the average number played that has fewer than 11 wins, more than 42 goals, more than 22 points, and 11 losses? ### I... |
How many byes were then when there were less than 737 against? | CREATE TABLE table_58899 (
"Glenelg FL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
) | SELECT SUM("Byes") FROM table_58899 WHERE "Against" < '737' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many byes were then when there were less than 737 against? ### Input: CREATE TABLE table_58899 (
"Glenelg FL" text,
... |
Name the district for mike rogers | CREATE TABLE table_27290 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "District" FROM table_27290 WHERE "Incumbent" = 'Mike Rogers' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the district for mike rogers ### Input: CREATE TABLE table_27290 (
"District" text,
"Incumbent" text,
"Part... |
give me the number of patients whose year of death is less than or equal to 2126 and procedure short title is umbilical vein cath? | 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,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dod_year <= "2126.0" AND procedures.short_title = "Umbilical vein cath" | mimicsql_data | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: give me the number of patients whose year of death is less than or equal to 2126 and procedure short title is umbilical vein... |
What category was nominated in 2010 fo the British Soap Awards? | CREATE TABLE table_58546 (
"Awards" text,
"Year" real,
"Category" text,
"Result" text,
"Production" text,
"Roll" text
) | SELECT "Category" FROM table_58546 WHERE "Year" = '2010' AND "Result" = 'nominated' AND "Awards" = 'british soap awards' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What category was nominated in 2010 fo the British Soap Awards? ### Input: CREATE TABLE table_58546 (
"Awards" text,
... |
What is the Staffel D in the season 1983-84 with a Staffel E of Motor Suhl? | CREATE TABLE table_name_51 (
staffel_d VARCHAR,
staffel_e VARCHAR,
season VARCHAR
) | SELECT staffel_d FROM table_name_51 WHERE staffel_e = "motor suhl" AND season = "1983-84" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the Staffel D in the season 1983-84 with a Staffel E of Motor Suhl? ### Input: CREATE TABLE table_name_51 (
staf... |
For a team having goals for more than 95, what is the lowest position? | CREATE TABLE table_46667 (
"Position" real,
"Team" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Goals For" real,
"Goals Against" real,
"Goal Average 1" real,
"Points 2" real
) | SELECT MIN("Position") FROM table_46667 WHERE "Goals For" > '95' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: For a team having goals for more than 95, what is the lowest position? ### Input: CREATE TABLE table_46667 (
"Position" ... |
What is the Constituency number for Pandhana? | CREATE TABLE table_name_62 (
constituency_number VARCHAR,
name VARCHAR
) | SELECT constituency_number FROM table_name_62 WHERE name = "pandhana" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the Constituency number for Pandhana? ### Input: CREATE TABLE table_name_62 (
constituency_number VARCHAR,
n... |
What is the total number of Wins when 98 is the rank and the scoring average is more than 73.52? | CREATE TABLE table_7483 (
"Year" real,
"Events played" real,
"Cuts made" real,
"Wins" real,
"2nds" real,
"Top 10s" real,
"Best finish" text,
"Earnings ($)" real,
"Rank" text,
"Scoring average" real,
"Scoring rank" text
) | SELECT COUNT("Wins") FROM table_7483 WHERE "Rank" = '98' AND "Scoring average" > '73.52' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the total number of Wins when 98 is the rank and the scoring average is more than 73.52? ### Input: CREATE TABLE tab... |
List countries that have more than one swimmer. | CREATE TABLE swimmer (
nationality VARCHAR
) | SELECT nationality, COUNT(*) FROM swimmer GROUP BY nationality HAVING COUNT(*) > 1 | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: List countries that have more than one swimmer. ### Input: CREATE TABLE swimmer (
nationality VARCHAR
) ### Response: SE... |
Which label is from the Germany region? | CREATE TABLE table_71781 (
"Date" text,
"Region" text,
"Label" text,
"Catalogue" text,
"Format" text
) | SELECT "Label" FROM table_71781 WHERE "Region" = 'germany' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which label is from the Germany region? ### Input: CREATE TABLE table_71781 (
"Date" text,
"Region" text,
"Label... |
What is the status(es) of the place with an area of 304.06 km2? | CREATE TABLE table_72918 (
"Official Name" text,
"Status" text,
"Area km 2" text,
"Population" real,
"Census Ranking" text
) | SELECT "Status" FROM table_72918 WHERE "Area km 2" = '304.06' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the status(es) of the place with an area of 304.06 km2? ### Input: CREATE TABLE table_72918 (
"Official Name" te... |
What is average ratings for Japanese title of , with episodes larger than 9? | CREATE TABLE table_name_38 (
average_ratings VARCHAR,
episodes VARCHAR,
japanese_title VARCHAR
) | SELECT average_ratings FROM table_name_38 WHERE episodes > 9 AND japanese_title = "ホタルノヒカリ" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is average ratings for Japanese title of , with episodes larger than 9? ### Input: CREATE TABLE table_name_38 (
ave... |
what was the name of the output, which patient 027-82318 had first during a day before? | CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9cod... | SELECT intakeoutput.celllabel FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-82318')) AND intakeoutput.cellpath LIKE '%output%' AND D... | eicu | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what was the name of the output, which patient 027-82318 had first during a day before? ### Input: CREATE TABLE intakeoutput... |
When 4.5 is the percentage of change how many population counts were made for 2011? | CREATE TABLE table_22728 (
"Name" text,
"Population (2011)" real,
"Population (2006)" real,
"Change (%)" text,
"Land area (km\u00b2)" text,
"Population density (per km\u00b2)" text
) | SELECT COUNT("Population (2011)") FROM table_22728 WHERE "Change (%)" = '4.5' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: When 4.5 is the percentage of change how many population counts were made for 2011? ### Input: CREATE TABLE table_22728 (
... |
what is the name of the last seat ? | CREATE TABLE table_204_659 (
id number,
"seat" text,
"state" text,
"majority" number,
"member" text,
"party" text
) | SELECT "seat" FROM table_204_659 ORDER BY id DESC LIMIT 1 | squall | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what is the name of the last seat ? ### Input: CREATE TABLE table_204_659 (
id number,
"seat" text,
"state" text... |
Top Moroccan Dev in stack (Java, React, Spring). | 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 PostsWit... | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", u.Id AS "user_link", DisplayName, WebsiteUrl, Reputation FROM Users AS u INNER JOIN Comments AS c ON c.UserId = u.Id INNER JOIN Posts AS p ON p.Id = c.PostId INNER JOIN PostTags AS pt ON p.Id = pt.PostId INNER JOIN Tags AS t ON t.Id = pt.TagId WHERE (UPPER(Tag... | sede | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Top Moroccan Dev in stack (Java, React, Spring). ### Input: CREATE TABLE PostNoticeTypes (
Id number,
ClassId number... |
Who directed the episode written by Dan Serafin and aired on July 23, 2008? | CREATE TABLE table_name_52 (
directed_by VARCHAR,
written_by VARCHAR,
original_airdate VARCHAR
) | SELECT directed_by FROM table_name_52 WHERE written_by = "dan serafin" AND original_airdate = "july 23, 2008" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who directed the episode written by Dan Serafin and aired on July 23, 2008? ### Input: CREATE TABLE table_name_52 (
dire... |
List CS major NEAREAST requirements . | CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE comment_instructor (
instructor_id int... | SELECT DISTINCT course.department, course.name, course.number FROM program_course INNER JOIN course ON program_course.course_id = course.course_id WHERE course.department = 'NEAREAST' | advising | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: List CS major NEAREAST requirements . ### Input: CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int... |
Which Callsign includes a frequency under 1210, Newsradio 740 KTRH, and webcasts with listen live? | CREATE TABLE table_36233 (
"Frequency" real,
"Callsign" text,
"Brand" text,
"City of License" text,
"Website" text,
"Webcast" text
) | SELECT "Callsign" FROM table_36233 WHERE "Webcast" = 'listen live' AND "Frequency" < '1210' AND "Brand" = 'newsradio 740 ktrh' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which Callsign includes a frequency under 1210, Newsradio 740 KTRH, and webcasts with listen live? ### Input: CREATE TABLE t... |
the number of patients in ward 45 until 2100? | CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto 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 chartevents (
row_id number,
subject_i... | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT transfers.hadm_id FROM transfers WHERE transfers.wardid = 45 AND STRFTIME('%y', transfers.intime) <= '2100') | mimic_iii | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: the number of patients in ward 45 until 2100? ### Input: CREATE TABLE d_items (
row_id number,
itemid number,
la... |
what is the top five most frequently prescribed drugs that were prescribed to patients within 2 months after being diagnosed with cytomegaloviral disease in this year? | CREATE TABLE d_icd_procedures (
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... | SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE ... | mimic_iii | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what is the top five most frequently prescribed drugs that were prescribed to patients within 2 months after being diagnosed... |
What are the highest number of games drawn for games numbered under 6? | CREATE TABLE table_36757 (
"Games" real,
"Drawn" real,
"Lost" real,
"Points difference" text,
"Points" real
) | SELECT MAX("Drawn") FROM table_36757 WHERE "Games" < '6' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What are the highest number of games drawn for games numbered under 6? ### Input: CREATE TABLE table_36757 (
"Games" rea... |
Are the upper-level classes all 17 credits ? | CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TAB... | SELECT COUNT(*) = 0 FROM course, program_course WHERE course.credits <> 17 AND course.department = 'EECS' AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id | advising | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Are the upper-level classes all 17 credits ? ### Input: CREATE TABLE student_record (
student_id int,
course_id int,... |
Show the number of customer address history in each day and bin date to by weekday with a bar chart. | CREATE TABLE Customers (
customer_id INTEGER,
payment_method_code VARCHAR(15),
customer_number VARCHAR(20),
customer_name VARCHAR(80),
customer_address VARCHAR(255),
customer_phone VARCHAR(80),
customer_email VARCHAR(80)
)
CREATE TABLE Contacts (
contact_id INTEGER,
customer_id INTE... | SELECT date_to, COUNT(date_to) FROM Customer_Address_History AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id JOIN Addresses AS T3 ON T1.address_id = T3.address_id | nvbench | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Show the number of customer address history in each day and bin date to by weekday with a bar chart. ### Input: CREATE TABLE... |
Name the game for l 111 126 | CREATE TABLE table_30049462_8 (
game VARCHAR,
score VARCHAR
) | SELECT game FROM table_30049462_8 WHERE score = "L 111–126" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the game for l 111 126 ### Input: CREATE TABLE table_30049462_8 (
game VARCHAR,
score VARCHAR
) ### Response: S... |
Who was the opponent at the game attended by 62,657? | CREATE TABLE table_name_34 (
opponent VARCHAR,
attendance VARCHAR
) | SELECT opponent FROM table_name_34 WHERE attendance = "62,657" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who was the opponent at the game attended by 62,657? ### Input: CREATE TABLE table_name_34 (
opponent VARCHAR,
atten... |
What is the series number for Season #18? | CREATE TABLE table_12564633_1 (
series__number INTEGER,
season__number VARCHAR
) | SELECT MIN(series__number) FROM table_12564633_1 WHERE season__number = 18 | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the series number for Season #18? ### Input: CREATE TABLE table_12564633_1 (
series__number INTEGER,
season_... |
what is the number of patients whose days of hospital stay is greater than 29 and item id is 50995? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "29" AND lab.itemid = "50995" | mimicsql_data | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what is the number of patients whose days of hospital stay is greater than 29 and item id is 50995? ### Input: CREATE TABLE ... |
Which animal has an AP duration of 1.0 and a conduction speed of 7 30? | CREATE TABLE table_41592 (
"Animal" text,
"Cell type" text,
"Resting potential (mV)" text,
"AP increase (mV)" text,
"AP duration (ms)" text,
"Conduction speed (m/s)" text
) | SELECT "Animal" FROM table_41592 WHERE "AP duration (ms)" = '1.0' AND "Conduction speed (m/s)" = '7–30' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which animal has an AP duration of 1.0 and a conduction speed of 7 30? ### Input: CREATE TABLE table_41592 (
"Animal" te... |
What was Laura Diaz's score for place t9? | CREATE TABLE table_name_72 (
score VARCHAR,
place VARCHAR,
player VARCHAR
) | SELECT score FROM table_name_72 WHERE place = "t9" AND player = "laura diaz" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was Laura Diaz's score for place t9? ### Input: CREATE TABLE table_name_72 (
score VARCHAR,
place VARCHAR,
... |
What is the drug type of LR? | 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
)
C... | SELECT prescriptions.drug_type FROM prescriptions WHERE prescriptions.drug = "LR" | mimicsql_data | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the drug type of LR? ### Input: CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
... |
What is Fred Stolle's final year of competing in a championship? | CREATE TABLE table_2201724_1 (
year INTEGER
) | SELECT MAX(year) FROM table_2201724_1 | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is Fred Stolle's final year of competing in a championship? ### Input: CREATE TABLE table_2201724_1 (
year INTEGER
... |
Do all upper-level classes have exams ? | CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar,
friday varchar,
saturday varchar,
sunday varchar,
has_final_proje... | SELECT COUNT(*) = 0 FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.has_exams = 'N' AND program_course.category LIKE '%ULCS%' | advising | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Do all upper-level classes have exams ? ### Input: CREATE TABLE course_offering (
offering_id int,
course_id int,
... |
has patient 83499 gone through any lab test since 1 year ago? | 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 prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
... | SELECT COUNT(*) > 0 FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 83499) AND DATETIME(labevents.charttime) >= DATETIME(CURRENT_TIME(), '-1 year') | mimic_iii | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: has patient 83499 gone through any lab test since 1 year ago? ### Input: CREATE TABLE transfers (
row_id number,
sub... |
Return a scatter chart on what are the id of each employee and the number of document destruction authorised by that employee? | CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)
)
CREATE TABLE Employees (
Employee_ID INTEGER,
Role_Code CHAR(15),
Employee_Name VARCHAR(255),
Gender_MFU CHAR(1),
Date_of_Birth DATETIME,
Other_De... | SELECT Destruction_Authorised_by_Employee_ID, COUNT(*) FROM Documents_to_be_Destroyed GROUP BY Destruction_Authorised_by_Employee_ID | nvbench | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Return a scatter chart on what are the id of each employee and the number of document destruction authorised by that employe... |
What is the date when the opponent is the New England Patriots? | CREATE TABLE table_22647 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Dolphins points" real,
"Opponents" real,
"Record" text,
"Attendance" real
) | SELECT "Date" FROM table_22647 WHERE "Opponent" = 'New England Patriots' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the date when the opponent is the New England Patriots? ### Input: CREATE TABLE table_22647 (
"Game" real,
"... |
What year had the Hungarian top 40 album charts of 3? | CREATE TABLE table_name_69 (
year VARCHAR,
hungarian_top_40_album_charts VARCHAR
) | SELECT year FROM table_name_69 WHERE hungarian_top_40_album_charts = "3" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What year had the Hungarian top 40 album charts of 3? ### Input: CREATE TABLE table_name_69 (
year VARCHAR,
hungaria... |
If the director is Yannick Bisson, what was the Canadian amount of viewers? | CREATE TABLE table_3359 (
"Total" real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Canadian air date" text,
"UK air date" text,
"Canadian Viewers (millions)" text
) | SELECT COUNT("Canadian Viewers (millions)") FROM table_3359 WHERE "Directed by" = 'Yannick Bisson' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: If the director is Yannick Bisson, what was the Canadian amount of viewers? ### Input: CREATE TABLE table_3359 (
"Total"... |
Name the most withdrawn for 37 lstr no. | CREATE TABLE table_20391799_1 (
withdrawn INTEGER,
ltsr_no VARCHAR
) | SELECT MAX(withdrawn) FROM table_20391799_1 WHERE ltsr_no = 37 | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the most withdrawn for 37 lstr no. ### Input: CREATE TABLE table_20391799_1 (
withdrawn INTEGER,
ltsr_no VARCHA... |
What is the highest top-25 with more than 9 top-10 but less than 29 events? | CREATE TABLE table_name_17 (
top_25 INTEGER,
top_10 VARCHAR,
events VARCHAR
) | SELECT MAX(top_25) FROM table_name_17 WHERE top_10 > 9 AND events < 29 | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the highest top-25 with more than 9 top-10 but less than 29 events? ### Input: CREATE TABLE table_name_17 (
top_... |
Which Free polite has a Genitive 1 of *=ku? | CREATE TABLE table_name_13 (
free VARCHAR,
ku VARCHAR,
genitive_1 VARCHAR
) | SELECT free AS polite FROM table_name_13 WHERE genitive_1 = * = ku | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which Free polite has a Genitive 1 of *=ku? ### Input: CREATE TABLE table_name_13 (
free VARCHAR,
ku VARCHAR,
ge... |
please give me the flights from BOSTON to PITTSBURGH on thursday of next week | CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service... | 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, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PITTSBURGH' AND date_day.day_number = 24 AND date_day.month_number = 5 AN... | atis | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: please give me the flights from BOSTON to PITTSBURGH on thursday of next week ### Input: CREATE TABLE state (
state_code... |
What is the lowest number of Not Outs when there were more than 25 innings? | CREATE TABLE table_10915 (
"Matches" real,
"Innings" real,
"Not Outs" real,
"Runs" real,
"Average" real
) | SELECT MIN("Not Outs") FROM table_10915 WHERE "Innings" > '25' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the lowest number of Not Outs when there were more than 25 innings? ### Input: CREATE TABLE table_10915 (
"Match... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.