[{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"Student","type":"grid"}]

How many different advisors are listed?

{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}

How many advisors are there?

{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}

Show first name, last name, age for all female students. Their sex is F.

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}

What are the full names and ages for all female students whose sex is F?

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}

Show student ids for all male students.

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}

What are the student ids for all male students?

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}

How many students are age 18?

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}

How many students are 18 years old?

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}

Show all student ids who are older than 20.

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}

What are the student ids for students over 20 years old?

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}

Which city does the student whose last name is "Kim" live in?

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}

Give the city that the student whose family name is Kim lives in.

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}

Who is the advisor of student with ID 1004?

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}

Who advises student 1004?

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}

Show all majors and corresponding number of students.

{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}

How many students are there for each major?

{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}

Show all ages and corresponding number of students.

{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}

How old is each student and how many students are each age?

{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}

Show the average age for male and female students.

{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}

What are the average ages for male and female students?

{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}

Show all cities and corresponding number of students.

{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}

How many students live in each city?

{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}

Show all advisors and corresponding number of students.

{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}

How many students does each advisor have?

{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}

What is the age of student Linda Smith?

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}

What is the gender of the student Linda Smith?

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}

List all students' first names and last names who majored in 600.

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}

Which city does student Linda Smith live in?

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}

Advisor 1121 has how many students?

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}

Which Advisor has most of students? List advisor and the number of students.

{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Advisor"},{"actionType":"ChangeTopFilter","column":"Advisor","limit":1,"aggregation":"count","direction":"desk"}]}}

Which major has least number of students? List the major and the number of students.

{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Major"},{"actionType":"ChangeTopFilter","column":"Major","limit":1,"aggregation":"count","direction":"ask"}]}}

Which student's age is older than 18 and is majoring in 600? List each student's first and last name.

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}

List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"!=","value":600},{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}

Show ids for all students who live in CHI.

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}

What are the ids of all students who live in CHI?

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}

Show ids for all students who have advisor 1121.

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}

What are the ids of all students who have advisor number 1121?

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}

Show first name for all students with major 600.

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}

What are the first names for all students who are from the major numbered 600?

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}