instruction
stringlengths
241
15.9k
source
stringclasses
2 values
<|context|>[{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"Student","type":"grid"}]<|endoftext|><|prompter|>How many different advisors are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>How many advisors are there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>Show first name, last name, age for all female students. Their sex is F.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>What are the full names and ages for all female students whose sex is F?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show student ids for all male students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>What are the student ids for all male students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>How many students are age 18?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>How many students are 18 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>Show all student ids who are older than 20.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>What are the student ids for students over 20 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>Which city does the student whose last name is "Kim" live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Give the city that the student whose family name is Kim lives in.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Who is the advisor of student with ID 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Who advises student 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Show all majors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>How many students are enrolled in each major?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>Show all ages and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>How old is each student and how many students are each age?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>Show the average age for male and female students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>What are the average ages for male and female students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>Show all cities and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>How many students live in each city?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>Show all advisors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>How many students does each advisor have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>What is the age of student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>What is the gender of the student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>List all students' first names and last names who majored in 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>Which city does student Linda Smith live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>Advisor 1121 has how many students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Which Advisor has most of students? List advisor and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Advisor"},{"actionType":"ChangeTopFilter","column":"Advisor","limit":1,"aggregation":"count","direction":"desk"}]}}<|endoftext|><|prompter|>Which major has least number of students? List the major and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Major"},{"actionType":"ChangeTopFilter","column":"Major","limit":1,"aggregation":"count","direction":"ask"}]}}<|endoftext|><|prompter|>Which student's age is older than 18 and is majoring in 600? List each student's first and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"!=","value":600},{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show ids for all students who live in CHI.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>What are the ids of all students who live in CHI?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>Show ids for all students who have advisor 1121.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>What are the ids of all students who have advisor number 1121?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Show first name for all students with major 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>What are the first names for all students who are from the major numbered 600?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"Student","type":"grid"}]<|endoftext|><|prompter|>How many different advisors are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>How many advisors are there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>Show first name, last name, age for all female students. Their sex is F.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>What are the full names and ages for all female students whose sex is F?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show student ids for all male students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>What are the student ids for all male students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>How many students are age 18?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>How many students are 18 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>Show all student ids who are older than 20.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>What are the student ids for students over 20 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>Which city does the student whose last name is "Kim" live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Give the city that the student whose family name is Kim lives in.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Who is the advisor of student with ID 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Who advises student 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Show all majors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>How many students are there for each major?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>Show all ages and the corresponding student count.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>How old is each student and how many students are each age?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>Show the average age for male and female students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>What are the average ages for male and female students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>Show all cities and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>How many students live in each city?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>Show all advisors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>How many students does each advisor have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>What is the age of student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>What is the gender of the student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>List all students' first names and last names who majored in 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>Which city does student Linda Smith live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>Advisor 1121 has how many students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Which Advisor has most of students? List advisor and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Advisor"},{"actionType":"ChangeTopFilter","column":"Advisor","limit":1,"aggregation":"count","direction":"desk"}]}}<|endoftext|><|prompter|>Which major has least number of students? List the major and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Major"},{"actionType":"ChangeTopFilter","column":"Major","limit":1,"aggregation":"count","direction":"ask"}]}}<|endoftext|><|prompter|>Which student's age is older than 18 and is majoring in 600? List each student's first and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"!=","value":600},{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show ids for all students who live in CHI.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>What are the ids of all students who live in CHI?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>Show ids for all students who have advisor 1121.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>What are the ids of all students who have advisor number 1121?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Show first name for all students with major 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>What are the first names for all students who are from the major numbered 600?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"Student","type":"grid"}]<|endoftext|><|prompter|>How many different advisors are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>How many advisors are there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>Show first name, last name, age for all female students. Their sex is F.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>What are the full names and ages for all female students whose sex is F?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show student ids for all male students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>What are the student ids for all male students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>How many students are age 18?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>How many students are 18 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>Show all student ids who are older than 20.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>What are the student ids for students over 20 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>Which city does the student whose last name is "Kim" live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Give the city that the student whose family name is Kim lives in.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Who is the advisor of student with ID 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Who advises student 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Show all majors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>How many students are there for each major?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>Display the number of students and their corresponding ages.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>How old is each student and how many students are each age?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>Show the average age for male and female students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>What are the average ages for male and female students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>Show all cities and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>How many students live in each city?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>Show all advisors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>How many students does each advisor have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>What is the age of student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>What is the gender of the student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>List all students' first names and last names who majored in 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>Which city does student Linda Smith live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>Advisor 1121 has how many students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Which Advisor has most of students? List advisor and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Advisor"},{"actionType":"ChangeTopFilter","column":"Advisor","limit":1,"aggregation":"count","direction":"desk"}]}}<|endoftext|><|prompter|>Which major has least number of students? List the major and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Major"},{"actionType":"ChangeTopFilter","column":"Major","limit":1,"aggregation":"count","direction":"ask"}]}}<|endoftext|><|prompter|>Which student's age is older than 18 and is majoring in 600? List each student's first and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"!=","value":600},{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show ids for all students who live in CHI.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>What are the ids of all students who live in CHI?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>Show ids for all students who have advisor 1121.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>What are the ids of all students who have advisor number 1121?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Show first name for all students with major 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>What are the first names for all students who are from the major numbered 600?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"Student","type":"grid"}]<|endoftext|><|prompter|>How many different advisors are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>How many advisors are there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>Show first name, last name, age for all female students. Their sex is F.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>What are the full names and ages for all female students whose sex is F?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show student ids for all male students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>What are the student ids for all male students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>How many students are age 18?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>How many students are 18 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>Show all student ids who are older than 20.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>What are the student ids for students over 20 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>Which city does the student whose last name is "Kim" live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Give the city that the student whose family name is Kim lives in.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Who is the advisor of student with ID 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Who advises student 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Show all majors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>How many students are there for each major?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>Show all ages and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>Display each student's age and the count of students at that age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>Show the average age for male and female students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>What are the average ages for male and female students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>Show all cities and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>How many students live in each city?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>Show all advisors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>How many students does each advisor have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>What is the age of student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>What is the gender of the student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>List all students' first names and last names who majored in 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>Which city does student Linda Smith live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>Advisor 1121 has how many students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Which Advisor has most of students? List advisor and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Advisor"},{"actionType":"ChangeTopFilter","column":"Advisor","limit":1,"aggregation":"count","direction":"desk"}]}}<|endoftext|><|prompter|>Which major has least number of students? List the major and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Major"},{"actionType":"ChangeTopFilter","column":"Major","limit":1,"aggregation":"count","direction":"ask"}]}}<|endoftext|><|prompter|>Which student's age is older than 18 and is majoring in 600? List each student's first and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"!=","value":600},{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show ids for all students who live in CHI.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>What are the ids of all students who live in CHI?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>Show ids for all students who have advisor 1121.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>What are the ids of all students who have advisor number 1121?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Show first name for all students with major 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>What are the first names for all students who are from the major numbered 600?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"Student","type":"grid"}]<|endoftext|><|prompter|>How many different advisors are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>How many advisors are there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>Show first name, last name, age for all female students. Their sex is F.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>What are the full names and ages for all female students whose sex is F?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show student ids for all male students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>What are the student ids for all male students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>How many students are age 18?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>How many students are 18 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>Show all student ids who are older than 20.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>What are the student ids for students over 20 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>Which city does the student whose last name is "Kim" live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Give the city that the student whose family name is Kim lives in.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Who is the advisor of student with ID 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Who advises student 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Show all majors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>How many students are there for each major?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>Show all ages and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>How old is each student, and how many students are of each age?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>Show the average age for male and female students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>What are the average ages for male and female students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>Show all cities and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>How many students live in each city?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>Show all advisors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>How many students does each advisor have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>What is the age of student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>What is the gender of the student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>List all students' first names and last names who majored in 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>Which city does student Linda Smith live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>Advisor 1121 has how many students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Which Advisor has most of students? List advisor and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Advisor"},{"actionType":"ChangeTopFilter","column":"Advisor","limit":1,"aggregation":"count","direction":"desk"}]}}<|endoftext|><|prompter|>Which major has least number of students? List the major and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Major"},{"actionType":"ChangeTopFilter","column":"Major","limit":1,"aggregation":"count","direction":"ask"}]}}<|endoftext|><|prompter|>Which student's age is older than 18 and is majoring in 600? List each student's first and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"!=","value":600},{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show ids for all students who live in CHI.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>What are the ids of all students who live in CHI?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>Show ids for all students who have advisor 1121.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>What are the ids of all students who have advisor number 1121?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Show first name for all students with major 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>What are the first names for all students who are from the major numbered 600?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"Student","type":"grid"}]<|endoftext|><|prompter|>How many different advisors are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>How many advisors are there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>Show first name, last name, age for all female students. Their sex is F.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>What are the full names and ages for all female students whose sex is F?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show student ids for all male students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>What are the student ids for all male students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>How many students are age 18?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>How many students are 18 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>Show all student ids who are older than 20.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>What are the student ids for students over 20 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>Which city does the student whose last name is "Kim" live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Give the city that the student whose family name is Kim lives in.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Who is the advisor of student with ID 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Who advises student 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Show all majors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>How many students are there for each major?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>Show all ages and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>How old is each student and how many students are each age?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>Calculate the average age of male and female students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>What are the average ages for male and female students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>Show all cities and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>How many students live in each city?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>Show all advisors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>How many students does each advisor have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>What is the age of student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>What is the gender of the student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>List all students' first names and last names who majored in 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>Which city does student Linda Smith live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>Advisor 1121 has how many students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Which Advisor has most of students? List advisor and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Advisor"},{"actionType":"ChangeTopFilter","column":"Advisor","limit":1,"aggregation":"count","direction":"desk"}]}}<|endoftext|><|prompter|>Which major has least number of students? List the major and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Major"},{"actionType":"ChangeTopFilter","column":"Major","limit":1,"aggregation":"count","direction":"ask"}]}}<|endoftext|><|prompter|>Which student's age is older than 18 and is majoring in 600? List each student's first and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"!=","value":600},{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show ids for all students who live in CHI.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>What are the ids of all students who live in CHI?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>Show ids for all students who have advisor 1121.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>What are the ids of all students who have advisor number 1121?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Show first name for all students with major 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>What are the first names for all students who are from the major numbered 600?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"Student","type":"grid"}]<|endoftext|><|prompter|>How many different advisors are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>How many advisors are there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>Show first name, last name, age for all female students. Their sex is F.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>What are the full names and ages for all female students whose sex is F?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show student ids for all male students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>What are the student ids for all male students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>How many students are age 18?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>How many students are 18 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>Show all student ids who are older than 20.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>What are the student ids for students over 20 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>Which city does the student whose last name is "Kim" live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Give the city that the student whose family name is Kim lives in.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Who is the advisor of student with ID 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Who advises student 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Show all majors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>How many students are there for each major?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>Show all ages and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>How old is each student and how many students are each age?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>Show the average age for male and female students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>What are the average ages for male and female students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>Show all cities and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>How many students live in each city?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>Show all advisors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>How many students does each advisor have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>What is the age of student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>What is the gender of the student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>List all students' first names and last names who majored in 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>Which city does student Linda Smith live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>Advisor 1121 has how many students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Which Advisor has most of students? List advisor and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Advisor"},{"actionType":"ChangeTopFilter","column":"Advisor","limit":1,"aggregation":"count","direction":"desk"}]}}<|endoftext|><|prompter|>Which major has least number of students? List the major and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Major"},{"actionType":"ChangeTopFilter","column":"Major","limit":1,"aggregation":"count","direction":"ask"}]}}<|endoftext|><|prompter|>Which student's age is older than 18 and is majoring in 600? List each student's first and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"!=","value":600},{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show ids for all students who live in CHI.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>What are the ids of all students who live in CHI?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>Show ids for all students who have advisor 1121.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>What are the ids of all students who have advisor number 1121?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Show first name for all students with major 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>What are the first names for all students who are from the major numbered 600?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"Student","type":"grid"}]<|endoftext|><|prompter|>How many different advisors are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>How many advisors are there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>Show first name, last name, age for all female students. Their sex is F.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>What are the full names and ages for all female students whose sex is F?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show student ids for all male students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>What are the student ids for all male students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>How many students are age 18?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>How many students are 18 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>Show all student ids who are older than 20.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>What are the student ids for students over 20 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>Which city does the student whose last name is "Kim" live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Give the city that the student whose family name is Kim lives in.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Who is the advisor of student with ID 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Who advises student 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Show all majors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>How many students are there for each major?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>Show all ages and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>How old is each student and how many students are each age?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>Show the average age for male and female students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>Calculate the mean age for male and female students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>Show all cities and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>How many students live in each city?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>Show all advisors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>How many students does each advisor have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>What is the age of student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>What is the gender of the student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>List all students' first names and last names who majored in 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>Which city does student Linda Smith live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>Advisor 1121 has how many students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Which Advisor has most of students? List advisor and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Advisor"},{"actionType":"ChangeTopFilter","column":"Advisor","limit":1,"aggregation":"count","direction":"desk"}]}}<|endoftext|><|prompter|>Which major has least number of students? List the major and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Major"},{"actionType":"ChangeTopFilter","column":"Major","limit":1,"aggregation":"count","direction":"ask"}]}}<|endoftext|><|prompter|>Which student's age is older than 18 and is majoring in 600? List each student's first and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"!=","value":600},{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show ids for all students who live in CHI.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>What are the ids of all students who live in CHI?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>Show ids for all students who have advisor 1121.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>What are the ids of all students who have advisor number 1121?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Show first name for all students with major 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>What are the first names for all students who are from the major numbered 600?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"Student","type":"grid"}]<|endoftext|><|prompter|>How many different advisors are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>How many advisors are there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>Show first name, last name, age for all female students. Their sex is F.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>What are the full names and ages for all female students whose sex is F?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show student ids for all male students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>What are the student ids for all male students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>How many students are age 18?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>How many students are 18 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>Show all student ids who are older than 20.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>What are the student ids for students over 20 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>Which city does the student whose last name is "Kim" live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Give the city that the student whose family name is Kim lives in.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Who is the advisor of student with ID 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Who advises student 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Show all majors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>How many students are there for each major?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>Show all ages and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>How old is each student and how many students are each age?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>Show the average age for male and female students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>What are the average ages of male and female students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>Show all cities and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>How many students live in each city?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>Show all advisors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>How many students does each advisor have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>What is the age of student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>What is the gender of the student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>List all students' first names and last names who majored in 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>Which city does student Linda Smith live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>Advisor 1121 has how many students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Which Advisor has most of students? List advisor and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Advisor"},{"actionType":"ChangeTopFilter","column":"Advisor","limit":1,"aggregation":"count","direction":"desk"}]}}<|endoftext|><|prompter|>Which major has least number of students? List the major and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Major"},{"actionType":"ChangeTopFilter","column":"Major","limit":1,"aggregation":"count","direction":"ask"}]}}<|endoftext|><|prompter|>Which student's age is older than 18 and is majoring in 600? List each student's first and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"!=","value":600},{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show ids for all students who live in CHI.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>What are the ids of all students who live in CHI?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>Show ids for all students who have advisor 1121.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>What are the ids of all students who have advisor number 1121?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Show first name for all students with major 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>What are the first names for all students who are from the major numbered 600?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"Student","type":"grid"}]<|endoftext|><|prompter|>How many different advisors are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>How many advisors are there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>Show first name, last name, age for all female students. Their sex is F.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>What are the full names and ages for all female students whose sex is F?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show student ids for all male students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>What are the student ids for all male students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>How many students are age 18?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>How many students are 18 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>Show all student ids who are older than 20.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>What are the student ids for students over 20 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>Which city does the student whose last name is "Kim" live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Give the city that the student whose family name is Kim lives in.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Who is the advisor of student with ID 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Who advises student 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Show all majors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>How many students are there for each major?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>Show all ages and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>How old is each student and how many students are each age?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>Show the average age for male and female students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>What are the average ages for male and female students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>Display cities with their respective student populations.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>How many students live in each city?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>Show all advisors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>How many students does each advisor have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>What is the age of student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>What is the gender of the student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>List all students' first names and last names who majored in 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>Which city does student Linda Smith live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>Advisor 1121 has how many students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Which Advisor has most of students? List advisor and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Advisor"},{"actionType":"ChangeTopFilter","column":"Advisor","limit":1,"aggregation":"count","direction":"desk"}]}}<|endoftext|><|prompter|>Which major has least number of students? List the major and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Major"},{"actionType":"ChangeTopFilter","column":"Major","limit":1,"aggregation":"count","direction":"ask"}]}}<|endoftext|><|prompter|>Which student's age is older than 18 and is majoring in 600? List each student's first and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"!=","value":600},{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show ids for all students who live in CHI.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>What are the ids of all students who live in CHI?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>Show ids for all students who have advisor 1121.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>What are the ids of all students who have advisor number 1121?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Show first name for all students with major 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>What are the first names for all students who are from the major numbered 600?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"Student","type":"grid"}]<|endoftext|><|prompter|>How many different advisors are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>How many advisors are there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>Show first name, last name, age for all female students. Their sex is F.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>What are the full names and ages for all female students whose sex is F?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show student ids for all male students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>What are the student ids for all male students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>How many students are age 18?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>How many students are 18 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>Show all student ids who are older than 20.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>What are the student ids for students over 20 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>Which city does the student whose last name is "Kim" live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Give the city that the student whose family name is Kim lives in.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Who is the advisor of student with ID 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Who advises student 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Show all majors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>How many students are there for each major?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>Show all ages and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>How old is each student and how many students are each age?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>Show the average age for male and female students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>What are the average ages for male and female students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>Display all cities along with the corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>How many students live in each city?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>Show all advisors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>How many students does each advisor have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>What is the age of student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>What is the gender of the student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>List all students' first names and last names who majored in 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>Which city does student Linda Smith live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>Advisor 1121 has how many students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Which Advisor has most of students? List advisor and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Advisor"},{"actionType":"ChangeTopFilter","column":"Advisor","limit":1,"aggregation":"count","direction":"desk"}]}}<|endoftext|><|prompter|>Which major has least number of students? List the major and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Major"},{"actionType":"ChangeTopFilter","column":"Major","limit":1,"aggregation":"count","direction":"ask"}]}}<|endoftext|><|prompter|>Which student's age is older than 18 and is majoring in 600? List each student's first and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"!=","value":600},{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show ids for all students who live in CHI.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>What are the ids of all students who live in CHI?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>Show ids for all students who have advisor 1121.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>What are the ids of all students who have advisor number 1121?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Show first name for all students with major 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>What are the first names for all students who are from the major numbered 600?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"Student","type":"grid"}]<|endoftext|><|prompter|>How many different advisors are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>How many advisors are there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>Show first name, last name, age for all female students. Their sex is F.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>What are the full names and ages for all female students whose sex is F?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show student ids for all male students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>What are the student ids for all male students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>How many students are age 18?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>How many students are 18 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>Show all student ids who are older than 20.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>What are the student ids for students over 20 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>Which city does the student whose last name is "Kim" live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Give the city that the student whose family name is Kim lives in.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Who is the advisor of student with ID 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Who advises student 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Show all majors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>How many students are there for each major?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>Show all ages and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>How old is each student and how many students are each age?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>Show the average age for male and female students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>What are the average ages for male and female students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>Show all cities and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>Calculate the number of students in each city.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>Show all advisors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>How many students does each advisor have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>What is the age of student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>What is the gender of the student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>List all students' first names and last names who majored in 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>Which city does student Linda Smith live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>Advisor 1121 has how many students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Which Advisor has most of students? List advisor and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Advisor"},{"actionType":"ChangeTopFilter","column":"Advisor","limit":1,"aggregation":"count","direction":"desk"}]}}<|endoftext|><|prompter|>Which major has least number of students? List the major and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Major"},{"actionType":"ChangeTopFilter","column":"Major","limit":1,"aggregation":"count","direction":"ask"}]}}<|endoftext|><|prompter|>Which student's age is older than 18 and is majoring in 600? List each student's first and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"!=","value":600},{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show ids for all students who live in CHI.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>What are the ids of all students who live in CHI?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>Show ids for all students who have advisor 1121.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>What are the ids of all students who have advisor number 1121?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Show first name for all students with major 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>What are the first names for all students who are from the major numbered 600?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"Student","type":"grid"}]<|endoftext|><|prompter|>How many different advisors are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>How many advisors are there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>Show first name, last name, age for all female students. Their sex is F.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>What are the full names and ages for all female students whose sex is F?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show student ids for all male students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>What are the student ids for all male students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>How many students are age 18?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>How many students are 18 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>Show all student ids who are older than 20.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>What are the student ids for students over 20 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>Which city does the student whose last name is "Kim" live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Give the city that the student whose family name is Kim lives in.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Who is the advisor of student with ID 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Who advises student 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Show all majors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>How many students are there for each major?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>Show all ages and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>How old is each student and how many students are each age?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>Show the average age for male and female students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>What are the average ages for male and female students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>Show all cities and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>How many students reside in each city?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>Show all advisors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>How many students does each advisor have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>What is the age of student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>What is the gender of the student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>List all students' first names and last names who majored in 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>Which city does student Linda Smith live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>Advisor 1121 has how many students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Which Advisor has most of students? List advisor and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Advisor"},{"actionType":"ChangeTopFilter","column":"Advisor","limit":1,"aggregation":"count","direction":"desk"}]}}<|endoftext|><|prompter|>Which major has least number of students? List the major and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Major"},{"actionType":"ChangeTopFilter","column":"Major","limit":1,"aggregation":"count","direction":"ask"}]}}<|endoftext|><|prompter|>Which student's age is older than 18 and is majoring in 600? List each student's first and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"!=","value":600},{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show ids for all students who live in CHI.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>What are the ids of all students who live in CHI?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>Show ids for all students who have advisor 1121.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>What are the ids of all students who have advisor number 1121?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Show first name for all students with major 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>What are the first names for all students who are from the major numbered 600?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"Student","type":"grid"}]<|endoftext|><|prompter|>How many different advisors are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>How many advisors are there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>Show first name, last name, age for all female students. Their sex is F.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>What are the full names and ages for all female students whose sex is F?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show student ids for all male students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>What are the student ids for all male students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>How many students are age 18?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>How many students are 18 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>Show all student ids who are older than 20.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>What are the student ids for students over 20 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>Which city does the student whose last name is "Kim" live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Give the city that the student whose family name is Kim lives in.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Who is the advisor of student with ID 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Who advises student 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Show all majors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>How many students are there for each major?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>Show all ages and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>How old is each student and how many students are each age?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>Show the average age for male and female students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>What are the average ages for male and female students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>Show all cities and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>How many students live in each city?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>Show all advisors and the associated student count.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>How many students does each advisor have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>What is the age of student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>What is the gender of the student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>List all students' first names and last names who majored in 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>Which city does student Linda Smith live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>Advisor 1121 has how many students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Which Advisor has most of students? List advisor and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Advisor"},{"actionType":"ChangeTopFilter","column":"Advisor","limit":1,"aggregation":"count","direction":"desk"}]}}<|endoftext|><|prompter|>Which major has least number of students? List the major and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Major"},{"actionType":"ChangeTopFilter","column":"Major","limit":1,"aggregation":"count","direction":"ask"}]}}<|endoftext|><|prompter|>Which student's age is older than 18 and is majoring in 600? List each student's first and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"!=","value":600},{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show ids for all students who live in CHI.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>What are the ids of all students who live in CHI?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>Show ids for all students who have advisor 1121.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>What are the ids of all students who have advisor number 1121?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Show first name for all students with major 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>What are the first names for all students who are from the major numbered 600?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"Student","type":"grid"}]<|endoftext|><|prompter|>How many different advisors are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>How many advisors are there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>Show first name, last name, age for all female students. Their sex is F.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>What are the full names and ages for all female students whose sex is F?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show student ids for all male students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>What are the student ids for all male students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>How many students are age 18?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>How many students are 18 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>Show all student ids who are older than 20.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>What are the student ids for students over 20 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>Which city does the student whose last name is "Kim" live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Give the city that the student whose family name is Kim lives in.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Who is the advisor of student with ID 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Who advises student 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Show all majors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>How many students are there for each major?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>Show all ages and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>How old is each student and how many students are each age?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>Show the average age for male and female students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>What are the average ages for male and female students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>Show all cities and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>How many students live in each city?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>Show the advisors and the corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>How many students does each advisor have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>What is the age of student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>What is the gender of the student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>List all students' first names and last names who majored in 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>Which city does student Linda Smith live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>Advisor 1121 has how many students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Which Advisor has most of students? List advisor and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Advisor"},{"actionType":"ChangeTopFilter","column":"Advisor","limit":1,"aggregation":"count","direction":"desk"}]}}<|endoftext|><|prompter|>Which major has least number of students? List the major and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Major"},{"actionType":"ChangeTopFilter","column":"Major","limit":1,"aggregation":"count","direction":"ask"}]}}<|endoftext|><|prompter|>Which student's age is older than 18 and is majoring in 600? List each student's first and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"!=","value":600},{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show ids for all students who live in CHI.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>What are the ids of all students who live in CHI?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>Show ids for all students who have advisor 1121.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>What are the ids of all students who have advisor number 1121?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Show first name for all students with major 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>What are the first names for all students who are from the major numbered 600?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"Student","type":"grid"}]<|endoftext|><|prompter|>How many different advisors are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>How many advisors are there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>Show first name, last name, age for all female students. Their sex is F.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>What are the full names and ages for all female students whose sex is F?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show student ids for all male students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>What are the student ids for all male students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>How many students are age 18?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>How many students are 18 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>Show all student ids who are older than 20.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>What are the student ids for students over 20 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>Which city does the student whose last name is "Kim" live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Give the city that the student whose family name is Kim lives in.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Who is the advisor of student with ID 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Who advises student 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Show all majors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>How many students are there for each major?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>Show all ages and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>How old is each student and how many students are each age?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>Show the average age for male and female students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>What are the average ages for male and female students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>Show all cities and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>How many students live in each city?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>Show all advisors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>Tally the number of students assigned to each advisor.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>What is the age of student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>What is the gender of the student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>List all students' first names and last names who majored in 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>Which city does student Linda Smith live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>Advisor 1121 has how many students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Which Advisor has most of students? List advisor and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Advisor"},{"actionType":"ChangeTopFilter","column":"Advisor","limit":1,"aggregation":"count","direction":"desk"}]}}<|endoftext|><|prompter|>Which major has least number of students? List the major and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Major"},{"actionType":"ChangeTopFilter","column":"Major","limit":1,"aggregation":"count","direction":"ask"}]}}<|endoftext|><|prompter|>Which student's age is older than 18 and is majoring in 600? List each student's first and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"!=","value":600},{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show ids for all students who live in CHI.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>What are the ids of all students who live in CHI?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>Show ids for all students who have advisor 1121.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>What are the ids of all students who have advisor number 1121?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Show first name for all students with major 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>What are the first names for all students who are from the major numbered 600?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"Student","type":"grid"}]<|endoftext|><|prompter|>How many different advisors are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>How many advisors are there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>Show first name, last name, age for all female students. Their sex is F.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>What are the full names and ages for all female students whose sex is F?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show student ids for all male students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>What are the student ids for all male students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>How many students are age 18?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>How many students are 18 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>Show all student ids who are older than 20.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>What are the student ids for students over 20 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>Which city does the student whose last name is "Kim" live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Give the city that the student whose family name is Kim lives in.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Who is the advisor of student with ID 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Who advises student 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Show all majors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>How many students are there for each major?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>Show all ages and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>How old is each student and how many students are each age?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>Show the average age for male and female students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>What are the average ages for male and female students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>Show all cities and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>How many students live in each city?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>Show all advisors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>Calculate the number of students for each advisor.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>What is the age of student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>What is the gender of the student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>List all students' first names and last names who majored in 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>Which city does student Linda Smith live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>Advisor 1121 has how many students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Which Advisor has most of students? List advisor and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Advisor"},{"actionType":"ChangeTopFilter","column":"Advisor","limit":1,"aggregation":"count","direction":"desk"}]}}<|endoftext|><|prompter|>Which major has least number of students? List the major and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Major"},{"actionType":"ChangeTopFilter","column":"Major","limit":1,"aggregation":"count","direction":"ask"}]}}<|endoftext|><|prompter|>Which student's age is older than 18 and is majoring in 600? List each student's first and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"!=","value":600},{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show ids for all students who live in CHI.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>What are the ids of all students who live in CHI?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>Show ids for all students who have advisor 1121.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>What are the ids of all students who have advisor number 1121?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Show first name for all students with major 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>What are the first names for all students who are from the major numbered 600?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"Student","type":"grid"}]<|endoftext|><|prompter|>How many different advisors are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>How many advisors are there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>Show first name, last name, age for all female students. Their sex is F.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>What are the full names and ages for all female students whose sex is F?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show student ids for all male students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>What are the student ids for all male students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>How many students are age 18?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>How many students are 18 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>Show all student ids who are older than 20.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>What are the student ids for students over 20 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>Which city does the student whose last name is "Kim" live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Give the city that the student whose family name is Kim lives in.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Who is the advisor of student with ID 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Who advises student 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Show all majors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>How many students are there for each major?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>Show all ages and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>How old is each student and how many students are each age?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>Show the average age for male and female students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>What are the average ages for male and female students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>Show all cities and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>How many students live in each city?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>Show all advisors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>How many students are advised by each advisor?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>What is the age of student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>What is the gender of the student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>List all students' first names and last names who majored in 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>Which city does student Linda Smith live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>Advisor 1121 has how many students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Which Advisor has most of students? List advisor and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Advisor"},{"actionType":"ChangeTopFilter","column":"Advisor","limit":1,"aggregation":"count","direction":"desk"}]}}<|endoftext|><|prompter|>Which major has least number of students? List the major and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Major"},{"actionType":"ChangeTopFilter","column":"Major","limit":1,"aggregation":"count","direction":"ask"}]}}<|endoftext|><|prompter|>Which student's age is older than 18 and is majoring in 600? List each student's first and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"!=","value":600},{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show ids for all students who live in CHI.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>What are the ids of all students who live in CHI?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>Show ids for all students who have advisor 1121.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>What are the ids of all students who have advisor number 1121?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Show first name for all students with major 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>What are the first names for all students who are from the major numbered 600?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"Student","type":"grid"}]<|endoftext|><|prompter|>How many different advisors are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>How many advisors are there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>Show first name, last name, age for all female students. Their sex is F.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>What are the full names and ages for all female students whose sex is F?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show student ids for all male students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>What are the student ids for all male students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>How many students are age 18?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>How many students are 18 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>Show all student ids who are older than 20.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>What are the student ids for students over 20 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>Which city does the student whose last name is "Kim" live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Give the city that the student whose family name is Kim lives in.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Who is the advisor of student with ID 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Who advises student 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Show all majors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>How many students are there for each major?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>Show all ages and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>How old is each student and how many students are each age?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>Show the average age for male and female students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>What are the average ages for male and female students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>Show all cities and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>How many students live in each city?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>Show all advisors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>How many students does each advisor have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>What is the age of student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>What is the gender of the student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>List all students' first names and last names who majored in 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>Which city does student Linda Smith live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>Advisor 1121 has how many students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Which Advisor has most of students? List advisor and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Advisor"},{"actionType":"ChangeTopFilter","column":"Advisor","limit":1,"aggregation":"count","direction":"desk"}]}}<|endoftext|><|prompter|>Which major has least number of students? List the major and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Major"},{"actionType":"ChangeTopFilter","column":"Major","limit":1,"aggregation":"count","direction":"ask"}]}}<|endoftext|><|prompter|>Which student's age is older than 18 and is majoring in 600? List each student's first and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"!=","value":600},{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show ids for all students who live in CHI.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>What are the ids of all students who live in CHI?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>Show ids for all students who have advisor 1121.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>What are the ids of all students who have advisor number 1121?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Show first name for all students with major 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>What are the first names for all students who are from the major numbered 600?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"Student","type":"grid"}]<|endoftext|><|prompter|>How many different advisors are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>How many advisors are there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"advisor","aggregation":"count"}]}}<|endoftext|><|prompter|>Show first name, last name, age for all female students. Their sex is F.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>What are the full names and ages for all female students whose sex is F?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show student ids for all male students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>What are the student ids for all male students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"M"}]}}<|endoftext|><|prompter|>How many students are age 18?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>How many students are 18 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"=","value":18}]}}<|endoftext|><|prompter|>Show all student ids who are older than 20.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>What are the student ids for students over 20 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":20}]}}<|endoftext|><|prompter|>Which city does the student whose last name is "Kim" live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Give the city that the student whose family name is Kim lives in.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LName","operation":"=","value":"'Kim'"}]}}<|endoftext|><|prompter|>Who is the advisor of student with ID 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Who advises student 1004?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"StuID","operation":"=","value":1004}]}}<|endoftext|><|prompter|>Show all majors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>How many students are there for each major?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"major"}]}}<|endoftext|><|prompter|>Show all ages and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>How old is each student and how many students are each age?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"age"}]}}<|endoftext|><|prompter|>Show the average age for male and female students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>What are the average ages for male and female students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"sex"}]}}<|endoftext|><|prompter|>Show all cities and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>How many students live in each city?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"city_code"}]}}<|endoftext|><|prompter|>Show all advisors and corresponding number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>How many students does each advisor have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"advisor"}]}}<|endoftext|><|prompter|>What is the age of student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>What is the gender of the student Linda Smith?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>List all students' first names and last names who majored in 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>Which city does student Linda Smith live in?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Fname","operation":"=","value":"'Linda'"},{"actionType":"ChangeCondition","column":"Lname","operation":"=","value":"'Smith'"}]}}<|endoftext|><|prompter|>Advisor 1121 has how many students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Which Advisor has most of students? List advisor and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Advisor"},{"actionType":"ChangeTopFilter","column":"Advisor","limit":1,"aggregation":"count","direction":"desk"}]}}<|endoftext|><|prompter|>Which major has least number of students? List the major and the number of students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Major"},{"actionType":"ChangeTopFilter","column":"Major","limit":1,"aggregation":"count","direction":"ask"}]}}<|endoftext|><|prompter|>Which student's age is older than 18 and is majoring in 600? List each student's first and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Age","operation":">","value":18},{"actionType":"ChangeCondition","column":"Major","operation":"!=","value":600},{"actionType":"ChangeCondition","column":"Sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>Show ids for all students who live in CHI.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>What are the ids of all students who live in CHI?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_code","operation":"=","value":"'CHI'"}]}}<|endoftext|><|prompter|>Show ids for all students who have advisor 1121.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>What are the ids of all students who have advisor number 1121?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Advisor","operation":"=","value":1121}]}}<|endoftext|><|prompter|>Show first name for all students with major 600.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>What are the first names for all students who are from the major numbered 600?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["ID","name","dept_name","tot_cred"],"name":"student","type":"grid"}]<|endoftext|><|prompter|>What is the name of the student who has the highest total credits in the History department?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"dept_name","operation":"=","value":"History"},{"actionType":"ChangeTopFilter","column":"tot_cred","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>how many students are in the history department?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"name","aggregation":"count"},{"actionType":"ChangeCondition","column":"dept_name","operation":"=","value":"History"}]}}<|endoftext|><|prompter|>what is the average total credits in the history department?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"tot_cred","aggregation":"avg"},{"actionType":"ChangeCondition","column":"dept_name","operation":"=","value":"History"}]}}<|endoftext|><|prompter|>Thanks!<|endoftext|><|assistant|>{"text":"You are welcome!","dsl":{}}<|endoftext|>
COSQL
<|context|>[{"columns":["LastName","FirstName","Grade","Classroom"],"name":"list","type":"grid"}]<|endoftext|><|prompter|>what is the lname of grade 2<|endoftext|><|assistant|>{"text":"Do you mean what are the last names of the students in grade 2?","dsl":{}}<|endoftext|><|prompter|>what is the lname of classroom 101<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"classroom","operation":"=","value":101}]}}<|endoftext|><|prompter|>what is the fname of class room 102<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"classroom","operation":"=","value":102}]}}<|endoftext|>
COSQL
<|context|>[{"columns":["ID","name","dept_name","tot_cred"],"name":"student","type":"grid"}]<|endoftext|><|prompter|>What is the name of the student who has the highest total credits in the History department.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"dept_name","operation":"=","value":"History"},{"actionType":"ChangeTopFilter","column":"tot_cred","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Give the name of the student in the History department with the most credits.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"dept_name","operation":"=","value":"History"},{"actionType":"ChangeTopFilter","column":"tot_cred","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Find the name of the students and their department names sorted by their total credits in ascending order.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"tot_cred","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names of students and their respective departments, ordered by number of credits from least to greatest?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"tot_cred","direction":"ask"}]}}<|endoftext|><|prompter|>Calculate the total student count in every department.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"dept_name"}]}}<|endoftext|><|prompter|>How many students are in each department?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"dept_name"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["ID","name","dept_name","tot_cred"],"name":"student","type":"grid"}]<|endoftext|><|prompter|>What is the name of the student who has the highest total credits in the History department.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"dept_name","operation":"=","value":"History"},{"actionType":"ChangeTopFilter","column":"tot_cred","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Give the name of the student in the History department with the most credits.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"dept_name","operation":"=","value":"History"},{"actionType":"ChangeTopFilter","column":"tot_cred","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Find the name of the students and their department names sorted by their total credits in ascending order.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"tot_cred","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names of students and their respective departments, ordered by number of credits from least to greatest?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"tot_cred","direction":"ask"}]}}<|endoftext|><|prompter|>Calculate the total number of students in each department.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"dept_name"}]}}<|endoftext|><|prompter|>How many students are in each department?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"dept_name"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["ID","name","dept_name","tot_cred"],"name":"student","type":"grid"}]<|endoftext|><|prompter|>What is the name of the student who has the highest total credits in the History department.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"dept_name","operation":"=","value":"History"},{"actionType":"ChangeTopFilter","column":"tot_cred","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Give the name of the student in the History department with the most credits.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"dept_name","operation":"=","value":"History"},{"actionType":"ChangeTopFilter","column":"tot_cred","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Find the name of the students and their department names sorted by their total credits in ascending order.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"tot_cred","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names of students and their respective departments, ordered by number of credits from least to greatest?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"tot_cred","direction":"ask"}]}}<|endoftext|><|prompter|>Find the total number of students in each department.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"dept_name"}]}}<|endoftext|><|prompter|>How many students are enrolled in each department?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"dept_name"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["ID","name","dept_name","tot_cred"],"name":"student","type":"grid"}]<|endoftext|><|prompter|>What is the name of the student who has the highest total credits in the History department.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"dept_name","operation":"=","value":"History"},{"actionType":"ChangeTopFilter","column":"tot_cred","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Give the name of the student in the History department with the most credits.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"dept_name","operation":"=","value":"History"},{"actionType":"ChangeTopFilter","column":"tot_cred","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Find the name of the students and their department names sorted by their total credits in ascending order.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"tot_cred","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names of students and their respective departments, ordered by number of credits from least to greatest?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"tot_cred","direction":"ask"}]}}<|endoftext|><|prompter|>Find the total number of students in each department.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"dept_name"}]}}<|endoftext|><|prompter|>Determine the number of students in each department.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"dept_name"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["ID","name","dept_name","tot_cred"],"name":"student","type":"grid"}]<|endoftext|><|prompter|>What is the name of the student who has the highest total credits in the History department.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"dept_name","operation":"=","value":"History"},{"actionType":"ChangeTopFilter","column":"tot_cred","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Give the name of the student in the History department with the most credits.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"dept_name","operation":"=","value":"History"},{"actionType":"ChangeTopFilter","column":"tot_cred","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Find the name of the students and their department names sorted by their total credits in ascending order.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"tot_cred","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names of students and their respective departments, ordered by number of credits from least to greatest?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"tot_cred","direction":"ask"}]}}<|endoftext|><|prompter|>Find the total number of students in each department.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"dept_name"}]}}<|endoftext|><|prompter|>Count the students in every department.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"dept_name"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["ID","name","dept_name","tot_cred"],"name":"student","type":"grid"}]<|endoftext|><|prompter|>What is the name of the student who has the highest total credits in the History department.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"dept_name","operation":"=","value":"History"},{"actionType":"ChangeTopFilter","column":"tot_cred","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Give the name of the student in the History department with the most credits.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"dept_name","operation":"=","value":"History"},{"actionType":"ChangeTopFilter","column":"tot_cred","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Find the name of the students and their department names sorted by their total credits in ascending order.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"tot_cred","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names of students and their respective departments, ordered by number of credits from least to greatest?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"tot_cred","direction":"ask"}]}}<|endoftext|><|prompter|>Find the total number of students in each department.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"dept_name"}]}}<|endoftext|><|prompter|>Calculate the number of students in each department.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"dept_name"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["ID","name","dept_name","tot_cred"],"name":"student","type":"grid"}]<|endoftext|><|prompter|>What is the name of the student who has the highest total credits in the History department.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"dept_name","operation":"=","value":"History"},{"actionType":"ChangeTopFilter","column":"tot_cred","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Give the name of the student in the History department with the most credits.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"dept_name","operation":"=","value":"History"},{"actionType":"ChangeTopFilter","column":"tot_cred","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Find the name of the students and their department names sorted by their total credits in ascending order.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"tot_cred","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names of students and their respective departments, ordered by number of credits from least to greatest?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"tot_cred","direction":"ask"}]}}<|endoftext|><|prompter|>Find the total number of students in each department.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"dept_name"}]}}<|endoftext|><|prompter|>How many students are in each department?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"dept_name"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["Submission_ID","Scores","Author","College"],"name":"submission","type":"grid"}]<|endoftext|><|prompter|>List the authors of submissions in ascending order of scores.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Scores","direction":"ask"}]}}<|endoftext|><|prompter|>Find the author for each submission and list them in ascending order of submission score.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Scores","direction":"ask"}]}}<|endoftext|><|prompter|>What is the average score of submissions?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Scores","aggregation":"avg"}]}}<|endoftext|><|prompter|>Compute the average score of submissions.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Scores","aggregation":"avg"}]}}<|endoftext|><|prompter|>What is the author of the submission with the highest score?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"Scores","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Find the author who achieved the highest score in a submission.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"Scores","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Show the number of authors from each college.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"College"}]}}<|endoftext|><|prompter|>For each college, return the college name and the count of authors with submissions from that college.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"College"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["Submission_ID","Scores","Author","College"],"name":"submission","type":"grid"}]<|endoftext|><|prompter|>List the authors of submissions in ascending order of scores.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Scores","direction":"ask"}]}}<|endoftext|><|prompter|>Find the author for each submission and list them in ascending order of submission score.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Scores","direction":"ask"}]}}<|endoftext|><|prompter|>What is the average score of submissions?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Scores","aggregation":"avg"}]}}<|endoftext|><|prompter|>Compute the average score of submissions.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Scores","aggregation":"avg"}]}}<|endoftext|><|prompter|>What is the author of the submission with the highest score?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"Scores","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Find the author who achieved the highest score in a submission.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"Scores","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Can you display the colleges with the number of submission authors from each college?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"College"}]}}<|endoftext|><|prompter|>For each college, return the college name and the count of authors with submissions from that college.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"College"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["Submission_ID","Scores","Author","College"],"name":"submission","type":"grid"}]<|endoftext|><|prompter|>List the authors of submissions in ascending order of scores.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Scores","direction":"ask"}]}}<|endoftext|><|prompter|>Find the author for each submission and list them in ascending order of submission score.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Scores","direction":"ask"}]}}<|endoftext|><|prompter|>What is the average score of submissions?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Scores","aggregation":"avg"}]}}<|endoftext|><|prompter|>Compute the average score of submissions.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Scores","aggregation":"avg"}]}}<|endoftext|><|prompter|>What is the author of the submission with the highest score?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"Scores","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Find the author who achieved the highest score in a submission.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"Scores","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Show different colleges along with the number of authors of submission from each college.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"College"}]}}<|endoftext|><|prompter|>Provide the college name and the number of authors submitting from each college.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"College"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["Submission_ID","Scores","Author","College"],"name":"submission","type":"grid"}]<|endoftext|><|prompter|>List the authors of submissions in ascending order of scores.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Scores","direction":"ask"}]}}<|endoftext|><|prompter|>Find the author for each submission and list them in ascending order of submission score.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Scores","direction":"ask"}]}}<|endoftext|><|prompter|>What is the average score of submissions?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Scores","aggregation":"avg"}]}}<|endoftext|><|prompter|>Compute the average score of submissions.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Scores","aggregation":"avg"}]}}<|endoftext|><|prompter|>What is the author of the submission with the highest score?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"Scores","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Find the author who achieved the highest score in a submission.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"Scores","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Show different colleges along with the number of authors of submission from each college.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"College"}]}}<|endoftext|><|prompter|>Show the different nationalities and the number of journalists of each nationality.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"College"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["Submission_ID","Scores","Author","College"],"name":"submission","type":"grid"}]<|endoftext|><|prompter|>List the authors of submissions in ascending order of scores.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Scores","direction":"ask"}]}}<|endoftext|><|prompter|>Find the author for each submission and list them in ascending order of submission score.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Scores","direction":"ask"}]}}<|endoftext|><|prompter|>What is the average score of submissions?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Scores","aggregation":"avg"}]}}<|endoftext|><|prompter|>Compute the average score of submissions.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Scores","aggregation":"avg"}]}}<|endoftext|><|prompter|>What is the author of the submission with the highest score?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"Scores","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Find the author who achieved the highest score in a submission.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"Scores","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Show different colleges along with the number of authors of submission from each college.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"College"}]}}<|endoftext|><|prompter|>For each college, return the college name and the count of authors with submissions from that college.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"College"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["Member_ID","Name","Country","College_ID"],"name":"member","type":"grid"}]<|endoftext|><|prompter|>List the names of members in ascending alphabetical order.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Name","direction":"ask"}]}}<|endoftext|><|prompter|>Could you show the number of members from each country?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Country"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["Member_ID","Name","Country","College_ID"],"name":"member","type":"grid"}]<|endoftext|><|prompter|>List the names of members in ascending alphabetical order.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Name","direction":"ask"}]}}<|endoftext|><|prompter|>List the different countries and the number of members from each.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Country"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["Member_ID","Name","Country","College_ID"],"name":"member","type":"grid"}]<|endoftext|><|prompter|>List the names of members in ascending alphabetical order.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Name","direction":"ask"}]}}<|endoftext|><|prompter|>Show the different countries and the number of members from each.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Country"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["Region_id","Region_code","Region_name"],"name":"region","type":"grid"}]<|endoftext|><|prompter|>Show all region code and region name sorted by the codes.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"region_code","direction":"ask"}]}}<|endoftext|><|prompter|>What are the codes and names for all regions, sorted by codes?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"region_code","direction":"ask"}]}}<|endoftext|><|prompter|>List all region names in alphabetical order.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"region_name","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names of the regions in alphabetical order?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"region_name","direction":"ask"}]}}<|endoftext|><|prompter|>Show names for all regions except for Denmark.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"region_name","operation":"!=","value":"Denmark"}]}}<|endoftext|><|prompter|>Return the names of all regions other than Denmark.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"region_name","operation":"!=","value":"Denmark"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["Manufacturer_ID","Open_Year","Name","Num_of_Factories","Num_of_Shops"],"name":"manufacturer","type":"grid"}]<|endoftext|><|prompter|>Which manufacturer has the most number of shops? List its name and year of opening.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"num_of_shops","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Find the average number of factories for the manufacturers that have more than 20 shops.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Num_of_Factories","aggregation":"avg"},{"actionType":"ChangeCondition","column":"num_of_shops","operation":">","value":20}]}}<|endoftext|><|prompter|>List all manufacturer names and ids ordered by their opening year.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"open_year","direction":"ask"}]}}<|endoftext|><|prompter|>what is the average number of factories and maximum number of shops for manufacturers that opened before 1990.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"num_of_shops","aggregation":"max"},{"actionType":"ChangeAggregations","column":"Num_of_Factories","aggregation":"avg"},{"actionType":"ChangeCondition","column":"open_year","operation":"<","value":1990}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["mID","title","year","director"],"name":"Movie","type":"grid"}]<|endoftext|><|prompter|>Find the titles of all movies directed by steven spielberg.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"director","operation":"=","value":"Steven Spielberg"}]}}<|endoftext|><|prompter|>What are the names of all movies directed by Steven Spielberg?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"director","operation":"=","value":"Steven Spielberg"}]}}<|endoftext|><|prompter|>What is the name of the movie produced after 2000 and directed by James Cameron?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"director","operation":"=","value":"James Cameron"},{"actionType":"ChangeCondition","column":"YEAR","operation":">","value":2000}]}}<|endoftext|><|prompter|>What are the titles of all movies that James Cameron directed after 2000?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"director","operation":"=","value":"James Cameron"},{"actionType":"ChangeCondition","column":"YEAR","operation":">","value":2000}]}}<|endoftext|><|prompter|>How many movies were made before 2000?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":"<","value":2000}]}}<|endoftext|><|prompter|>How many movies were made before 2000?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":"<","value":2000}]}}<|endoftext|><|prompter|>Who is the director of movie Avatar?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"title","operation":"=","value":"Avatar"}]}}<|endoftext|><|prompter|>Who directed Avatar?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"title","operation":"=","value":"Avatar"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["School_ID","School","Location","Founded","Affiliation","Enrollment","Nickname","Primary_conference"],"name":"university","type":"grid"}]<|endoftext|><|prompter|>Hi, when was the University of Delaware founded?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"school","operation":"=","value":"University of Delaware"}]}}<|endoftext|><|prompter|>and Lebanon Valley College?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"school","operation":"=","value":"Lebanon Valley College"}]}}<|endoftext|><|prompter|>What is University of Rhode Island's affiliation?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"school","operation":"=","value":"University of Rhode Island"}]}}<|endoftext|><|prompter|>How many female students attend Lebanon Valley College?<|endoftext|><|assistant|>{"text":"Sorry, I cannot answer this.","dsl":{}}<|endoftext|><|prompter|>ok. Thanks!<|endoftext|><|assistant|>{"text":"OK. Bye!","dsl":{}}<|endoftext|>
COSQL
<|context|>[{"columns":["EMPLOYEE_ID","FIRST_NAME","LAST_NAME","EMAIL","PHONE_NUMBER","HIRE_DATE","JOB_ID","SALARY","COMMISSION_PCT","MANAGER_ID","DEPARTMENT_ID"],"name":"employees","type":"grid"}]<|endoftext|><|prompter|>What are the employees whose first name does not containing the letter M?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"first_name","operation":"not contains","value":"M"}]}}<|endoftext|><|prompter|>Display the full name , hire date , salaer, and department member of the above results. <|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"first_name","operation":"not contains","value":"M"}]}}<|endoftext|><|prompter|>Sort the results in ascending order by department. number.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"first_name","operation":"not contains","value":"M"},{"actionType":"ChangeSorting","column":"department_id","direction":"ask"}]}}<|endoftext|><|prompter|>Thanks!<|endoftext|><|assistant|>{"text":"Thank you. Good bye.","dsl":{}}<|endoftext|>
COSQL
<|context|>[{"columns":["Candidate_ID","People_ID","Poll_Source","Date","Support_rate","Consider_rate","Oppose_rate","Unsure_rate"],"name":"candidate","type":"grid"}]<|endoftext|><|prompter|>what are the top 3 highest support rates?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"support_rate","limit":3,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Return the top 3 greatest support rates.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"support_rate","limit":3,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Find the id of the candidate who got the lowest oppose rate.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"oppose_rate","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>What is the id of the candidate with the lowest oppose rate?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"oppose_rate","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>Please list support, consider, and oppose rates for each candidate in ascending order by unsure rate.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"unsure_rate","direction":"ask"}]}}<|endoftext|><|prompter|>What are the support, consider, and oppose rates of each candidate, ordered ascending by their unsure rate?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"unsure_rate","direction":"ask"}]}}<|endoftext|><|prompter|>which poll source does the highest oppose rate come from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"oppose_rate","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Return the poll source corresponding to the candidate who has the oppose rate.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"oppose_rate","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>find the highest support percentage, lowest consider rate and oppose rate of all candidates.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"support_rate","aggregation":"max"},{"actionType":"ChangeAggregations","column":"consider_rate","aggregation":"min"},{"actionType":"ChangeAggregations","column":"oppose_rate","aggregation":"min"}]}}<|endoftext|><|prompter|>Return the maximum support rate, minimum consider rate, and minimum oppose rate across all candidates?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"support_rate","aggregation":"max"},{"actionType":"ChangeAggregations","column":"consider_rate","aggregation":"min"},{"actionType":"ChangeAggregations","column":"oppose_rate","aggregation":"min"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["ID","course_id","sec_id","semester","year"],"name":"teaches","type":"grid"}]<|endoftext|><|prompter|>How many different instructors have taught some course?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"id","aggregation":"COUNT"}]}}<|endoftext|><|prompter|>Count the number of distinct instructors who have taught a course.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"id","aggregation":"COUNT"}]}}<|endoftext|><|prompter|>Find the total number of instructors who teach a course in the Spring 2010 semester.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"ID","aggregation":"COUNT"},{"actionType":"ChangeCondition","column":"semester","operation":"=","value":"Spring"},{"actionType":"ChangeCondition","column":"YEAR","operation":"=","value":2010}]}}<|endoftext|><|prompter|>How many instructors teach a course in the Spring of 2010?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"ID","aggregation":"COUNT"},{"actionType":"ChangeCondition","column":"semester","operation":"=","value":"Spring"},{"actionType":"ChangeCondition","column":"YEAR","operation":"=","value":2010}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["id","name","Height","Prominence","Range","Country"],"name":"mountain","type":"grid"}]<|endoftext|><|prompter|>What are the average prominence of the mountains in country 'Morocco'?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"prominence","aggregation":"avg"},{"actionType":"ChangeCondition","column":"country","operation":"=","value":"Morocco"}]}}<|endoftext|><|prompter|>What are the name, height and prominence of mountains which do not belong to the range 'Aberdare Range'?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"range","operation":"!=","value":"Aberdare Range"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["Campus","Year","CampusFee"],"name":"csu_fees","type":"grid"}]<|endoftext|><|prompter|>Find the average fee on a CSU campus in 1996<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"campusfee","aggregation":"avg"},{"actionType":"ChangeCondition","column":"YEAR","operation":"=","value":1996}]}}<|endoftext|><|prompter|>What is the average fee for a CSU campus in the year of 1996?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"campusfee","aggregation":"avg"},{"actionType":"ChangeCondition","column":"YEAR","operation":"=","value":1996}]}}<|endoftext|><|prompter|>What is the average fee on a CSU campus in 2005?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"campusfee","aggregation":"avg"},{"actionType":"ChangeCondition","column":"YEAR","operation":"=","value":2005}]}}<|endoftext|><|prompter|>What is the average fee for a CSU campus in the year of 2005?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"campusfee","aggregation":"avg"},{"actionType":"ChangeCondition","column":"YEAR","operation":"=","value":2005}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["Perpetrator_ID","People_ID","Date","Year","Location","Country","Killed","Injured"],"name":"perpetrator","type":"grid"}]<|endoftext|><|prompter|>List the date of perpetrators in descending order of the number of people killed.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Killed","direction":"desk"}]}}<|endoftext|><|prompter|>List the number of people injured by perpetrators in ascending order.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Injured","direction":"ask"}]}}<|endoftext|><|prompter|>What is the average number of people injured by all perpetrators?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Injured","aggregation":"avg"}]}}<|endoftext|><|prompter|>What is the location of the perpetrator with the largest kills.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"Killed","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>What are the perpetrator countries, and how many perpetrators are there in each?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Country"}]}}<|endoftext|><|prompter|>How many distinct locations of perpetrators are there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"LOCATION","aggregation":"count"}]}}<|endoftext|><|prompter|>In which year did the most recent crime happen?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"YEAR","aggregation":"max"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["Perpetrator_ID","People_ID","Date","Year","Location","Country","Killed","Injured"],"name":"perpetrator","type":"grid"}]<|endoftext|><|prompter|>List the date of perpetrators in descending order of the number of people killed.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Killed","direction":"desk"}]}}<|endoftext|><|prompter|>List the number of people injured by perpetrators in ascending order.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Injured","direction":"ask"}]}}<|endoftext|><|prompter|>What is the average number of people injured by all perpetrators?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Injured","aggregation":"avg"}]}}<|endoftext|><|prompter|>What is the location of the perpetrator with the largest kills.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"Killed","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Display the countries of perpetrators and the number of perpetrators in each country.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Country"}]}}<|endoftext|><|prompter|>How many distinct locations of perpetrators are there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"LOCATION","aggregation":"count"}]}}<|endoftext|><|prompter|>In which year did the most recent crime happen?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"YEAR","aggregation":"max"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["Perpetrator_ID","People_ID","Date","Year","Location","Country","Killed","Injured"],"name":"perpetrator","type":"grid"}]<|endoftext|><|prompter|>List the date of perpetrators in descending order of the number of people killed.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Killed","direction":"desk"}]}}<|endoftext|><|prompter|>List the number of people injured by perpetrators in ascending order.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Injured","direction":"ask"}]}}<|endoftext|><|prompter|>What is the average number of people injured by all perpetrators?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Injured","aggregation":"avg"}]}}<|endoftext|><|prompter|>What is the location of the perpetrator with the largest kills.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"Killed","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>What are the countries of perpetrators? Show each country and the corresponding number of perpetrators there.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Country"}]}}<|endoftext|><|prompter|>How many distinct locations of perpetrators are there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"LOCATION","aggregation":"count"}]}}<|endoftext|><|prompter|>In which year did the most recent crime happen?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"YEAR","aggregation":"max"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["id","first_name","last_name","company","address","city","state","country","postal_code","phone","fax","email","support_rep_id"],"name":"customers","type":"grid"}]<|endoftext|><|prompter|>How many countries are our customers located in? <|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"country","aggregation":"count"}]}}<|endoftext|><|prompter|>How many customers do we have with the last name Almeida?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"last_name","operation":"=","value":"'Almeida'"}]}}<|endoftext|><|prompter|>Show me the country where Roberto Almeida is located<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"first_name","operation":"=","value":"'Roberto'"},{"actionType":"ChangeCondition","column":"last_name","operation":"=","value":"'Almeida'"}]}}<|endoftext|><|prompter|>Thanks!<|endoftext|><|assistant|>{"text":"Thanks. bye.","dsl":{}}<|endoftext|>
COSQL
<|context|>[{"columns":["School_ID","School","Location","Founded","Affiliation","Enrollment","Nickname","Primary_conference"],"name":"university","type":"grid"}]<|endoftext|><|prompter|>What is the total number of students who were in enrolled in all colleges?<|endoftext|><|assistant|>{"text":"Do you mean the total number of enrollments for all colleges?","dsl":{}}<|endoftext|><|prompter|>Yes please<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Enrollment","aggregation":"sum"}]}}<|endoftext|><|prompter|>How about the total number of enrollments for just colleges that were founded after the year 1850?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Enrollment","aggregation":"sum"},{"actionType":"ChangeCondition","column":"founded","operation":">","value":1850}]}}<|endoftext|><|prompter|>How about the total number of enrollments for just colleges that were founded after the year 1850 for each type of affiliation?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Enrollment","aggregation":"sum"},{"actionType":"ChangeCondition","column":"founded","operation":">","value":1850},{"actionType":"ChangeGrouping","column":"affiliation"}]}}<|endoftext|><|prompter|>Thanks!<|endoftext|><|assistant|>{"text":"Bye","dsl":{}}<|endoftext|>
COSQL
<|context|>[{"columns":["id","name","date","bulgarian_commander","latin_commander","result"],"name":"battle","type":"grid"}]<|endoftext|><|prompter|>What are the name and results of the battles when the bulgarian commander is not 'Boril'<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"bulgarian_commander","operation":"!=","value":"Boril"}]}}<|endoftext|><|prompter|>What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"bulgarian_commander","operation":"=","value":"Kaloyan"},{"actionType":"ChangeCondition","column":"latin_commander","operation":"=","value":"Baldwin I"}]}}<|endoftext|><|prompter|>How many different results are there for the battles?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"RESULT","aggregation":"count"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["Event_ID","Date","Venue","Name","Event_Attendance"],"name":"event","type":"grid"}]<|endoftext|><|prompter|>What is the average attendance of all events?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Event_Attendance","aggregation":"avg"}]}}<|endoftext|><|prompter|>What is the maximum attendance of all events?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Event_Attendance","aggregation":"max"}]}}<|endoftext|><|prompter|>What is the minimum attendance of all events?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Event_Attendance","aggregation":"min"}]}}<|endoftext|>
COSQL
<|context|>[{"columns":["raceId","year","round","circuitId","name","date","time","url"],"name":"races","type":"grid"}]<|endoftext|><|prompter|>What is the name of the race held most recently?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"date","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>What is the name of the race that occurred most recently?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"date","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>What is the name and date of the most recent race?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"date","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>What is the name and date of the race that occurred most recently?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"date","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Find the names of all races held in 2017.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":"=","value":2017}]}}<|endoftext|><|prompter|>What are the names of all the races that occurred in the year 2017?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":"=","value":2017}]}}<|endoftext|><|prompter|>Find the distinct names of all races held between 2014 and 2017?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":">=","value":2014},{"actionType":"ChangeCondition","column":"YEAR","operation":"<=","value":2017}]}}<|endoftext|><|prompter|>What are the unique names of all race held between 2014 and 2017?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":">=","value":2014},{"actionType":"ChangeCondition","column":"YEAR","operation":"<=","value":2017}]}}<|endoftext|><|prompter|>List the names of all distinct races in reversed lexicographic order?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"desk"}]}}<|endoftext|><|prompter|>What are the different names of all the races in reverse alphabetical order?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names of races held between 2009 and 2011?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":">=","value":2009},{"actionType":"ChangeCondition","column":"YEAR","operation":"<=","value":2011}]}}<|endoftext|><|prompter|>What are the names of all races held between 2009 and 2011?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":">=","value":2009},{"actionType":"ChangeCondition","column":"YEAR","operation":"<=","value":2011}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["ID","name","dept_name","salary"],"name":"instructor","type":"grid"}]<|endoftext|><|prompter|>Find out the average salary of professors?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"salary","aggregation":"avg"}]}}<|endoftext|><|prompter|>Find the average salary of the professors of each department?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"salary","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"dept_name"}]}}<|endoftext|><|prompter|>Which department has the highest average salary of professors?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"dept_name"},{"actionType":"ChangeTopFilter","column":"salary","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Which department has the lowest average salary of professors?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"dept_name"},{"actionType":"ChangeTopFilter","column":"salary","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>In which department Mr. Mird work for?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Mird"}]}}<|endoftext|><|prompter|>How much is the salary Mr. Mird earns currently?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Mird"}]}}<|endoftext|><|prompter|>Thanks!<|endoftext|><|assistant|>{"text":"you are welcome! goodbye.","dsl":{}}<|endoftext|>
COSQL
<|context|>[{"columns":["name","age","city","gender","job"],"name":"Person","type":"grid"}]<|endoftext|><|prompter|>How many females does this network has?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>How many females are in the network?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>What is the average age for all person?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>What is the average age for all people in the table?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>How many different cities are they from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different cities do people originate from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many type of jobs do they have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different jobs are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How old is the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>What is the age of the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>Who is the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>What is the name of the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>How many people whose age is greater 30 and job is engineer?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>HOw many engineers are older than 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>What is the mean age for both genders?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How old is each gender, on average?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>What is average age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the average person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is average age of male for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is the average age for a male in each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is minimum age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the youngest person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>Find the number of people who is under 40 for each gender.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How many people are under 40 for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>list the name, job title of all people ordered by their names.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names and job titles of every person ordered alphabetically by name?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>Find the names of all person sorted in the descending order using age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names of everybody sorted by age in descending order?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>Find the name and age of all males in order of their age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|><|prompter|>What is the name and age of every male? Order the results by age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["name","age","city","gender","job"],"name":"Person","type":"grid"}]<|endoftext|><|prompter|>How many females does this network has?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>How many females are in the network?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>What is the average age for all person?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>What is the average age for all people in the table?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>How many different cities are they from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different cities do people originate from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many type of jobs do they have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different jobs are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How old is the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>What is the age of the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>Who is the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>What is the name of the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>How many people whose age is greater 30 and job is engineer?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>HOw many engineers are older than 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>Determine the average age for each gender.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How old is each gender, on average?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>What is average age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the average person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is average age of male for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is the average age for a male in each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is minimum age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the youngest person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>Find the number of people who is under 40 for each gender.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How many people are under 40 for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>list the name, job title of all people ordered by their names.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names and job titles of every person ordered alphabetically by name?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>Find the names of all person sorted in the descending order using age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names of everybody sorted by age in descending order?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>Find the name and age of all males in order of their age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|><|prompter|>What is the name and age of every male? Order the results by age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["name","age","city","gender","job"],"name":"Person","type":"grid"}]<|endoftext|><|prompter|>How many females does this network has?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>How many females are in the network?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>What is the average age for all person?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>What is the average age for all people in the table?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>How many different cities are they from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different cities do people originate from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many type of jobs do they have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different jobs are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How old is the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>What is the age of the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>Who is the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>What is the name of the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>How many people whose age is greater 30 and job is engineer?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>HOw many engineers are older than 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>What is the average age for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>What is the average age for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>What is average age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the average person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is average age of male for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is the average age for a male in each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is minimum age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the youngest person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>Find the number of people who is under 40 for each gender.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How many people are under 40 for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>list the name, job title of all people ordered by their names.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names and job titles of every person ordered alphabetically by name?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>Find the names of all person sorted in the descending order using age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names of everybody sorted by age in descending order?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>Find the name and age of all males in order of their age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|><|prompter|>What is the name and age of every male? Order the results by age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["name","age","city","gender","job"],"name":"Person","type":"grid"}]<|endoftext|><|prompter|>How many females does this network has?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>How many females are in the network?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>What is the average age for all person?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>What is the average age for all people in the table?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>How many different cities are they from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different cities do people originate from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many type of jobs do they have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different jobs are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How old is the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>What is the age of the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>Who is the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>What is the name of the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>How many people whose age is greater 30 and job is engineer?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>HOw many engineers are older than 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>What is the average age for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>What is the average age for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>What is average age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the average person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is average age of male for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is the average age for a male in each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is minimum age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the youngest person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>Find the number of people who is under 40 for each gender.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How many people are under 40 for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>list the name, job title of all people ordered by their names.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names and job titles of every person ordered alphabetically by name?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>Find the names of all person sorted in the descending order using age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names of everybody sorted by age in descending order?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>Find the name and age of all males in order of their age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|><|prompter|>What is the name and age of every male? Order the results by age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["name","age","city","gender","job"],"name":"Person","type":"grid"}]<|endoftext|><|prompter|>How many females does this network has?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>How many females are in the network?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>What is the average age for all person?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>What is the average age for all people in the table?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>How many different cities are they from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different cities do people originate from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many type of jobs do they have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different jobs are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How old is the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>What is the age of the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>Who is the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>What is the name of the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>How many people whose age is greater 30 and job is engineer?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>HOw many engineers are older than 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>What is the average age for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How old is each gender, on average?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>What is the average age across different job positions?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the average person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is average age of male for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is the average age for a male in each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is minimum age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the youngest person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>Find the number of people who is under 40 for each gender.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How many people are under 40 for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>list the name, job title of all people ordered by their names.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names and job titles of every person ordered alphabetically by name?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>Find the names of all person sorted in the descending order using age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names of everybody sorted by age in descending order?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>Find the name and age of all males in order of their age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|><|prompter|>What is the name and age of every male? Order the results by age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["name","age","city","gender","job"],"name":"Person","type":"grid"}]<|endoftext|><|prompter|>How many females does this network has?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>How many females are in the network?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>What is the average age for all person?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>What is the average age for all people in the table?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>How many different cities are they from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different cities do people originate from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many type of jobs do they have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different jobs are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How old is the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>What is the age of the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>Who is the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>What is the name of the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>How many people whose age is greater 30 and job is engineer?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>HOw many engineers are older than 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>What is the average age for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How old is each gender, on average?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>What is the average age for each job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the average person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is average age of male for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is the average age for a male in each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is minimum age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the youngest person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>Find the number of people who is under 40 for each gender.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How many people are under 40 for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>list the name, job title of all people ordered by their names.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names and job titles of every person ordered alphabetically by name?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>Find the names of all person sorted in the descending order using age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names of everybody sorted by age in descending order?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>Find the name and age of all males in order of their age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|><|prompter|>What is the name and age of every male? Order the results by age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["name","age","city","gender","job"],"name":"Person","type":"grid"}]<|endoftext|><|prompter|>How many females does this network has?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>How many females are in the network?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>What is the average age for all person?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>What is the average age for all people in the table?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>How many different cities are they from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different cities do people originate from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many type of jobs do they have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different jobs are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How old is the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>What is the age of the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>Who is the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>What is the name of the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>How many people whose age is greater 30 and job is engineer?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>HOw many engineers are older than 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>What is the average age for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How old is each gender, on average?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>What is average age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>Calculate the average age of individuals for each occupation.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is average age of male for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is the average age for a male in each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is minimum age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the youngest person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>Find the number of people who is under 40 for each gender.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How many people are under 40 for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>list the name, job title of all people ordered by their names.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names and job titles of every person ordered alphabetically by name?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>Find the names of all person sorted in the descending order using age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names of everybody sorted by age in descending order?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>Find the name and age of all males in order of their age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|><|prompter|>What is the name and age of every male? Order the results by age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["name","age","city","gender","job"],"name":"Person","type":"grid"}]<|endoftext|><|prompter|>How many females does this network has?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>How many females are in the network?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>What is the average age for all person?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>What is the average age for all people in the table?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>How many different cities are they from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different cities do people originate from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many type of jobs do they have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different jobs are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How old is the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>What is the age of the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>Who is the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>What is the name of the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>How many people whose age is greater 30 and job is engineer?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>HOw many engineers are older than 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>What is the average age for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How old is each gender, on average?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>What is average age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is the average age for each occupation?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is average age of male for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is the average age for a male in each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is minimum age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the youngest person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>Find the number of people who is under 40 for each gender.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How many people are under 40 for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>list the name, job title of all people ordered by their names.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names and job titles of every person ordered alphabetically by name?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>Find the names of all person sorted in the descending order using age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names of everybody sorted by age in descending order?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>Find the name and age of all males in order of their age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|><|prompter|>What is the name and age of every male? Order the results by age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["name","age","city","gender","job"],"name":"Person","type":"grid"}]<|endoftext|><|prompter|>How many females does this network has?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>How many females are in the network?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>What is the average age for all person?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>What is the average age for all people in the table?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>How many different cities are they from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different cities do people originate from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many type of jobs do they have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different jobs are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How old is the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>What is the age of the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>Who is the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>What is the name of the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>How many people whose age is greater 30 and job is engineer?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>HOw many engineers are older than 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>What is the average age for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How old is each gender, on average?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>What is average age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the average person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is the average age of males for each job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is the average age for a male in each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is minimum age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the youngest person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>Find the number of people who is under 40 for each gender.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How many people are under 40 for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>list the name, job title of all people ordered by their names.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names and job titles of every person ordered alphabetically by name?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>Find the names of all person sorted in the descending order using age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names of everybody sorted by age in descending order?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>Find the name and age of all males in order of their age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|><|prompter|>What is the name and age of every male? Order the results by age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["name","age","city","gender","job"],"name":"Person","type":"grid"}]<|endoftext|><|prompter|>How many females does this network has?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>How many females are in the network?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>What is the average age for all person?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>What is the average age for all people in the table?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>How many different cities are they from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different cities do people originate from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many type of jobs do they have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different jobs are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How old is the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>What is the age of the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>Who is the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>What is the name of the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>How many people whose age is greater 30 and job is engineer?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>HOw many engineers are older than 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>What is the average age for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How old is each gender, on average?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>What is average age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the average person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is the average age of males with different job titles?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is the average age for a male in each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is minimum age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the youngest person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>Find the number of people who is under 40 for each gender.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How many people are under 40 for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>list the name, job title of all people ordered by their names.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names and job titles of every person ordered alphabetically by name?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>Find the names of all person sorted in the descending order using age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names of everybody sorted by age in descending order?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>Find the name and age of all males in order of their age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|><|prompter|>What is the name and age of every male? Order the results by age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["name","age","city","gender","job"],"name":"Person","type":"grid"}]<|endoftext|><|prompter|>How many females does this network has?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>How many females are in the network?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>What is the average age for all person?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>What is the average age for all people in the table?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>How many different cities are they from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different cities do people originate from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many type of jobs do they have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different jobs are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How old is the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>What is the age of the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>Who is the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>What is the name of the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>How many people whose age is greater 30 and job is engineer?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>HOw many engineers are older than 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>What is the average age for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How old is each gender, on average?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>What is average age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the average person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is average age of male for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>Calculate the average age of males in each job.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is minimum age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the youngest person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>Find the number of people who is under 40 for each gender.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How many people are under 40 for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>list the name, job title of all people ordered by their names.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names and job titles of every person ordered alphabetically by name?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>Find the names of all person sorted in the descending order using age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names of everybody sorted by age in descending order?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>Find the name and age of all males in order of their age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|><|prompter|>What is the name and age of every male? Order the results by age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["name","age","city","gender","job"],"name":"Person","type":"grid"}]<|endoftext|><|prompter|>How many females does this network has?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>How many females are in the network?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>What is the average age for all person?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>What is the average age for all people in the table?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>How many different cities are they from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different cities do people originate from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many type of jobs do they have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different jobs are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How old is the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>What is the age of the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>Who is the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>What is the name of the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>How many people whose age is greater 30 and job is engineer?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>HOw many engineers are older than 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>What is the average age for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How old is each gender, on average?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>What is average age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the average person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is average age of male for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is the average age for males in each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is minimum age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the youngest person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>Find the number of people who is under 40 for each gender.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How many people are under 40 for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>list the name, job title of all people ordered by their names.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names and job titles of every person ordered alphabetically by name?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>Find the names of all person sorted in the descending order using age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names of everybody sorted by age in descending order?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>Find the name and age of all males in order of their age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|><|prompter|>What is the name and age of every male? Order the results by age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["name","age","city","gender","job"],"name":"Person","type":"grid"}]<|endoftext|><|prompter|>How many females does this network has?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>How many females are in the network?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>What is the average age for all person?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>What is the average age for all people in the table?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>How many different cities are they from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different cities do people originate from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many type of jobs do they have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different jobs are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How old is the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>What is the age of the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>Who is the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>What is the name of the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>How many people whose age is greater 30 and job is engineer?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>HOw many engineers are older than 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>What is the average age for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How old is each gender, on average?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>What is average age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the average person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is average age of male for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is the average age for a male in each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is the minimum age for each job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the youngest person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>Find the number of people who is under 40 for each gender.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How many people are under 40 for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>list the name, job title of all people ordered by their names.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names and job titles of every person ordered alphabetically by name?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>Find the names of all person sorted in the descending order using age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names of everybody sorted by age in descending order?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>Find the name and age of all males in order of their age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|><|prompter|>What is the name and age of every male? Order the results by age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["name","age","city","gender","job"],"name":"Person","type":"grid"}]<|endoftext|><|prompter|>How many females does this network has?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>How many females are in the network?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>What is the average age for all person?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>What is the average age for all people in the table?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>How many different cities are they from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different cities do people originate from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many type of jobs do they have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different jobs are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How old is the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>What is the age of the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>Who is the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>What is the name of the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>How many people whose age is greater 30 and job is engineer?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>HOw many engineers are older than 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>What is the average age for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How old is each gender, on average?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>What is average age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the average person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is average age of male for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is the average age for a male in each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>Determine the minimum age for each job title.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the youngest person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>Find the number of people who is under 40 for each gender.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How many people are under 40 for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>list the name, job title of all people ordered by their names.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names and job titles of every person ordered alphabetically by name?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>Find the names of all person sorted in the descending order using age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names of everybody sorted by age in descending order?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>Find the name and age of all males in order of their age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|><|prompter|>What is the name and age of every male? Order the results by age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["name","age","city","gender","job"],"name":"Person","type":"grid"}]<|endoftext|><|prompter|>How many females does this network has?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>How many females are in the network?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>What is the average age for all person?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>What is the average age for all people in the table?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>How many different cities are they from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different cities do people originate from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many type of jobs do they have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different jobs are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How old is the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>What is the age of the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>Who is the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>What is the name of the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>How many people whose age is greater 30 and job is engineer?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>HOw many engineers are older than 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>What is the average age for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How old is each gender, on average?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>What is average age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the average person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is average age of male for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is the average age for a male in each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is minimum age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>Identify the youngest age for each job position.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>Find the number of people who is under 40 for each gender.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How many people are under 40 for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>list the name, job title of all people ordered by their names.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names and job titles of every person ordered alphabetically by name?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>Find the names of all person sorted in the descending order using age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names of everybody sorted by age in descending order?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>Find the name and age of all males in order of their age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|><|prompter|>What is the name and age of every male? Order the results by age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["name","age","city","gender","job"],"name":"Person","type":"grid"}]<|endoftext|><|prompter|>How many females does this network has?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>How many females are in the network?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>What is the average age for all person?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>What is the average age for all people in the table?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>How many different cities are they from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different cities do people originate from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many type of jobs do they have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different jobs are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How old is the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>What is the age of the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>Who is the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>What is the name of the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>How many people whose age is greater 30 and job is engineer?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>HOw many engineers are older than 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>What is the average age for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How old is each gender, on average?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>What is average age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the average person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is average age of male for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is the average age for a male in each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is minimum age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is the minimum age of the youngest person in each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>Find the number of people who is under 40 for each gender.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How many people are under 40 for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>list the name, job title of all people ordered by their names.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names and job titles of every person ordered alphabetically by name?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>Find the names of all person sorted in the descending order using age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names of everybody sorted by age in descending order?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>Find the name and age of all males in order of their age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|><|prompter|>What is the name and age of every male? Order the results by age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["name","age","city","gender","job"],"name":"Person","type":"grid"}]<|endoftext|><|prompter|>How many females does this network has?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>How many females are in the network?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>What is the average age for all person?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>What is the average age for all people in the table?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>How many different cities are they from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different cities do people originate from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many type of jobs do they have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different jobs are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How old is the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>What is the age of the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>Who is the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>What is the name of the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>How many people whose age is greater 30 and job is engineer?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>HOw many engineers are older than 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>What is the average age for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How old is each gender, on average?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>What is average age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the average person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is average age of male for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is the average age for a male in each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is minimum age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the youngest person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>Determine the count of individuals under 40 for both genders.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How many people are under 40 for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>list the name, job title of all people ordered by their names.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names and job titles of every person ordered alphabetically by name?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>Find the names of all person sorted in the descending order using age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names of everybody sorted by age in descending order?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>Find the name and age of all males in order of their age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|><|prompter|>What is the name and age of every male? Order the results by age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["name","age","city","gender","job"],"name":"Person","type":"grid"}]<|endoftext|><|prompter|>How many females does this network has?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>How many females are in the network?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>What is the average age for all person?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>What is the average age for all people in the table?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>How many different cities are they from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different cities do people originate from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many type of jobs do they have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different jobs are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How old is the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>What is the age of the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>Who is the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>What is the name of the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>How many people whose age is greater 30 and job is engineer?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>HOw many engineers are older than 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>What is the average age for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How old is each gender, on average?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>What is average age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the average person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is average age of male for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is the average age for a male in each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is minimum age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the youngest person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>Calculate the number of web accelerators used for each operating system.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How many people are under 40 for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>list the name, job title of all people ordered by their names.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names and job titles of every person ordered alphabetically by name?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>Find the names of all person sorted in the descending order using age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names of everybody sorted by age in descending order?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>Find the name and age of all males in order of their age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|><|prompter|>What is the name and age of every male? Order the results by age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["name","age","city","gender","job"],"name":"Person","type":"grid"}]<|endoftext|><|prompter|>How many females does this network has?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>How many females are in the network?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>What is the average age for all person?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>What is the average age for all people in the table?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>How many different cities are they from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different cities do people originate from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many type of jobs do they have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different jobs are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How old is the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>What is the age of the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>Who is the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>What is the name of the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>How many people whose age is greater 30 and job is engineer?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>HOw many engineers are older than 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>What is the average age for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How old is each gender, on average?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>What is average age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the average person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is average age of male for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is the average age for a male in each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is minimum age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the youngest person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>Find the number of people who is under 40 for each gender.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How many individuals below 40 years old are there for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>list the name, job title of all people ordered by their names.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names and job titles of every person ordered alphabetically by name?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>Find the names of all person sorted in the descending order using age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names of everybody sorted by age in descending order?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>Find the name and age of all males in order of their age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|><|prompter|>What is the name and age of every male? Order the results by age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["name","age","city","gender","job"],"name":"Person","type":"grid"}]<|endoftext|><|prompter|>How many females does this network has?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>How many females are in the network?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>What is the average age for all person?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>What is the average age for all people in the table?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>How many different cities are they from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different cities do people originate from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many type of jobs do they have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different jobs are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How old is the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>What is the age of the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>Who is the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>What is the name of the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>How many people whose age is greater 30 and job is engineer?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>HOw many engineers are older than 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>What is the average age for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How old is each gender, on average?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>What is average age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the average person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is average age of male for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is the average age for a male in each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is minimum age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the youngest person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>Find the number of people who is under 40 for each gender.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How many individuals under 40 are there for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>list the name, job title of all people ordered by their names.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names and job titles of every person ordered alphabetically by name?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>Find the names of all person sorted in the descending order using age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names of everybody sorted by age in descending order?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>Find the name and age of all males in order of their age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|><|prompter|>What is the name and age of every male? Order the results by age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["name","age","city","gender","job"],"name":"Person","type":"grid"}]<|endoftext|><|prompter|>How many females does this network has?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>How many females are in the network?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"female"}]}}<|endoftext|><|prompter|>What is the average age for all person?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>What is the average age for all people in the table?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"}]}}<|endoftext|><|prompter|>How many different cities are they from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different cities do people originate from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many type of jobs do they have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different jobs are listed?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"job","aggregation":"count"}]}}<|endoftext|><|prompter|>How old is the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>What is the age of the doctor named Zach?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"job","operation":"=","value":"doctor"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"Zach"}]}}<|endoftext|><|prompter|>Who is the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>What is the name of the person whose age is below 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":30}]}}<|endoftext|><|prompter|>How many people whose age is greater 30 and job is engineer?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>HOw many engineers are older than 30?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":">","value":30},{"actionType":"ChangeCondition","column":"job","operation":"=","value":"engineer"}]}}<|endoftext|><|prompter|>What is the average age for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How old is each gender, on average?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>What is average age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the average person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is average age of male for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is the average age for a male in each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"avg"},{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>What is minimum age for different job title?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>How old is the youngest person for each job?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"age","aggregation":"min"},{"actionType":"ChangeGrouping","column":"job"}]}}<|endoftext|><|prompter|>Find the number of people who is under 40 for each gender.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>How many people are under 40 for each gender?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"age","operation":"<","value":40},{"actionType":"ChangeGrouping","column":"gender"}]}}<|endoftext|><|prompter|>list the name, job title of all people ordered by their names.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names and job titles of every person ordered alphabetically by name?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>Find the names of all person sorted in the descending order using age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names of everybody sorted by age in descending order?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"age","direction":"desk"}]}}<|endoftext|><|prompter|>Find the name and age of all males in order of their age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|><|prompter|>What is the name and age of every male? Order the results by age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"age","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["id","title","artist_id"],"name":"albums","type":"grid"}]<|endoftext|><|prompter|>List every album ordered by album title in ascending order.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"title","direction":"ask"}]}}<|endoftext|><|prompter|>What are the titles of all the albums alphabetically ascending?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"title","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["School_id","Year","Budgeted","total_budget_percent_budgeted","Invested","total_budget_percent_invested","Budget_invested_percent"],"name":"budget","type":"grid"}]<|endoftext|><|prompter|>How many budgets are above 3000 in year 2001 or before?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"budgeted","operation":">","value":3000},{"actionType":"ChangeCondition","column":"YEAR","operation":"<=","value":2001}]}}<|endoftext|><|prompter|>Count the number of budgets in year 2001 or before whose budgeted amount is greater than 3000<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"budgeted","operation":">","value":3000},{"actionType":"ChangeCondition","column":"YEAR","operation":"<=","value":2001}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["ID","name","dept_name","salary"],"name":"instructor","type":"grid"}]<|endoftext|><|prompter|>what is the name of dept of statistics<|endoftext|><|assistant|>{"text":"Do you mean the name of instructors from the statistics department?","dsl":{}}<|endoftext|><|prompter|>yes<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"dept_name","operation":"=","value":"Statistics"}]}}<|endoftext|><|prompter|>show the total no. of ID<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"ID","aggregation":"count"}]}}<|endoftext|><|prompter|>what is the salary of the the ID 78699<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"id","operation":"=","value":78699}]}}<|endoftext|><|prompter|>what is the dept. name of the McKinnon<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"name","operation":"=","value":"McKinnon"}]}}<|endoftext|><|prompter|>Thanks!<|endoftext|><|assistant|>{"text":"Sure! What else can I help?","dsl":{}}<|endoftext|><|prompter|>Nothing.<|endoftext|><|assistant|>{"text":"OK. Bye! Have a good night!","dsl":{}}<|endoftext|>
COSQL
<|context|>[{"columns":["Company_ID","Rank","Company","Headquarters","Main_Industry","Sales_billion","Profits_billion","Assets_billion","Market_Value"],"name":"company","type":"grid"}]<|endoftext|><|prompter|>List the company name and rank for all companies in the decreasing order of their sales.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Sales_billion","direction":"desk"}]}}<|endoftext|><|prompter|>What is the name and rank of every company ordered by descending number of sales?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Sales_billion","direction":"desk"}]}}<|endoftext|><|prompter|>Show the company name and the main industry for all companies whose headquarters are not from USA.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"headquarters","operation":"!=","value":"USA"}]}}<|endoftext|><|prompter|>What are the companies and main industries of all companies that are not headquartered in the United States?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"headquarters","operation":"!=","value":"USA"}]}}<|endoftext|><|prompter|>Show all company names and headquarters in the descending order of market value.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"market_value","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names and headquarters of all companies ordered by descending market value?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"market_value","direction":"desk"}]}}<|endoftext|><|prompter|>List all headquarters locations and their respective company counts.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"headquarters"}]}}<|endoftext|><|prompter|>For each headquarter, what are the headquarter and how many companies are centered there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"headquarters"}]}}<|endoftext|><|prompter|>Show all main industry and total market value in each industry.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"market_value","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"main_industry"}]}}<|endoftext|><|prompter|>What are the main indstries and total market value for each industry?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"market_value","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"main_industry"}]}}<|endoftext|><|prompter|>List the main industry with highest total market value and its number of companies.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"main_industry"},{"actionType":"ChangeTopFilter","column":"market_value","limit":1,"aggregation":"sum","direction":"desk"}]}}<|endoftext|><|prompter|>For each main industry, what is the total number of companies for the industry with the highest total market value?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"main_industry"},{"actionType":"ChangeTopFilter","column":"market_value","limit":1,"aggregation":"sum","direction":"desk"}]}}<|endoftext|><|prompter|>find the rank, company names, market values of the companies in the banking industry order by their sales and profits in billion.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"main_industry","operation":"=","value":"Banking"},{"actionType":"ChangeSorting","column":"sales_billion","direction":"ask"},{"actionType":"ChangeSorting","column":"profits_billion","direction":"ask"}]}}<|endoftext|><|prompter|>What is the rank, company, and market value of every comapny in the banking industry ordered by sales and profits?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"main_industry","operation":"=","value":"Banking"},{"actionType":"ChangeSorting","column":"sales_billion","direction":"ask"},{"actionType":"ChangeSorting","column":"profits_billion","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["Company_ID","Rank","Company","Headquarters","Main_Industry","Sales_billion","Profits_billion","Assets_billion","Market_Value"],"name":"company","type":"grid"}]<|endoftext|><|prompter|>List the company name and rank for all companies in the decreasing order of their sales.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Sales_billion","direction":"desk"}]}}<|endoftext|><|prompter|>What is the name and rank of every company ordered by descending number of sales?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Sales_billion","direction":"desk"}]}}<|endoftext|><|prompter|>Show the company name and the main industry for all companies whose headquarters are not from USA.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"headquarters","operation":"!=","value":"USA"}]}}<|endoftext|><|prompter|>What are the companies and main industries of all companies that are not headquartered in the United States?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"headquarters","operation":"!=","value":"USA"}]}}<|endoftext|><|prompter|>Show all company names and headquarters in the descending order of market value.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"market_value","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names and headquarters of all companies ordered by descending market value?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"market_value","direction":"desk"}]}}<|endoftext|><|prompter|>Display all headquarters and the number of companies in each headquarters.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"headquarters"}]}}<|endoftext|><|prompter|>For each headquarter, what are the headquarter and how many companies are centered there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"headquarters"}]}}<|endoftext|><|prompter|>Show all main industry and total market value in each industry.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"market_value","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"main_industry"}]}}<|endoftext|><|prompter|>What are the main indstries and total market value for each industry?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"market_value","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"main_industry"}]}}<|endoftext|><|prompter|>List the main industry with highest total market value and its number of companies.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"main_industry"},{"actionType":"ChangeTopFilter","column":"market_value","limit":1,"aggregation":"sum","direction":"desk"}]}}<|endoftext|><|prompter|>For each main industry, what is the total number of companies for the industry with the highest total market value?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"main_industry"},{"actionType":"ChangeTopFilter","column":"market_value","limit":1,"aggregation":"sum","direction":"desk"}]}}<|endoftext|><|prompter|>find the rank, company names, market values of the companies in the banking industry order by their sales and profits in billion.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"main_industry","operation":"=","value":"Banking"},{"actionType":"ChangeSorting","column":"sales_billion","direction":"ask"},{"actionType":"ChangeSorting","column":"profits_billion","direction":"ask"}]}}<|endoftext|><|prompter|>What is the rank, company, and market value of every comapny in the banking industry ordered by sales and profits?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"main_industry","operation":"=","value":"Banking"},{"actionType":"ChangeSorting","column":"sales_billion","direction":"ask"},{"actionType":"ChangeSorting","column":"profits_billion","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["Company_ID","Rank","Company","Headquarters","Main_Industry","Sales_billion","Profits_billion","Assets_billion","Market_Value"],"name":"company","type":"grid"}]<|endoftext|><|prompter|>List the company name and rank for all companies in the decreasing order of their sales.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Sales_billion","direction":"desk"}]}}<|endoftext|><|prompter|>What is the name and rank of every company ordered by descending number of sales?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Sales_billion","direction":"desk"}]}}<|endoftext|><|prompter|>Show the company name and the main industry for all companies whose headquarters are not from USA.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"headquarters","operation":"!=","value":"USA"}]}}<|endoftext|><|prompter|>What are the companies and main industries of all companies that are not headquartered in the United States?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"headquarters","operation":"!=","value":"USA"}]}}<|endoftext|><|prompter|>Show all company names and headquarters in the descending order of market value.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"market_value","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names and headquarters of all companies ordered by descending market value?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"market_value","direction":"desk"}]}}<|endoftext|><|prompter|>List all headquarters and the number of companies in each headquarter.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"headquarters"}]}}<|endoftext|><|prompter|>For each headquarters location, display the location and the number of companies based there.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"headquarters"}]}}<|endoftext|><|prompter|>Show all main industry and total market value in each industry.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"market_value","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"main_industry"}]}}<|endoftext|><|prompter|>What are the main indstries and total market value for each industry?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"market_value","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"main_industry"}]}}<|endoftext|><|prompter|>List the main industry with highest total market value and its number of companies.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"main_industry"},{"actionType":"ChangeTopFilter","column":"market_value","limit":1,"aggregation":"sum","direction":"desk"}]}}<|endoftext|><|prompter|>For each main industry, what is the total number of companies for the industry with the highest total market value?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"main_industry"},{"actionType":"ChangeTopFilter","column":"market_value","limit":1,"aggregation":"sum","direction":"desk"}]}}<|endoftext|><|prompter|>find the rank, company names, market values of the companies in the banking industry order by their sales and profits in billion.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"main_industry","operation":"=","value":"Banking"},{"actionType":"ChangeSorting","column":"sales_billion","direction":"ask"},{"actionType":"ChangeSorting","column":"profits_billion","direction":"ask"}]}}<|endoftext|><|prompter|>What is the rank, company, and market value of every comapny in the banking industry ordered by sales and profits?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"main_industry","operation":"=","value":"Banking"},{"actionType":"ChangeSorting","column":"sales_billion","direction":"ask"},{"actionType":"ChangeSorting","column":"profits_billion","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["Company_ID","Rank","Company","Headquarters","Main_Industry","Sales_billion","Profits_billion","Assets_billion","Market_Value"],"name":"company","type":"grid"}]<|endoftext|><|prompter|>List the company name and rank for all companies in the decreasing order of their sales.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Sales_billion","direction":"desk"}]}}<|endoftext|><|prompter|>What is the name and rank of every company ordered by descending number of sales?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Sales_billion","direction":"desk"}]}}<|endoftext|><|prompter|>Show the company name and the main industry for all companies whose headquarters are not from USA.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"headquarters","operation":"!=","value":"USA"}]}}<|endoftext|><|prompter|>What are the companies and main industries of all companies that are not headquartered in the United States?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"headquarters","operation":"!=","value":"USA"}]}}<|endoftext|><|prompter|>Show all company names and headquarters in the descending order of market value.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"market_value","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names and headquarters of all companies ordered by descending market value?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"market_value","direction":"desk"}]}}<|endoftext|><|prompter|>List all headquarters and the number of companies in each headquarter.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"headquarters"}]}}<|endoftext|><|prompter|>List the headquarter locations and the number of companies located there for each headquarter.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"headquarters"}]}}<|endoftext|><|prompter|>Show all main industry and total market value in each industry.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"market_value","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"main_industry"}]}}<|endoftext|><|prompter|>What are the main indstries and total market value for each industry?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"market_value","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"main_industry"}]}}<|endoftext|><|prompter|>List the main industry with highest total market value and its number of companies.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"main_industry"},{"actionType":"ChangeTopFilter","column":"market_value","limit":1,"aggregation":"sum","direction":"desk"}]}}<|endoftext|><|prompter|>For each main industry, what is the total number of companies for the industry with the highest total market value?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"main_industry"},{"actionType":"ChangeTopFilter","column":"market_value","limit":1,"aggregation":"sum","direction":"desk"}]}}<|endoftext|><|prompter|>find the rank, company names, market values of the companies in the banking industry order by their sales and profits in billion.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"main_industry","operation":"=","value":"Banking"},{"actionType":"ChangeSorting","column":"sales_billion","direction":"ask"},{"actionType":"ChangeSorting","column":"profits_billion","direction":"ask"}]}}<|endoftext|><|prompter|>What is the rank, company, and market value of every comapny in the banking industry ordered by sales and profits?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"main_industry","operation":"=","value":"Banking"},{"actionType":"ChangeSorting","column":"sales_billion","direction":"ask"},{"actionType":"ChangeSorting","column":"profits_billion","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["Company_ID","Rank","Company","Headquarters","Main_Industry","Sales_billion","Profits_billion","Assets_billion","Market_Value"],"name":"company","type":"grid"}]<|endoftext|><|prompter|>List the company name and rank for all companies in the decreasing order of their sales.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Sales_billion","direction":"desk"}]}}<|endoftext|><|prompter|>What is the name and rank of every company ordered by descending number of sales?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Sales_billion","direction":"desk"}]}}<|endoftext|><|prompter|>Show the company name and the main industry for all companies whose headquarters are not from USA.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"headquarters","operation":"!=","value":"USA"}]}}<|endoftext|><|prompter|>What are the companies and main industries of all companies that are not headquartered in the United States?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"headquarters","operation":"!=","value":"USA"}]}}<|endoftext|><|prompter|>Show all company names and headquarters in the descending order of market value.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"market_value","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names and headquarters of all companies ordered by descending market value?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"market_value","direction":"desk"}]}}<|endoftext|><|prompter|>List all headquarters and the number of companies in each headquarter.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"headquarters"}]}}<|endoftext|><|prompter|>For each headquarter, what are the headquarter and how many companies are centered there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"headquarters"}]}}<|endoftext|><|prompter|>Present all primary industries and their total market values.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"market_value","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"main_industry"}]}}<|endoftext|><|prompter|>What are the main indstries and total market value for each industry?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"market_value","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"main_industry"}]}}<|endoftext|><|prompter|>List the main industry with highest total market value and its number of companies.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"main_industry"},{"actionType":"ChangeTopFilter","column":"market_value","limit":1,"aggregation":"sum","direction":"desk"}]}}<|endoftext|><|prompter|>For each main industry, what is the total number of companies for the industry with the highest total market value?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"main_industry"},{"actionType":"ChangeTopFilter","column":"market_value","limit":1,"aggregation":"sum","direction":"desk"}]}}<|endoftext|><|prompter|>find the rank, company names, market values of the companies in the banking industry order by their sales and profits in billion.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"main_industry","operation":"=","value":"Banking"},{"actionType":"ChangeSorting","column":"sales_billion","direction":"ask"},{"actionType":"ChangeSorting","column":"profits_billion","direction":"ask"}]}}<|endoftext|><|prompter|>What is the rank, company, and market value of every comapny in the banking industry ordered by sales and profits?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"main_industry","operation":"=","value":"Banking"},{"actionType":"ChangeSorting","column":"sales_billion","direction":"ask"},{"actionType":"ChangeSorting","column":"profits_billion","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["Company_ID","Rank","Company","Headquarters","Main_Industry","Sales_billion","Profits_billion","Assets_billion","Market_Value"],"name":"company","type":"grid"}]<|endoftext|><|prompter|>List the company name and rank for all companies in the decreasing order of their sales.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Sales_billion","direction":"desk"}]}}<|endoftext|><|prompter|>What is the name and rank of every company ordered by descending number of sales?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Sales_billion","direction":"desk"}]}}<|endoftext|><|prompter|>Show the company name and the main industry for all companies whose headquarters are not from USA.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"headquarters","operation":"!=","value":"USA"}]}}<|endoftext|><|prompter|>What are the companies and main industries of all companies that are not headquartered in the United States?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"headquarters","operation":"!=","value":"USA"}]}}<|endoftext|><|prompter|>Show all company names and headquarters in the descending order of market value.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"market_value","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names and headquarters of all companies ordered by descending market value?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"market_value","direction":"desk"}]}}<|endoftext|><|prompter|>List all headquarters and the number of companies in each headquarter.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"headquarters"}]}}<|endoftext|><|prompter|>For each headquarter, what are the headquarter and how many companies are centered there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"headquarters"}]}}<|endoftext|><|prompter|>Provide the total market value of each main industry.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"market_value","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"main_industry"}]}}<|endoftext|><|prompter|>What are the main indstries and total market value for each industry?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"market_value","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"main_industry"}]}}<|endoftext|><|prompter|>List the main industry with highest total market value and its number of companies.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"main_industry"},{"actionType":"ChangeTopFilter","column":"market_value","limit":1,"aggregation":"sum","direction":"desk"}]}}<|endoftext|><|prompter|>For each main industry, what is the total number of companies for the industry with the highest total market value?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"main_industry"},{"actionType":"ChangeTopFilter","column":"market_value","limit":1,"aggregation":"sum","direction":"desk"}]}}<|endoftext|><|prompter|>find the rank, company names, market values of the companies in the banking industry order by their sales and profits in billion.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"main_industry","operation":"=","value":"Banking"},{"actionType":"ChangeSorting","column":"sales_billion","direction":"ask"},{"actionType":"ChangeSorting","column":"profits_billion","direction":"ask"}]}}<|endoftext|><|prompter|>What is the rank, company, and market value of every comapny in the banking industry ordered by sales and profits?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"main_industry","operation":"=","value":"Banking"},{"actionType":"ChangeSorting","column":"sales_billion","direction":"ask"},{"actionType":"ChangeSorting","column":"profits_billion","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["Company_ID","Rank","Company","Headquarters","Main_Industry","Sales_billion","Profits_billion","Assets_billion","Market_Value"],"name":"company","type":"grid"}]<|endoftext|><|prompter|>List the company name and rank for all companies in the decreasing order of their sales.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Sales_billion","direction":"desk"}]}}<|endoftext|><|prompter|>What is the name and rank of every company ordered by descending number of sales?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Sales_billion","direction":"desk"}]}}<|endoftext|><|prompter|>Show the company name and the main industry for all companies whose headquarters are not from USA.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"headquarters","operation":"!=","value":"USA"}]}}<|endoftext|><|prompter|>What are the companies and main industries of all companies that are not headquartered in the United States?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"headquarters","operation":"!=","value":"USA"}]}}<|endoftext|><|prompter|>Show all company names and headquarters in the descending order of market value.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"market_value","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names and headquarters of all companies ordered by descending market value?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"market_value","direction":"desk"}]}}<|endoftext|><|prompter|>List all headquarters and the number of companies in each headquarter.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"headquarters"}]}}<|endoftext|><|prompter|>For each headquarter, what are the headquarter and how many companies are centered there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"headquarters"}]}}<|endoftext|><|prompter|>Show all main industry and total market value in each industry.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"market_value","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"main_industry"}]}}<|endoftext|><|prompter|>What are the primary industries and their total market values?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"market_value","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"main_industry"}]}}<|endoftext|><|prompter|>List the main industry with highest total market value and its number of companies.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"main_industry"},{"actionType":"ChangeTopFilter","column":"market_value","limit":1,"aggregation":"sum","direction":"desk"}]}}<|endoftext|><|prompter|>For each main industry, what is the total number of companies for the industry with the highest total market value?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"main_industry"},{"actionType":"ChangeTopFilter","column":"market_value","limit":1,"aggregation":"sum","direction":"desk"}]}}<|endoftext|><|prompter|>find the rank, company names, market values of the companies in the banking industry order by their sales and profits in billion.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"main_industry","operation":"=","value":"Banking"},{"actionType":"ChangeSorting","column":"sales_billion","direction":"ask"},{"actionType":"ChangeSorting","column":"profits_billion","direction":"ask"}]}}<|endoftext|><|prompter|>What is the rank, company, and market value of every comapny in the banking industry ordered by sales and profits?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"main_industry","operation":"=","value":"Banking"},{"actionType":"ChangeSorting","column":"sales_billion","direction":"ask"},{"actionType":"ChangeSorting","column":"profits_billion","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["Company_ID","Rank","Company","Headquarters","Main_Industry","Sales_billion","Profits_billion","Assets_billion","Market_Value"],"name":"company","type":"grid"}]<|endoftext|><|prompter|>List the company name and rank for all companies in the decreasing order of their sales.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Sales_billion","direction":"desk"}]}}<|endoftext|><|prompter|>What is the name and rank of every company ordered by descending number of sales?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Sales_billion","direction":"desk"}]}}<|endoftext|><|prompter|>Show the company name and the main industry for all companies whose headquarters are not from USA.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"headquarters","operation":"!=","value":"USA"}]}}<|endoftext|><|prompter|>What are the companies and main industries of all companies that are not headquartered in the United States?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"headquarters","operation":"!=","value":"USA"}]}}<|endoftext|><|prompter|>Show all company names and headquarters in the descending order of market value.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"market_value","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names and headquarters of all companies ordered by descending market value?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"market_value","direction":"desk"}]}}<|endoftext|><|prompter|>List all headquarters and the number of companies in each headquarter.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"headquarters"}]}}<|endoftext|><|prompter|>For each headquarter, what are the headquarter and how many companies are centered there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"headquarters"}]}}<|endoftext|><|prompter|>Show all main industry and total market value in each industry.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"market_value","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"main_industry"}]}}<|endoftext|><|prompter|>Provide the total market value of each main industry.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"market_value","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"main_industry"}]}}<|endoftext|><|prompter|>List the main industry with highest total market value and its number of companies.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"main_industry"},{"actionType":"ChangeTopFilter","column":"market_value","limit":1,"aggregation":"sum","direction":"desk"}]}}<|endoftext|><|prompter|>For each main industry, what is the total number of companies for the industry with the highest total market value?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"main_industry"},{"actionType":"ChangeTopFilter","column":"market_value","limit":1,"aggregation":"sum","direction":"desk"}]}}<|endoftext|><|prompter|>find the rank, company names, market values of the companies in the banking industry order by their sales and profits in billion.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"main_industry","operation":"=","value":"Banking"},{"actionType":"ChangeSorting","column":"sales_billion","direction":"ask"},{"actionType":"ChangeSorting","column":"profits_billion","direction":"ask"}]}}<|endoftext|><|prompter|>What is the rank, company, and market value of every comapny in the banking industry ordered by sales and profits?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"main_industry","operation":"=","value":"Banking"},{"actionType":"ChangeSorting","column":"sales_billion","direction":"ask"},{"actionType":"ChangeSorting","column":"profits_billion","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["Company_ID","Rank","Company","Headquarters","Main_Industry","Sales_billion","Profits_billion","Assets_billion","Market_Value"],"name":"company","type":"grid"}]<|endoftext|><|prompter|>List the company name and rank for all companies in the decreasing order of their sales.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Sales_billion","direction":"desk"}]}}<|endoftext|><|prompter|>What is the name and rank of every company ordered by descending number of sales?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Sales_billion","direction":"desk"}]}}<|endoftext|><|prompter|>Show the company name and the main industry for all companies whose headquarters are not from USA.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"headquarters","operation":"!=","value":"USA"}]}}<|endoftext|><|prompter|>What are the companies and main industries of all companies that are not headquartered in the United States?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"headquarters","operation":"!=","value":"USA"}]}}<|endoftext|><|prompter|>Show all company names and headquarters in the descending order of market value.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"market_value","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names and headquarters of all companies ordered by descending market value?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"market_value","direction":"desk"}]}}<|endoftext|><|prompter|>List all headquarters and the number of companies in each headquarter.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"headquarters"}]}}<|endoftext|><|prompter|>For each headquarter, what are the headquarter and how many companies are centered there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"headquarters"}]}}<|endoftext|><|prompter|>Show all main industry and total market value in each industry.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"market_value","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"main_industry"}]}}<|endoftext|><|prompter|>What are the main indstries and total market value for each industry?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"market_value","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"main_industry"}]}}<|endoftext|><|prompter|>List the main industry with highest total market value and its number of companies.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"main_industry"},{"actionType":"ChangeTopFilter","column":"market_value","limit":1,"aggregation":"sum","direction":"desk"}]}}<|endoftext|><|prompter|>For each main industry, what is the total number of companies for the industry with the highest total market value?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"main_industry"},{"actionType":"ChangeTopFilter","column":"market_value","limit":1,"aggregation":"sum","direction":"desk"}]}}<|endoftext|><|prompter|>find the rank, company names, market values of the companies in the banking industry order by their sales and profits in billion.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"main_industry","operation":"=","value":"Banking"},{"actionType":"ChangeSorting","column":"sales_billion","direction":"ask"},{"actionType":"ChangeSorting","column":"profits_billion","direction":"ask"}]}}<|endoftext|><|prompter|>What is the rank, company, and market value of every comapny in the banking industry ordered by sales and profits?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"main_industry","operation":"=","value":"Banking"},{"actionType":"ChangeSorting","column":"sales_billion","direction":"ask"},{"actionType":"ChangeSorting","column":"profits_billion","direction":"ask"}]}}<|endoftext|>
SPIDER