Show the ids for all the students who participate in an activity and are under 20.
CREATE TABLE Student (StuID VARCHAR, age INTEGER); CREATE TABLE Participates_in (StuID VARCHAR, age INTEGER)
SELECT StuID FROM Participates_in INTERSECT SELECT StuID FROM Student WHERE age < 20
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE Student (StuID VARCHAR, age INTEGER); CREATE TABLE Participates_in (StuID VARCHAR, age INTEGER) Question: Show the ids for all the students who participate in an activity and are under 20. [/INST] SELECT StuID FROM Participates_in INTERSECT SELECT StuID FROM Student WHERE age < 20 </s>