instruction
stringlengths
241
15.9k
source
stringclasses
2 values
<|context|>[{"columns":["id","customer_id","invoice_date","billing_address","billing_city","billing_state","billing_country","billing_postal_code","total"],"name":"invoices","type":"grid"}]<|endoftext|><|prompter|>What are the average invoice sizes of each country?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"total","aggregation":"AVG"},{"actionType":"ChangeGrouping","column":"billing_country"}]}}<|endoftext|><|prompter|>What was the country that had the highest invoice size?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"total","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>What are the top 10 countries with the highest invoice size along with their amount?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"total","limit":10,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Thanks!<|endoftext|><|assistant|>{"text":"you are welcome and 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|>Could you please display the first and last names of all employees whose first names end in the letter "m"?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"first_name","operation":"ends with","value":"m"}]}}<|endoftext|><|prompter|>What are their hire dates?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"first_name","operation":"ends with","value":"m"}]}}<|endoftext|><|prompter|>What commission pct do they get?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"first_name","operation":"ends with","value":"m"}]}}<|endoftext|><|prompter|>What is the name of the person who gets the highest pct commission?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"COMMISSION_PCT","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>What is the hire date of the person who gets the lowest pct commission?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"COMMISSION_PCT","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>Thanks!<|endoftext|><|assistant|>{"text":"Sure! Have a good night!","dsl":{}}<|endoftext|>
COSQL
<|context|>[{"columns":["Event_ID","Date","Venue","Name","Event_Attendance"],"name":"event","type":"grid"}]<|endoftext|><|prompter|>Show the dates, places, and names of events in descending order of the attendance.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Event_Attendance","direction":"desk"}]}}<|endoftext|><|prompter|>List the event venues and names that have the top 2 most number of people attended.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"Event_Attendance","limit":2,"aggregation":"avg","direction":"desk"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["Furniture_ID","Name","Num_of_Component","Market_Rate"],"name":"furniture","type":"grid"}]<|endoftext|><|prompter|>Return the name and ID of the furniture with the highest market rate<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"market_rate","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>which furniture are of highest quality?<|endoftext|><|assistant|>{"text":"Sorry, we don't have the information about the quarlity of furnitures in this table.","dsl":{}}<|endoftext|><|prompter|>rank the furniture according to the number of pieces available<|endoftext|><|assistant|>{"text":"Do you want a list of furniture name sorted by its corresponding number of component?","dsl":{}}<|endoftext|><|prompter|>Yes, Name and corresponding number of components.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"num_of_component","direction":"ask"}]}}<|endoftext|><|prompter|>Thanks!<|endoftext|><|assistant|>{"text":"Bye","dsl":{}}<|endoftext|>
COSQL
<|context|>[{"columns":["endowment_id","School_id","donator_name","amount"],"name":"endowment","type":"grid"}]<|endoftext|><|prompter|>list the amount for the largest donation<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"amount","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>list the name for the largest amount of donation<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"amount","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>what is the name for the smallest amount of donation<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"amount","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>Thanks!<|endoftext|><|assistant|>{"text":"You are welcome. Anything you'd like to know more?","dsl":{}}<|endoftext|><|prompter|>No<|endoftext|><|assistant|>{"text":"Good bye!","dsl":{}}<|endoftext|>
COSQL
<|context|>[{"columns":["movie_id","Title","Year","Director","Budget_million","Gross_worldwide"],"name":"movie","type":"grid"}]<|endoftext|><|prompter|>Show all movie titles, years, and directors, ordered by budget.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"budget_million","direction":"ask"}]}}<|endoftext|><|prompter|>What are the titles, years, and directors of all movies, ordered by budget in millions?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"budget_million","direction":"ask"}]}}<|endoftext|><|prompter|>How many movie directors are there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"director","aggregation":"COUNT"}]}}<|endoftext|><|prompter|>Count the number of different directors.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"director","aggregation":"COUNT"}]}}<|endoftext|><|prompter|>What is the title and director for the movie with highest worldwide gross in the year 2000 or before?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":"<=","value":2000},{"actionType":"ChangeTopFilter","column":"gross_worldwide","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Return the title and director of the movie released in the year 2000 or earlier that had the highest worldwide gross.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":"<=","value":2000},{"actionType":"ChangeTopFilter","column":"gross_worldwide","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["People_ID","Nationality","Name","Birth_Date","Height"],"name":"people","type":"grid"}]<|endoftext|><|prompter|>Identify distinct nationalities and the number of people from each nation.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Nationality"}]}}<|endoftext|><|prompter|>How many people are there of each nationality?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Nationality"}]}}<|endoftext|><|prompter|>List the names and birth dates of people in ascending alphabetical order of name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Name","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names and birth dates of people, ordered by their names in alphabetical order?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Name","direction":"ask"}]}}<|endoftext|><|prompter|>Show names of people whose nationality is not "Russia".<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Nationality","operation":"!=","value":"'Russia'"}]}}<|endoftext|><|prompter|>What are the names of people who are not from Russia?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Nationality","operation":"!=","value":"'Russia'"}]}}<|endoftext|><|prompter|>How many distinct nationalities are there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Nationality","aggregation":"count"}]}}<|endoftext|><|prompter|>Count the number of different nationalities.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Nationality","aggregation":"count"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["People_ID","Nationality","Name","Birth_Date","Height"],"name":"people","type":"grid"}]<|endoftext|><|prompter|>Can you provide a breakdown of the nationalities of people and the corresponding number of individuals from each nation?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Nationality"}]}}<|endoftext|><|prompter|>How many people are there of each nationality?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Nationality"}]}}<|endoftext|><|prompter|>List the names and birth dates of people in ascending alphabetical order of name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Name","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names and birth dates of people, ordered by their names in alphabetical order?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Name","direction":"ask"}]}}<|endoftext|><|prompter|>Show names of people whose nationality is not "Russia".<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Nationality","operation":"!=","value":"'Russia'"}]}}<|endoftext|><|prompter|>What are the names of people who are not from Russia?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Nationality","operation":"!=","value":"'Russia'"}]}}<|endoftext|><|prompter|>How many distinct nationalities are there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Nationality","aggregation":"count"}]}}<|endoftext|><|prompter|>Count the number of different nationalities.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Nationality","aggregation":"count"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["People_ID","Nationality","Name","Birth_Date","Height"],"name":"people","type":"grid"}]<|endoftext|><|prompter|>What are different nationalities of people and the corresponding number of people from each nation?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Nationality"}]}}<|endoftext|><|prompter|>Provide the count of people for every nationality.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Nationality"}]}}<|endoftext|><|prompter|>List the names and birth dates of people in ascending alphabetical order of name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Name","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names and birth dates of people, ordered by their names in alphabetical order?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Name","direction":"ask"}]}}<|endoftext|><|prompter|>Show names of people whose nationality is not "Russia".<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Nationality","operation":"!=","value":"'Russia'"}]}}<|endoftext|><|prompter|>What are the names of people who are not from Russia?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Nationality","operation":"!=","value":"'Russia'"}]}}<|endoftext|><|prompter|>How many distinct nationalities are there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Nationality","aggregation":"count"}]}}<|endoftext|><|prompter|>Count the number of different nationalities.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Nationality","aggregation":"count"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["People_ID","Nationality","Name","Birth_Date","Height"],"name":"people","type":"grid"}]<|endoftext|><|prompter|>What are different nationalities of people and the corresponding number of people from each nation?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Nationality"}]}}<|endoftext|><|prompter|>How many people of each nationality are there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Nationality"}]}}<|endoftext|><|prompter|>List the names and birth dates of people in ascending alphabetical order of name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Name","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names and birth dates of people, ordered by their names in alphabetical order?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Name","direction":"ask"}]}}<|endoftext|><|prompter|>Show names of people whose nationality is not "Russia".<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Nationality","operation":"!=","value":"'Russia'"}]}}<|endoftext|><|prompter|>What are the names of people who are not from Russia?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Nationality","operation":"!=","value":"'Russia'"}]}}<|endoftext|><|prompter|>How many distinct nationalities are there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Nationality","aggregation":"count"}]}}<|endoftext|><|prompter|>Count the number of different nationalities.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Nationality","aggregation":"count"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["People_ID","Nationality","Name","Birth_Date","Height"],"name":"people","type":"grid"}]<|endoftext|><|prompter|>What are different nationalities of people and the corresponding number of people from each nation?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Nationality"}]}}<|endoftext|><|prompter|>How many people are there of each nationality?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Nationality"}]}}<|endoftext|><|prompter|>List the names and birth dates of people in ascending alphabetical order of name.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Name","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names and birth dates of people, ordered by their names in alphabetical order?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Name","direction":"ask"}]}}<|endoftext|><|prompter|>Show names of people whose nationality is not "Russia".<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Nationality","operation":"!=","value":"'Russia'"}]}}<|endoftext|><|prompter|>What are the names of people who are not from Russia?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Nationality","operation":"!=","value":"'Russia'"}]}}<|endoftext|><|prompter|>How many distinct nationalities are there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Nationality","aggregation":"count"}]}}<|endoftext|><|prompter|>Count the number of different nationalities.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Nationality","aggregation":"count"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["id","train_number","name","origin","destination","time","interval"],"name":"train","type":"grid"}]<|endoftext|><|prompter|>What are the times of trains that go to chennai?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"destination","operation":"=","value":"Chennai"}]}}<|endoftext|><|prompter|>What are the trains names that go to chennai?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"destination","operation":"=","value":"Chennai"}]}}<|endoftext|><|prompter|>What is the origin of Ananthapuri express ?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"name","operation":"=","value":"'Ananthapuri Express'"}]}}<|endoftext|><|prompter|>Thanks!<|endoftext|><|assistant|>{"text":"goodbye","dsl":{}}<|endoftext|>
COSQL
<|context|>[{"columns":["Storm_ID","Name","Dates_active","Max_speed","Damage_millions_USD","Number_Deaths"],"name":"storm","type":"grid"}]<|endoftext|><|prompter|>Can you please show me the average damage for all storms?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"damage_millions_USD","aggregation":"avg"}]}}<|endoftext|><|prompter|>Can you please show me the maximum damage for all storms?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"damage_millions_USD","aggregation":"max"}]}}<|endoftext|><|prompter|>Can you please show me the minimum damage for all storms?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"damage_millions_USD","aggregation":"min"}]}}<|endoftext|><|prompter|>Can you please show me the minimum damage for all storms with maximum speed higher than 1000?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"damage_millions_USD","aggregation":"min"},{"actionType":"ChangeCondition","column":"max_speed","operation":">","value":1000}]}}<|endoftext|><|prompter|>Can you please show me the maximum damage for all storms with maximum speed higher than 1000?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"damage_millions_USD","aggregation":"max"},{"actionType":"ChangeCondition","column":"max_speed","operation":">","value":1000}]}}<|endoftext|><|prompter|>Thanks!<|endoftext|><|assistant|>{"text":"goodbye!","dsl":{}}<|endoftext|>
COSQL
<|context|>[{"columns":["cust_ID","cust_name","acc_type","acc_bal","no_of_loans","credit_score","branch_ID","state"],"name":"customer","type":"grid"}]<|endoftext|><|prompter|>Can show you the customer name of customer ID 1?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"cust_id","operation":"=","value":1}]}}<|endoftext|><|prompter|>* I have left the chat *<|endoftext|><|assistant|>{"text":"The customer name of customer id 1 is Mary.","dsl":{}}<|endoftext|><|prompter|>Can you show the average account balance of customers with credit score lower than 50 for each account type and their corresponding account types?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"acc_bal","aggregation":"avg"},{"actionType":"ChangeCondition","column":"credit_score","operation":"<","value":50},{"actionType":"ChangeGrouping","column":"acc_type"}]}}<|endoftext|><|prompter|>Thanks!<|endoftext|><|assistant|>{"text":"You are welcome.","dsl":{}}<|endoftext|>
COSQL
<|context|>[{"columns":["abstract","cid","citation_num","jid","pid","reference_num","title","year"],"name":"publication","type":"grid"}]<|endoftext|><|prompter|>return me the abstract of " Making database systems usable " .<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"title","operation":"=","value":"'Making database systems usable'"}]}}<|endoftext|><|prompter|>return me the year of " Making database systems usable "<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"title","operation":"=","value":"'Making database systems usable'"}]}}<|endoftext|><|prompter|>return me the year of " Making database systems usable " .<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"title","operation":"=","value":"'Making database systems usable'"}]}}<|endoftext|><|prompter|>return me the papers after 2000 .<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":">","value":2000}]}}<|endoftext|><|prompter|>return me the number of references of " Making database systems usable " .<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"title","operation":"=","value":"'Making database systems usable'"}]}}<|endoftext|><|prompter|>return me the references of " Making database systems usable " .<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"title","operation":"=","value":"'Making database systems usable'"}]}}<|endoftext|><|prompter|>return me the number of citations of " Making database systems usable " .<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"title","operation":"=","value":"'Making database systems usable'"}]}}<|endoftext|><|prompter|>return me the citations of " Making database systems usable " .<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"title","operation":"=","value":"'Making database systems usable'"}]}}<|endoftext|><|prompter|>return me the paper with more than 200 citations .<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"citation_num","operation":">","value":200}]}}<|endoftext|><|prompter|>return me the paper after 2000 with more than 200 citations .<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"citation_num","operation":">","value":200},{"actionType":"ChangeCondition","column":"YEAR","operation":">","value":2000}]}}<|endoftext|><|prompter|>return me the number of citations of " Making database systems usable " in each year .<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"citation_num","aggregation":"SUM"},{"actionType":"ChangeCondition","column":"title","operation":"=","value":"'Making database systems usable'"},{"actionType":"ChangeGrouping","column":"YEAR"}]}}<|endoftext|><|prompter|>return me the number of papers after 2000 .<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"title","aggregation":"COUNT"},{"actionType":"ChangeCondition","column":"YEAR","operation":">","value":2000}]}}<|endoftext|><|prompter|>return me the paper with the most citations .<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"citation_num","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>return me the paper after 2000 with the most citations .<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":">","value":2000},{"actionType":"ChangeTopFilter","column":"citation_num","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["registration_id","student_id","course_id","date_of_enrolment","date_of_completion"],"name":"Student_Course_Enrolment","type":"grid"}]<|endoftext|><|prompter|>How many distinct students are enrolled in courses?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"student_id","aggregation":"count"}]}}<|endoftext|><|prompter|>Find the number of distinct students enrolled in courses.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"student_id","aggregation":"count"}]}}<|endoftext|><|prompter|>How many distinct courses are enrolled in by students?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"course_id","aggregation":"count"}]}}<|endoftext|><|prompter|>Find the number of distinct courses that have enrolled students.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"course_id","aggregation":"count"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["best_of","draw_size","loser_age","loser_entry","loser_hand","loser_ht","loser_id","loser_ioc","loser_name","loser_rank","loser_rank_points","loser_seed","match_num","minutes","round","score","surface","tourney_date","tourney_id","tourney_level","tourney_name","winner_age","winner_entry","winner_hand","winner_ht","winner_id","winner_ioc","winner_name","winner_rank","winner_rank_points","winner_seed","year"],"name":"matches","type":"grid"}]<|endoftext|><|prompter|>What are the names of the 3 youngest winners across all matches?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"winner_age","limit":3,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>What are their ranks?<|endoftext|><|assistant|>{"text":"do you want to show their names as well?","dsl":{}}<|endoftext|><|prompter|>yes, please<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"winner_age","limit":3,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>What is the loser name for each of those matches?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"winner_age","limit":3,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>Thanks!<|endoftext|><|assistant|>{"text":"goodbye!","dsl":{}}<|endoftext|>
COSQL
<|context|>[{"columns":["Code","Name","Continent","Region","SurfaceArea","IndepYear","Population","LifeExpectancy","GNP","GNPOld","LocalName","GovernmentForm","HeadOfState","Capital","Code2"],"name":"country","type":"grid"}]<|endoftext|><|prompter|>Yes<|endoftext|><|assistant|>{"text":"Which country has the largest area?","dsl":{}}<|endoftext|><|prompter|>Which country has the largest area?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"SurfaceArea","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>And what is the population of this country? <|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"SurfaceArea","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Who is it's leader? <|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"SurfaceArea","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Thanks!<|endoftext|><|assistant|>{"text":"Sure. Anything else?","dsl":{}}<|endoftext|><|prompter|>Yes, on which continent is this country located? <|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"SurfaceArea","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Thanks!<|endoftext|><|assistant|>{"text":"You are welcome!","dsl":{}}<|endoftext|>
COSQL
<|context|>[{"columns":["document_id","draft_number","copy_number"],"name":"Draft_Copies","type":"grid"}]<|endoftext|><|prompter|>How many draft copies does the document with id 2 have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"document_id","operation":"=","value":2}]}}<|endoftext|><|prompter|>Which document has the most draft copies? List its document id and number of draft copies.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"copy_number","aggregation":"count"},{"actionType":"ChangeGrouping","column":"document_id"},{"actionType":"ChangeTopFilter","column":"copy_number","limit":1,"aggregation":"count","direction":"desk"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["Body_Builder_ID","People_ID","Snatch","Clean_Jerk","Total"],"name":"body_builder","type":"grid"}]<|endoftext|><|prompter|>List the total scores of body builders in ascending order.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Total","direction":"ask"}]}}<|endoftext|><|prompter|>List the snatch score and clean jerk score of body builders in ascending order of snatch score.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Snatch","direction":"ask"}]}}<|endoftext|><|prompter|>What is the average snatch score of body builders?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Snatch","aggregation":"avg"}]}}<|endoftext|><|prompter|>What are the clean and jerk score of the body builder with the highest total score?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"Total","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>What is the minimum snatch score?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"snatch","aggregation":"min"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["Station_ID","Name","Annual_entry_exit","Annual_interchanges","Total_Passengers","Location","Main_Services","Number_of_Platforms"],"name":"station","type":"grid"}]<|endoftext|><|prompter|>What are the top three total number of passengers?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"total_passengers","limit":3,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names and main services for train stations for these?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"total_passengers","limit":3,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>What about the names and main services for the train stations with the least 3 number of passengers?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"total_passengers","limit":3,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>Thanks!<|endoftext|><|assistant|>{"text":"Bye","dsl":{}}<|endoftext|>
COSQL
<|context|>[{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"student","type":"grid"}]<|endoftext|><|prompter|>Please show me how many female students have the major 600<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"sex","operation":"=","value":"F"},{"actionType":"ChangeCondition","column":"Major","operation":"=","value":600}]}}<|endoftext|><|prompter|>How many female students are there total?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"sex","operation":"=","value":"F"}]}}<|endoftext|><|prompter|>How many of these women are under 25 years old?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"sex","operation":"=","value":"F"},{"actionType":"ChangeCondition","column":"age","operation":"<","value":25}]}}<|endoftext|><|prompter|>Show me the ages of the 9 female students with ages under 25 years.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"sex","operation":"=","value":"F"},{"actionType":"ChangeCondition","column":"age","operation":"<","value":25}]}}<|endoftext|><|prompter|>Of all the students under 25, how many are female?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"sex","operation":"=","value":"F"},{"actionType":"ChangeCondition","column":"age","operation":"<","value":25}]}}<|endoftext|><|prompter|>What are the names of the female students that are under 25?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"sex","operation":"=","value":"F"},{"actionType":"ChangeCondition","column":"age","operation":"<","value":25}]}}<|endoftext|><|prompter|>Thanks!<|endoftext|><|assistant|>{"text":"You are welcome!","dsl":{}}<|endoftext|>
COSQL
<|context|>[{"columns":["homepage","jid","name"],"name":"journal","type":"grid"}]<|endoftext|><|prompter|>return me the homepage of PVLDB .<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"name","operation":"=","value":"'PVLDB'"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["District_ID","District_name","Headquartered_City","City_Population","City_Area"],"name":"district","type":"grid"}]<|endoftext|><|prompter|>Find all the distinct district names ordered by city area in descending.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"city_area","direction":"desk"}]}}<|endoftext|><|prompter|>What are the different district names in order of descending city area?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"city_area","direction":"desk"}]}}<|endoftext|><|prompter|>Find the name and population of district with population between 200000 and 2000000<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"City_Population","operation":">=","value":200000},{"actionType":"ChangeCondition","column":"City_Population","operation":"<=","value":2000000}]}}<|endoftext|><|prompter|>What are the district names and city populations for all districts that between 200,000 and 2,000,000 residents?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"City_Population","operation":">=","value":200000},{"actionType":"ChangeCondition","column":"City_Population","operation":"<=","value":2000000}]}}<|endoftext|><|prompter|>Which district has the largest population?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"city_population","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>What is the name of the district with the most residents?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"city_population","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Which district has the least area?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"city_area","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>What is the name of the district with the smallest area?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"city_area","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>Find the total population of the top 3 districts with the largest area.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city_population","aggregation":"sum"},{"actionType":"ChangeTopFilter","column":"city_area","limit":3,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>What is the total number of residents for the districts with the 3 largest areas?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city_population","aggregation":"sum"},{"actionType":"ChangeTopFilter","column":"city_area","limit":3,"aggregation":"avg","direction":"desk"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["bid","business_id","name","full_address","city","latitude","longitude","review_count","is_open","rating","state"],"name":"business","type":"grid"}]<|endoftext|><|prompter|>List all the businesses with more than 4.5 stars<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"rating","operation":">","value":4.5}]}}<|endoftext|><|prompter|>List all businesses with rating 3.5<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"rating","operation":"=","value":3.5}]}}<|endoftext|><|prompter|>Find all states in which there is a Whataburger<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"name","operation":"=","value":"'Whataburger'"}]}}<|endoftext|><|prompter|>Find the cities of businesses rated below 1.5<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"rating","operation":"<","value":1.5}]}}<|endoftext|><|prompter|>Find all cities which has a " Taj Mahal " .<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"name","operation":"=","value":"'Taj Mahal'"}]}}<|endoftext|><|prompter|>List the addresses of all Walmart in " Los Angeles "<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city","operation":"=","value":"'Los Angeles'"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"'Walmart'"}]}}<|endoftext|><|prompter|>Find all businesses in Texas with a rating below 2<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"rating","operation":"<","value":2},{"actionType":"ChangeCondition","column":"state","operation":"=","value":"'Texas'"}]}}<|endoftext|><|prompter|>Find all Apple Store in " Los Angeles "<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city","operation":"=","value":"'Los Angeles'"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"'Apple Store'"}]}}<|endoftext|><|prompter|>How many Starbucks are there in Dallas Texas ?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"business_id","aggregation":"COUNT"},{"actionType":"ChangeCondition","column":"city","operation":"=","value":"'Dallas'"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"'Starbucks'"},{"actionType":"ChangeCondition","column":"state","operation":"=","value":"'Texas'"}]}}<|endoftext|><|prompter|>How many reviews does " Acacia Cafe " have ?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"name","operation":"=","value":"'Acacia Cafe'"}]}}<|endoftext|><|prompter|>How many Target are there in " Los Angeles " ?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"business_id","aggregation":"COUNT"},{"actionType":"ChangeCondition","column":"city","operation":"=","value":"'Los Angeles'"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"'Target'"}]}}<|endoftext|><|prompter|>Return me the number of cities that has " Panda Express " .<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"COUNT"},{"actionType":"ChangeCondition","column":"name","operation":"=","value":"'Panda Express'"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["Code","Name","Headquarter","Founder","Revenue"],"name":"manufacturers","type":"grid"}]<|endoftext|><|prompter|>what are the average revenues of all compaies?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"revenue","aggregation":"avg"}]}}<|endoftext|><|prompter|>what are the maximum revenues of all companies?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"revenue","aggregation":"max"}]}}<|endoftext|><|prompter|>what are the total revenues of all companies?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"revenue","aggregation":"sum"}]}}<|endoftext|><|prompter|>thanks<|endoftext|><|assistant|>{"text":"No problem. Bye","dsl":{}}<|endoftext|>
COSQL
<|context|>[{"columns":["Code","Room","CheckIn","CheckOut","Rate","LastName","FirstName","Adults","Kids"],"name":"Reservations","type":"grid"}]<|endoftext|><|prompter|>How many kids stay in the rooms reserved by ROY SWEAZY?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"FirstName","operation":"=","value":"'ROY'"},{"actionType":"ChangeCondition","column":"LastName","operation":"=","value":"'SWEAZY'"}]}}<|endoftext|><|prompter|>Find the number of kids staying in the rooms reserved by a person called ROY SWEAZ.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"FirstName","operation":"=","value":"'ROY'"},{"actionType":"ChangeCondition","column":"LastName","operation":"=","value":"'SWEAZY'"}]}}<|endoftext|><|prompter|>How many times does ROY SWEAZY has reserved a room.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"FirstName","operation":"=","value":"'ROY'"},{"actionType":"ChangeCondition","column":"LastName","operation":"=","value":"'SWEAZY'"}]}}<|endoftext|><|prompter|>Find the number of times ROY SWEAZY has reserved a room.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"FirstName","operation":"=","value":"'ROY'"},{"actionType":"ChangeCondition","column":"LastName","operation":"=","value":"'SWEAZY'"}]}}<|endoftext|><|prompter|>How many adults stay in the room CONRAD SELBIG checked in on Oct 23, 2010?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"CheckIn","operation":"=","value":"'2010-10-23'"},{"actionType":"ChangeCondition","column":"FirstName","operation":"=","value":"'CONRAD'"},{"actionType":"ChangeCondition","column":"LastName","operation":"=","value":"'SELBIG'"}]}}<|endoftext|><|prompter|>Find the number of adults for the room reserved and checked in by CONRAD SELBIG on Oct 23, 2010.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"CheckIn","operation":"=","value":"'2010-10-23'"},{"actionType":"ChangeCondition","column":"FirstName","operation":"=","value":"'CONRAD'"},{"actionType":"ChangeCondition","column":"LastName","operation":"=","value":"'SELBIG'"}]}}<|endoftext|><|prompter|>How many kids stay in the room DAMIEN TRACHSEL checked in on Sep 21, 2010?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"CheckIn","operation":"=","value":"'2010-09-21'"},{"actionType":"ChangeCondition","column":"FirstName","operation":"=","value":"'DAMIEN'"},{"actionType":"ChangeCondition","column":"LastName","operation":"=","value":"'TRACHSEL'"}]}}<|endoftext|><|prompter|>Return the number of kids for the room reserved and checked in by DAMIEN TRACHSEL on Sep 21, 2010.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"CheckIn","operation":"=","value":"'2010-09-21'"},{"actionType":"ChangeCondition","column":"FirstName","operation":"=","value":"'DAMIEN'"},{"actionType":"ChangeCondition","column":"LastName","operation":"=","value":"'TRACHSEL'"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["Wrestler_ID","Name","Reign","Days_held","Location","Event"],"name":"wrestler","type":"grid"}]<|endoftext|><|prompter|>what is the average number of days<|endoftext|><|assistant|>{"text":"did you mean the average days held by all wrestlers?","dsl":{}}<|endoftext|><|prompter|>yes<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Days_held","aggregation":"avg"}]}}<|endoftext|><|prompter|>what is the name of the wrestler with the fewest days held<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"Days_held","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>what is the name of the first wrestler id<|endoftext|><|assistant|>{"text":"did you mean the name of the wrestler with id 1?","dsl":{}}<|endoftext|><|prompter|>first wrestler<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Wrestler_ID","operation":"=","value":1}]}}<|endoftext|><|prompter|>Thanks!<|endoftext|><|assistant|>{"text":"goodbye","dsl":{}}<|endoftext|>
COSQL
<|context|>[{"columns":["County_ID","Name","Population","Police_officers","Residents_per_officer","Case_burden","Crime_rate","Police_force","Location"],"name":"county_public_safety","type":"grid"}]<|endoftext|><|prompter|>List the names of counties in descending order of population.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Population","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names of the counties of public safety, ordered by population descending?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Population","direction":"desk"}]}}<|endoftext|><|prompter|>List the distinct police forces of counties whose location is not on east side.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LOCATION","operation":"!=","value":"'East'"}]}}<|endoftext|><|prompter|>What are the different police forces of counties that are not located in the East?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LOCATION","operation":"!=","value":"'East'"}]}}<|endoftext|><|prompter|>Show the crime rates of counties in ascending order of number of police officers.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Police_officers","direction":"ask"}]}}<|endoftext|><|prompter|>What are the crime rates of counties sorted by number of offices ascending?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Police_officers","direction":"ask"}]}}<|endoftext|><|prompter|>List the name of the county with the largest population.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"Population","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>What is the name of the county with the greatest population?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"Population","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Display police forces and the county counts for each.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Police_force"}]}}<|endoftext|><|prompter|>How many counties correspond to each police force?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Police_force"}]}}<|endoftext|><|prompter|>Show the case burden of counties in descending order of population.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Population","direction":"desk"}]}}<|endoftext|><|prompter|>What are the case burdens of counties, ordered descending by population?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Population","direction":"desk"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["County_ID","Name","Population","Police_officers","Residents_per_officer","Case_burden","Crime_rate","Police_force","Location"],"name":"county_public_safety","type":"grid"}]<|endoftext|><|prompter|>List the names of counties in descending order of population.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Population","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names of the counties of public safety, ordered by population descending?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Population","direction":"desk"}]}}<|endoftext|><|prompter|>List the distinct police forces of counties whose location is not on east side.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LOCATION","operation":"!=","value":"'East'"}]}}<|endoftext|><|prompter|>What are the different police forces of counties that are not located in the East?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LOCATION","operation":"!=","value":"'East'"}]}}<|endoftext|><|prompter|>Show the crime rates of counties in ascending order of number of police officers.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Police_officers","direction":"ask"}]}}<|endoftext|><|prompter|>What are the crime rates of counties sorted by number of offices ascending?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Police_officers","direction":"ask"}]}}<|endoftext|><|prompter|>List the name of the county with the largest population.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"Population","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>What is the name of the county with the greatest population?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"Population","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Display the police forces and the number of counties with each police force.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Police_force"}]}}<|endoftext|><|prompter|>How many counties correspond to each police force?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Police_force"}]}}<|endoftext|><|prompter|>Show the case burden of counties in descending order of population.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Population","direction":"desk"}]}}<|endoftext|><|prompter|>What are the case burdens of counties, ordered descending by population?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Population","direction":"desk"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["County_ID","Name","Population","Police_officers","Residents_per_officer","Case_burden","Crime_rate","Police_force","Location"],"name":"county_public_safety","type":"grid"}]<|endoftext|><|prompter|>List the names of counties in descending order of population.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Population","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names of the counties of public safety, ordered by population descending?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Population","direction":"desk"}]}}<|endoftext|><|prompter|>List the distinct police forces of counties whose location is not on east side.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LOCATION","operation":"!=","value":"'East'"}]}}<|endoftext|><|prompter|>What are the different police forces of counties that are not located in the East?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LOCATION","operation":"!=","value":"'East'"}]}}<|endoftext|><|prompter|>Show the crime rates of counties in ascending order of number of police officers.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Police_officers","direction":"ask"}]}}<|endoftext|><|prompter|>What are the crime rates of counties sorted by number of offices ascending?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Police_officers","direction":"ask"}]}}<|endoftext|><|prompter|>List the name of the county with the largest population.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"Population","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>What is the name of the county with the greatest population?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"Population","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Please show the police forces and the number of counties with each police force.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Police_force"}]}}<|endoftext|><|prompter|>What is the average song rating for each language?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Police_force"}]}}<|endoftext|><|prompter|>Show the case burden of counties in descending order of population.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Population","direction":"desk"}]}}<|endoftext|><|prompter|>What are the case burdens of counties, ordered descending by population?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Population","direction":"desk"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["County_ID","Name","Population","Police_officers","Residents_per_officer","Case_burden","Crime_rate","Police_force","Location"],"name":"county_public_safety","type":"grid"}]<|endoftext|><|prompter|>List the names of counties in descending order of population.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Population","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names of the counties of public safety, ordered by population descending?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Population","direction":"desk"}]}}<|endoftext|><|prompter|>List the distinct police forces of counties whose location is not on east side.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LOCATION","operation":"!=","value":"'East'"}]}}<|endoftext|><|prompter|>What are the different police forces of counties that are not located in the East?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LOCATION","operation":"!=","value":"'East'"}]}}<|endoftext|><|prompter|>Show the crime rates of counties in ascending order of number of police officers.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Police_officers","direction":"ask"}]}}<|endoftext|><|prompter|>What are the crime rates of counties sorted by number of offices ascending?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Police_officers","direction":"ask"}]}}<|endoftext|><|prompter|>List the name of the county with the largest population.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"Population","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>What is the name of the county with the greatest population?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"Population","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Please show the police forces and the number of counties with each police force.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Police_force"}]}}<|endoftext|><|prompter|>How many counties correspond to each police force?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Police_force"}]}}<|endoftext|><|prompter|>Show the case burden of counties in descending order of population.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Population","direction":"desk"}]}}<|endoftext|><|prompter|>What are the case burdens of counties, ordered descending by population?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Population","direction":"desk"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["County_ID","Name","Population","Police_officers","Residents_per_officer","Case_burden","Crime_rate","Police_force","Location"],"name":"county_public_safety","type":"grid"}]<|endoftext|><|prompter|>List the names of counties in descending order of population.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Population","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names of the counties of public safety, ordered by population descending?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Population","direction":"desk"}]}}<|endoftext|><|prompter|>List the distinct police forces of counties whose location is not on east side.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LOCATION","operation":"!=","value":"'East'"}]}}<|endoftext|><|prompter|>What are the different police forces of counties that are not located in the East?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"LOCATION","operation":"!=","value":"'East'"}]}}<|endoftext|><|prompter|>Show the crime rates of counties in ascending order of number of police officers.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Police_officers","direction":"ask"}]}}<|endoftext|><|prompter|>What are the crime rates of counties sorted by number of offices ascending?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Police_officers","direction":"ask"}]}}<|endoftext|><|prompter|>List the name of the county with the largest population.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"Population","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>What is the name of the county with the greatest population?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"Population","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Please show the police forces and the number of counties with each police force.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Police_force"}]}}<|endoftext|><|prompter|>How many counties correspond to each police force?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"Police_force"}]}}<|endoftext|><|prompter|>Show the case burden of counties in descending order of population.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Population","direction":"desk"}]}}<|endoftext|><|prompter|>What are the case burdens of counties, ordered descending by population?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Population","direction":"desk"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["id","name","nationality","gender"],"name":"architect","type":"grid"}]<|endoftext|><|prompter|>Can you please show me the names of all male architects by their names lexicographically?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>Can you please show me all female architects by their names lexicographically?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|><|prompter|>can you please show me all the female architects?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"}]}}<|endoftext|><|prompter|>List the name, nationality and id of all male architects ordered by their names lexicographically?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"gender","operation":"=","value":"male"},{"actionType":"ChangeSorting","column":"name","direction":"ask"}]}}<|endoftext|>
COSQL
<|context|>[{"columns":["District_ID","District_name","Headquartered_City","City_Population","City_Area"],"name":"district","type":"grid"}]<|endoftext|><|prompter|>Which district has the largest population?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"city_population","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>What is its headquartered city?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"city_population","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>What is that city's area?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"city_population","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>How many cities have a population over 500,000?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_population","operation":">","value":500000}]}}<|endoftext|><|prompter|>What are the names of those cities?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city_population","operation":">","value":500000}]}}<|endoftext|><|prompter|>Thanks!<|endoftext|><|assistant|>{"text":"Thanks. bye.","dsl":{}}<|endoftext|>
COSQL
<|context|>[{"columns":["staff_id","staff_address_id","nickname","first_name","middle_name","last_name","date_of_birth","date_joined_staff","date_left_staff"],"name":"Staff","type":"grid"}]<|endoftext|><|prompter|>What is the birthday of the staff member with first name as Janessa and last name as Sawayn?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"first_name","operation":"=","value":"'Janessa'"},{"actionType":"ChangeCondition","column":"last_name","operation":"=","value":"'Sawayn'"}]}}<|endoftext|><|prompter|>What is the date of birth for the staff member named Janessa Sawayn?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"first_name","operation":"=","value":"'Janessa'"},{"actionType":"ChangeCondition","column":"last_name","operation":"=","value":"'Sawayn'"}]}}<|endoftext|><|prompter|>When did the staff member with first name as Janessa and last name as Sawayn join the company?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"first_name","operation":"=","value":"'Janessa'"},{"actionType":"ChangeCondition","column":"last_name","operation":"=","value":"'Sawayn'"}]}}<|endoftext|><|prompter|>When did the staff member named Janessa Sawayn join the company?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"first_name","operation":"=","value":"'Janessa'"},{"actionType":"ChangeCondition","column":"last_name","operation":"=","value":"'Sawayn'"}]}}<|endoftext|><|prompter|>When did the staff member with first name as Janessa and last name as Sawayn leave the company?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"first_name","operation":"=","value":"'Janessa'"},{"actionType":"ChangeCondition","column":"last_name","operation":"=","value":"'Sawayn'"}]}}<|endoftext|><|prompter|>When did the staff member Janessa Sawayn leave the company?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"first_name","operation":"=","value":"'Janessa'"},{"actionType":"ChangeCondition","column":"last_name","operation":"=","value":"'Sawayn'"}]}}<|endoftext|><|prompter|>How many staff have the first name Ludie?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"first_name","operation":"=","value":"'Ludie'"}]}}<|endoftext|><|prompter|>How many employees have a first name of Ludie?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"first_name","operation":"=","value":"'Ludie'"}]}}<|endoftext|><|prompter|>What is the nickname of staff with first name as Janessa and last name as Sawayn?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"first_name","operation":"=","value":"'Janessa'"},{"actionType":"ChangeCondition","column":"last_name","operation":"=","value":"'Sawayn'"}]}}<|endoftext|><|prompter|>What is the nickname of the employee named Janessa Sawayn?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"first_name","operation":"=","value":"'Janessa'"},{"actionType":"ChangeCondition","column":"last_name","operation":"=","value":"'Sawayn'"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["Conductor_ID","Name","Age","Nationality","Year_of_Work"],"name":"conductor","type":"grid"}]<|endoftext|><|prompter|>List the names of conductors in ascending order of age.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Age","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names of conductors, ordered by age?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Age","direction":"ask"}]}}<|endoftext|><|prompter|>What are the names of conductors whose nationalities are not "USA"?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Nationality","operation":"!=","value":"USA"}]}}<|endoftext|><|prompter|>Return the names of conductors that do not have the nationality "USA".<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Nationality","operation":"!=","value":"USA"}]}}<|endoftext|><|prompter|>How many different nationalities do conductors have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Nationality","aggregation":"count"}]}}<|endoftext|><|prompter|>Count the number of different nationalities of conductors.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Nationality","aggregation":"count"}]}}<|endoftext|><|prompter|>List names of conductors in descending order of years of work.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Year_of_Work","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names of conductors, sorted descending by the number of years they have worked?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Year_of_Work","direction":"desk"}]}}<|endoftext|><|prompter|>List the name of the conductor with the most years of work.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"Year_of_Work","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>What is the name of the conductor who has worked the greatest number of years?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"Year_of_Work","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["ranking_date","ranking","player_id","ranking_points","tours"],"name":"rankings","type":"grid"}]<|endoftext|><|prompter|>For each team, how many technicians are there?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"tours","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"ranking_date"}]}}<|endoftext|><|prompter|>How many total tours were there for each ranking date?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"tours","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"ranking_date"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["ranking_date","ranking","player_id","ranking_points","tours"],"name":"rankings","type":"grid"}]<|endoftext|><|prompter|>Find the total number of tours for each ranking date.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"tours","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"ranking_date"}]}}<|endoftext|><|prompter|>How many total tours were there for each ranking date?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"tours","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"ranking_date"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["ranking_date","ranking","player_id","ranking_points","tours"],"name":"rankings","type":"grid"}]<|endoftext|><|prompter|>Find the total number of tours for each ranking date.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"tours","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"ranking_date"}]}}<|endoftext|><|prompter|>Count the total tours for every ranking date.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"tours","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"ranking_date"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["ranking_date","ranking","player_id","ranking_points","tours"],"name":"rankings","type":"grid"}]<|endoftext|><|prompter|>Find the total number of tours for each ranking date.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"tours","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"ranking_date"}]}}<|endoftext|><|prompter|>How many total tours were conducted for each ranking date?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"tours","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"ranking_date"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["ranking_date","ranking","player_id","ranking_points","tours"],"name":"rankings","type":"grid"}]<|endoftext|><|prompter|>Find the total number of tours for each ranking date.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"tours","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"ranking_date"}]}}<|endoftext|><|prompter|>How many total tours were there for each ranking date?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"tours","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"ranking_date"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["AppointmentID","Patient","PrepNurse","Physician","Start","End","ExaminationRoom"],"name":"appointment","type":"grid"}]<|endoftext|><|prompter|>What is the id of the appointment with the most recent start date?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"START","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>What was the end time of that appointment?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"START","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Who was the prep nurse of that appointment?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"START","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Thanks!<|endoftext|><|assistant|>{"text":"goodbye!","dsl":{}}<|endoftext|>
COSQL
<|context|>[{"columns":["book_club_id","Year","Author_or_Editor","Book_Title","Publisher","Category","Result"],"name":"book_club","type":"grid"}]<|endoftext|><|prompter|>show the titles, and authors or editors for all books made after the year 1989.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":">","value":1989}]}}<|endoftext|><|prompter|>What are the titles and authors or editors that correspond to books made after 1989?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":">","value":1989}]}}<|endoftext|><|prompter|>Show the years, book titles, and publishers for all books, in descending order by year.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"YEAR","direction":"desk"}]}}<|endoftext|><|prompter|>What are the years, titles, and publishers for all books, ordered by year descending?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"YEAR","direction":"desk"}]}}<|endoftext|><|prompter|>Present all publishers and the book counts for each.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"publisher"}]}}<|endoftext|><|prompter|>How many books are there for each publisher?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"publisher"}]}}<|endoftext|><|prompter|>Show all book categories and the number of books in each category.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"category"}]}}<|endoftext|><|prompter|>How many books fall into each category?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"category"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["book_club_id","Year","Author_or_Editor","Book_Title","Publisher","Category","Result"],"name":"book_club","type":"grid"}]<|endoftext|><|prompter|>show the titles, and authors or editors for all books made after the year 1989.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":">","value":1989}]}}<|endoftext|><|prompter|>What are the titles and authors or editors that correspond to books made after 1989?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":">","value":1989}]}}<|endoftext|><|prompter|>Show the years, book titles, and publishers for all books, in descending order by year.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"YEAR","direction":"desk"}]}}<|endoftext|><|prompter|>What are the years, titles, and publishers for all books, ordered by year descending?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"YEAR","direction":"desk"}]}}<|endoftext|><|prompter|>Display the number of books published by each publisher.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"publisher"}]}}<|endoftext|><|prompter|>How many books are there for each publisher?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"publisher"}]}}<|endoftext|><|prompter|>Show all book categories and the number of books in each category.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"category"}]}}<|endoftext|><|prompter|>How many books fall into each category?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"category"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["book_club_id","Year","Author_or_Editor","Book_Title","Publisher","Category","Result"],"name":"book_club","type":"grid"}]<|endoftext|><|prompter|>show the titles, and authors or editors for all books made after the year 1989.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":">","value":1989}]}}<|endoftext|><|prompter|>What are the titles and authors or editors that correspond to books made after 1989?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":">","value":1989}]}}<|endoftext|><|prompter|>Show the years, book titles, and publishers for all books, in descending order by year.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"YEAR","direction":"desk"}]}}<|endoftext|><|prompter|>What are the years, titles, and publishers for all books, ordered by year descending?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"YEAR","direction":"desk"}]}}<|endoftext|><|prompter|>Show all publishers and the number of books for each publisher.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"publisher"}]}}<|endoftext|><|prompter|>Quantify the books available from each publisher.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"publisher"}]}}<|endoftext|><|prompter|>Show all book categories and the number of books in each category.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"category"}]}}<|endoftext|><|prompter|>How many books fall into each category?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"category"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["book_club_id","Year","Author_or_Editor","Book_Title","Publisher","Category","Result"],"name":"book_club","type":"grid"}]<|endoftext|><|prompter|>show the titles, and authors or editors for all books made after the year 1989.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":">","value":1989}]}}<|endoftext|><|prompter|>What are the titles and authors or editors that correspond to books made after 1989?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":">","value":1989}]}}<|endoftext|><|prompter|>Show the years, book titles, and publishers for all books, in descending order by year.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"YEAR","direction":"desk"}]}}<|endoftext|><|prompter|>What are the years, titles, and publishers for all books, ordered by year descending?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"YEAR","direction":"desk"}]}}<|endoftext|><|prompter|>Show all publishers and the number of books for each publisher.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"publisher"}]}}<|endoftext|><|prompter|>How many books does each publisher have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"publisher"}]}}<|endoftext|><|prompter|>Show all book categories and the number of books in each category.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"category"}]}}<|endoftext|><|prompter|>How many books fall into each category?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"category"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["book_club_id","Year","Author_or_Editor","Book_Title","Publisher","Category","Result"],"name":"book_club","type":"grid"}]<|endoftext|><|prompter|>show the titles, and authors or editors for all books made after the year 1989.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":">","value":1989}]}}<|endoftext|><|prompter|>What are the titles and authors or editors that correspond to books made after 1989?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":">","value":1989}]}}<|endoftext|><|prompter|>Show the years, book titles, and publishers for all books, in descending order by year.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"YEAR","direction":"desk"}]}}<|endoftext|><|prompter|>What are the years, titles, and publishers for all books, ordered by year descending?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"YEAR","direction":"desk"}]}}<|endoftext|><|prompter|>Show all publishers and the number of books for each publisher.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"publisher"}]}}<|endoftext|><|prompter|>How many books are there for each publisher?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"publisher"}]}}<|endoftext|><|prompter|>Show all book categories and the book count in each.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"category"}]}}<|endoftext|><|prompter|>How many books fall into each category?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"category"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["book_club_id","Year","Author_or_Editor","Book_Title","Publisher","Category","Result"],"name":"book_club","type":"grid"}]<|endoftext|><|prompter|>show the titles, and authors or editors for all books made after the year 1989.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":">","value":1989}]}}<|endoftext|><|prompter|>What are the titles and authors or editors that correspond to books made after 1989?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":">","value":1989}]}}<|endoftext|><|prompter|>Show the years, book titles, and publishers for all books, in descending order by year.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"YEAR","direction":"desk"}]}}<|endoftext|><|prompter|>What are the years, titles, and publishers for all books, ordered by year descending?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"YEAR","direction":"desk"}]}}<|endoftext|><|prompter|>Show all publishers and the number of books for each publisher.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"publisher"}]}}<|endoftext|><|prompter|>How many books are there for each publisher?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"publisher"}]}}<|endoftext|><|prompter|>Show all book categories and the number of books in each category.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"category"}]}}<|endoftext|><|prompter|>How many books fall into each category?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"category"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["book_club_id","Year","Author_or_Editor","Book_Title","Publisher","Category","Result"],"name":"book_club","type":"grid"}]<|endoftext|><|prompter|>show the titles, and authors or editors for all books made after the year 1989.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":">","value":1989}]}}<|endoftext|><|prompter|>What are the titles and authors or editors that correspond to books made after 1989?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":">","value":1989}]}}<|endoftext|><|prompter|>Show the years, book titles, and publishers for all books, in descending order by year.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"YEAR","direction":"desk"}]}}<|endoftext|><|prompter|>What are the years, titles, and publishers for all books, ordered by year descending?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"YEAR","direction":"desk"}]}}<|endoftext|><|prompter|>Show all publishers and the number of books for each publisher.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"publisher"}]}}<|endoftext|><|prompter|>How many books are there for each publisher?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"publisher"}]}}<|endoftext|><|prompter|>Show all book categories and the number of books in each category.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"category"}]}}<|endoftext|><|prompter|>How many books are in each category?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"category"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["book_club_id","Year","Author_or_Editor","Book_Title","Publisher","Category","Result"],"name":"book_club","type":"grid"}]<|endoftext|><|prompter|>show the titles, and authors or editors for all books made after the year 1989.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":">","value":1989}]}}<|endoftext|><|prompter|>What are the titles and authors or editors that correspond to books made after 1989?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":">","value":1989}]}}<|endoftext|><|prompter|>Show the years, book titles, and publishers for all books, in descending order by year.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"YEAR","direction":"desk"}]}}<|endoftext|><|prompter|>What are the years, titles, and publishers for all books, ordered by year descending?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"YEAR","direction":"desk"}]}}<|endoftext|><|prompter|>Show all publishers and the number of books for each publisher.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"publisher"}]}}<|endoftext|><|prompter|>How many books are there for each publisher?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"publisher"}]}}<|endoftext|><|prompter|>Show all book categories and the number of books in each category.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"category"}]}}<|endoftext|><|prompter|>How many books belong to each category?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"category"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["book_club_id","Year","Author_or_Editor","Book_Title","Publisher","Category","Result"],"name":"book_club","type":"grid"}]<|endoftext|><|prompter|>show the titles, and authors or editors for all books made after the year 1989.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":">","value":1989}]}}<|endoftext|><|prompter|>What are the titles and authors or editors that correspond to books made after 1989?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":">","value":1989}]}}<|endoftext|><|prompter|>Show the years, book titles, and publishers for all books, in descending order by year.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"YEAR","direction":"desk"}]}}<|endoftext|><|prompter|>What are the years, titles, and publishers for all books, ordered by year descending?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"YEAR","direction":"desk"}]}}<|endoftext|><|prompter|>Show all publishers and the number of books for each publisher.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"publisher"}]}}<|endoftext|><|prompter|>How many books are there for each publisher?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"publisher"}]}}<|endoftext|><|prompter|>Show all book categories and the number of books in each category.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"category"}]}}<|endoftext|><|prompter|>How many books fall into each category?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"category"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["cName","state","enr"],"name":"college","type":"grid"}]<|endoftext|><|prompter|>What are the top 3 enrollment numbers among the schools?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"enr","limit":3,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Hmm, I want to know the states of the schools with the top 3 largest size.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"enr","limit":3,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Can you tell me the names of the schools with the top 3 largest size?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"enr","limit":3,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Thanks!<|endoftext|><|assistant|>{"text":"You are welcome.","dsl":{}}<|endoftext|>
COSQL
<|context|>[{"columns":["student_id","address_id","first_name","middle_name","last_name","cell_mobile_number","email_address","date_first_rental","date_left_university","other_student_details"],"name":"Students","type":"grid"}]<|endoftext|><|prompter|>What is the email of the student with first name "Emma" and last name "Rohan"?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"first_name","operation":"=","value":"'Emma'"},{"actionType":"ChangeCondition","column":"last_name","operation":"=","value":"'Rohan'"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["ID","name","dept_name","salary"],"name":"instructor","type":"grid"}]<|endoftext|><|prompter|>Find the department name of the instructor whose name contains 'Soisalon'<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"name","operation":"contains","value":"Soisalon"}]}}<|endoftext|><|prompter|>What is the id number for the psychology department?<|endoftext|><|assistant|>{"text":"Sorry we don't have the id of department. We only have id of the instructors. Could you please ask another question? Thanks.","dsl":{}}<|endoftext|><|prompter|>Sorry, what is the id number of the instructor for psychology?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"dept_name","operation":"=","value":"'Psychology'"}]}}<|endoftext|><|prompter|>What is the salary of the instructor with id number 22591?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"id","operation":"=","value":22591}]}}<|endoftext|><|prompter|>And what about the salary of the instructor with id number 96895?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"id","operation":"=","value":96895}]}}<|endoftext|>
COSQL
<|context|>[{"columns":["year","team_id","league_id","player_id","salary"],"name":"salary","type":"grid"}]<|endoftext|><|prompter|>List the 3 highest salaries of the players in 2001?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":"=","value":2001},{"actionType":"ChangeTopFilter","column":"salary","limit":3,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>How much salary did the top 3 well-paid players get in 2001?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":"=","value":2001},{"actionType":"ChangeTopFilter","column":"salary","limit":3,"aggregation":"avg","direction":"desk"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["account_id","customer_id","date_account_opened","account_name","other_account_details"],"name":"Accounts","type":"grid"}]<|endoftext|><|prompter|>How many customers have opened an account?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"customer_id","aggregation":"count"}]}}<|endoftext|><|prompter|>Count the number of customers who have an account.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"customer_id","aggregation":"count"}]}}<|endoftext|><|prompter|>How many accounts does each customer have? Display the count and customer id.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"customer_id"}]}}<|endoftext|><|prompter|>Count the number of accounts corresponding to each customer id.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"customer_id"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["account_id","customer_id","date_account_opened","account_name","other_account_details"],"name":"Accounts","type":"grid"}]<|endoftext|><|prompter|>How many customers have opened an account?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"customer_id","aggregation":"count"}]}}<|endoftext|><|prompter|>Count the number of customers who have an account.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"customer_id","aggregation":"count"}]}}<|endoftext|><|prompter|>How many accounts does each customer have, and what is their corresponding customer ID?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"customer_id"}]}}<|endoftext|><|prompter|>Count the number of accounts corresponding to each customer id.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"customer_id"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["account_id","customer_id","date_account_opened","account_name","other_account_details"],"name":"Accounts","type":"grid"}]<|endoftext|><|prompter|>How many customers have opened an account?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"customer_id","aggregation":"count"}]}}<|endoftext|><|prompter|>Count the number of customers who have an account.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"customer_id","aggregation":"count"}]}}<|endoftext|><|prompter|>How many accounts does each customer have? List the number and customer id.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"customer_id"}]}}<|endoftext|><|prompter|>Calculate the number of accounts associated with each customer id.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"customer_id"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["account_id","customer_id","date_account_opened","account_name","other_account_details"],"name":"Accounts","type":"grid"}]<|endoftext|><|prompter|>How many customers have opened an account?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"customer_id","aggregation":"count"}]}}<|endoftext|><|prompter|>Count the number of customers who have an account.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"customer_id","aggregation":"count"}]}}<|endoftext|><|prompter|>How many accounts does each customer have? List the number and customer id.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"customer_id"}]}}<|endoftext|><|prompter|>Count the number of accounts corresponding to each customer ID.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"customer_id"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["account_id","customer_id","date_account_opened","account_name","other_account_details"],"name":"Accounts","type":"grid"}]<|endoftext|><|prompter|>How many customers have opened an account?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"customer_id","aggregation":"count"}]}}<|endoftext|><|prompter|>Count the number of customers who have an account.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"customer_id","aggregation":"count"}]}}<|endoftext|><|prompter|>How many accounts does each customer have? List the number and customer id.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"customer_id"}]}}<|endoftext|><|prompter|>Count the number of accounts corresponding to each customer id.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"customer_id"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["Shop_ID","Device_ID","Quantity"],"name":"stock","type":"grid"}]<|endoftext|><|prompter|>What is the average quantity of stocks?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Quantity","aggregation":"avg"}]}}<|endoftext|><|prompter|>Give the average quantity of stocks.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"Quantity","aggregation":"avg"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["document_id","draft_number","draft_details"],"name":"Document_Drafts","type":"grid"}]<|endoftext|><|prompter|>What is draft detail of the document with id 7?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"document_id","operation":"=","value":7}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["year","team_id","league_id","player_id","salary"],"name":"salary","type":"grid"}]<|endoftext|><|prompter|>what is the salary of 1985? <|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":"=","value":1985}]}}<|endoftext|><|prompter|>who is get the high salary? <|endoftext|><|assistant|>{"text":"Do you mean the id of the player who gets the highest salary?","dsl":{}}<|endoftext|><|prompter|>Yes.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"salary","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Ok I saw that. thank ! <|endoftext|><|assistant|>{"text":"You are welcome.","dsl":{}}<|endoftext|>
COSQL
<|context|>[{"columns":["Captain_ID","Name","Ship_ID","age","Class","Rank"],"name":"captain","type":"grid"}]<|endoftext|><|prompter|>let me know the name of the youngest captain <|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"age","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>How young is he? <|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"age","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>Now who is the oldest captain?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"age","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Thanks!<|endoftext|><|assistant|>
COSQL
<|context|>[{"columns":["lake_name","area","country_name","state_name"],"name":"lake","type":"grid"}]<|endoftext|><|prompter|>give me the lakes in california<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"state_name","operation":"=","value":"'california'"}]}}<|endoftext|><|prompter|>name the major lakes in michigan<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"area","operation":">","value":750},{"actionType":"ChangeCondition","column":"state_name","operation":"=","value":"'michigan'"}]}}<|endoftext|><|prompter|>what are the major lakes in united states<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"area","operation":">","value":750}]}}<|endoftext|><|prompter|>show me all the major lakes in the us<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"area","operation":">","value":750}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["ID","name","dept_name","tot_cred"],"name":"student","type":"grid"}]<|endoftext|><|prompter|>how many credit scores does Schrefl have?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"name","operation":"=","value":"'Schrefl'"}]}}<|endoftext|><|prompter|>in what department is Rumat? <|endoftext|><|assistant|>{"text":"Do you want the name of the department?","dsl":{}}<|endoftext|><|prompter|>Yes!<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"name","operation":"=","value":"'Rumat'"}]}}<|endoftext|><|prompter|>Thanks!<|endoftext|><|assistant|>{"text":"* I have left the chat *","dsl":{}}<|endoftext|><|prompter|>* I have left the chat *<|endoftext|><|assistant|>{"text":"Bye","dsl":{}}<|endoftext|>
COSQL
<|context|>[{"columns":["player_id","first_name","last_name","hand","birth_date","country_code"],"name":"players","type":"grid"}]<|endoftext|><|prompter|>List the first name and birth date of all players from the country with code USA.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"country_code","operation":"=","value":"USA"}]}}<|endoftext|><|prompter|>What are the first names and birth dates of players from the USA?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"country_code","operation":"=","value":"USA"}]}}<|endoftext|><|prompter|>find the number of distinct country codes of all players.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"country_code","aggregation":"count"}]}}<|endoftext|><|prompter|>How many distinct countries do players come from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"country_code","aggregation":"count"}]}}<|endoftext|><|prompter|>Find the first name and country code of the oldest player.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"birth_date","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>What is the first name and country code of the oldest player?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"birth_date","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>List the first and last name of all players in the order of birth date.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>What are the full names of all players, sorted by birth date?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>List the first and last name of all players who are left / L hand in the order of birth date.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"hand","operation":"=","value":"L"},{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>What are the full names of all left handed players, in order of birth date?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"hand","operation":"=","value":"L"},{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>Count the players from each nation.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"country_code"}]}}<|endoftext|><|prompter|>How many players are from each country?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"country_code"}]}}<|endoftext|><|prompter|>Find the number of players for each hand type.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"hand"}]}}<|endoftext|><|prompter|>How many players are there for each hand type?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"hand"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["player_id","first_name","last_name","hand","birth_date","country_code"],"name":"players","type":"grid"}]<|endoftext|><|prompter|>List the first name and birth date of all players from the country with code USA.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"country_code","operation":"=","value":"USA"}]}}<|endoftext|><|prompter|>What are the first names and birth dates of players from the USA?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"country_code","operation":"=","value":"USA"}]}}<|endoftext|><|prompter|>find the number of distinct country codes of all players.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"country_code","aggregation":"count"}]}}<|endoftext|><|prompter|>How many distinct countries do players come from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"country_code","aggregation":"count"}]}}<|endoftext|><|prompter|>Find the first name and country code of the oldest player.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"birth_date","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>What is the first name and country code of the oldest player?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"birth_date","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>List the first and last name of all players in the order of birth date.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>What are the full names of all players, sorted by birth date?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>List the first and last name of all players who are left / L hand in the order of birth date.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"hand","operation":"=","value":"L"},{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>What are the full names of all left handed players, in order of birth date?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"hand","operation":"=","value":"L"},{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>Determine the number of players for each country.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"country_code"}]}}<|endoftext|><|prompter|>How many players are from each country?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"country_code"}]}}<|endoftext|><|prompter|>Find the number of players for each hand type.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"hand"}]}}<|endoftext|><|prompter|>How many players are there for each hand type?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"hand"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["player_id","first_name","last_name","hand","birth_date","country_code"],"name":"players","type":"grid"}]<|endoftext|><|prompter|>List the first name and birth date of all players from the country with code USA.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"country_code","operation":"=","value":"USA"}]}}<|endoftext|><|prompter|>What are the first names and birth dates of players from the USA?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"country_code","operation":"=","value":"USA"}]}}<|endoftext|><|prompter|>find the number of distinct country codes of all players.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"country_code","aggregation":"count"}]}}<|endoftext|><|prompter|>How many distinct countries do players come from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"country_code","aggregation":"count"}]}}<|endoftext|><|prompter|>Find the first name and country code of the oldest player.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"birth_date","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>What is the first name and country code of the oldest player?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"birth_date","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>List the first and last name of all players in the order of birth date.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>What are the full names of all players, sorted by birth date?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>List the first and last name of all players who are left / L hand in the order of birth date.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"hand","operation":"=","value":"L"},{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>What are the full names of all left handed players, in order of birth date?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"hand","operation":"=","value":"L"},{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>find the number of players for each country.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"country_code"}]}}<|endoftext|><|prompter|>What is the player count from each nation?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"country_code"}]}}<|endoftext|><|prompter|>Find the number of players for each hand type.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"hand"}]}}<|endoftext|><|prompter|>How many players are there for each hand type?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"hand"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["player_id","first_name","last_name","hand","birth_date","country_code"],"name":"players","type":"grid"}]<|endoftext|><|prompter|>List the first name and birth date of all players from the country with code USA.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"country_code","operation":"=","value":"USA"}]}}<|endoftext|><|prompter|>What are the first names and birth dates of players from the USA?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"country_code","operation":"=","value":"USA"}]}}<|endoftext|><|prompter|>find the number of distinct country codes of all players.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"country_code","aggregation":"count"}]}}<|endoftext|><|prompter|>How many distinct countries do players come from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"country_code","aggregation":"count"}]}}<|endoftext|><|prompter|>Find the first name and country code of the oldest player.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"birth_date","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>What is the first name and country code of the oldest player?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"birth_date","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>List the first and last name of all players in the order of birth date.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>What are the full names of all players, sorted by birth date?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>List the first and last name of all players who are left / L hand in the order of birth date.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"hand","operation":"=","value":"L"},{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>What are the full names of all left handed players, in order of birth date?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"hand","operation":"=","value":"L"},{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>find the number of players for each country.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"country_code"}]}}<|endoftext|><|prompter|>How many players come from each country?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"country_code"}]}}<|endoftext|><|prompter|>Find the number of players for each hand type.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"hand"}]}}<|endoftext|><|prompter|>How many players are there for each hand type?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"hand"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["player_id","first_name","last_name","hand","birth_date","country_code"],"name":"players","type":"grid"}]<|endoftext|><|prompter|>List the first name and birth date of all players from the country with code USA.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"country_code","operation":"=","value":"USA"}]}}<|endoftext|><|prompter|>What are the first names and birth dates of players from the USA?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"country_code","operation":"=","value":"USA"}]}}<|endoftext|><|prompter|>find the number of distinct country codes of all players.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"country_code","aggregation":"count"}]}}<|endoftext|><|prompter|>How many distinct countries do players come from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"country_code","aggregation":"count"}]}}<|endoftext|><|prompter|>Find the first name and country code of the oldest player.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"birth_date","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>What is the first name and country code of the oldest player?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"birth_date","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>List the first and last name of all players in the order of birth date.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>What are the full names of all players, sorted by birth date?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>List the first and last name of all players who are left / L hand in the order of birth date.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"hand","operation":"=","value":"L"},{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>What are the full names of all left handed players, in order of birth date?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"hand","operation":"=","value":"L"},{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>find the number of players for each country.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"country_code"}]}}<|endoftext|><|prompter|>How many players are from each country?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"country_code"}]}}<|endoftext|><|prompter|>Count the players for every hand preference.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"hand"}]}}<|endoftext|><|prompter|>How many players are there for each hand type?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"hand"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["player_id","first_name","last_name","hand","birth_date","country_code"],"name":"players","type":"grid"}]<|endoftext|><|prompter|>List the first name and birth date of all players from the country with code USA.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"country_code","operation":"=","value":"USA"}]}}<|endoftext|><|prompter|>What are the first names and birth dates of players from the USA?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"country_code","operation":"=","value":"USA"}]}}<|endoftext|><|prompter|>find the number of distinct country codes of all players.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"country_code","aggregation":"count"}]}}<|endoftext|><|prompter|>How many distinct countries do players come from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"country_code","aggregation":"count"}]}}<|endoftext|><|prompter|>Find the first name and country code of the oldest player.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"birth_date","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>What is the first name and country code of the oldest player?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"birth_date","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>List the first and last name of all players in the order of birth date.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>What are the full names of all players, sorted by birth date?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>List the first and last name of all players who are left / L hand in the order of birth date.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"hand","operation":"=","value":"L"},{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>What are the full names of all left handed players, in order of birth date?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"hand","operation":"=","value":"L"},{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>find the number of players for each country.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"country_code"}]}}<|endoftext|><|prompter|>How many players are from each country?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"country_code"}]}}<|endoftext|><|prompter|>Determine the number of players for each type of hand.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"hand"}]}}<|endoftext|><|prompter|>How many players are there for each hand type?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"hand"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["player_id","first_name","last_name","hand","birth_date","country_code"],"name":"players","type":"grid"}]<|endoftext|><|prompter|>List the first name and birth date of all players from the country with code USA.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"country_code","operation":"=","value":"USA"}]}}<|endoftext|><|prompter|>What are the first names and birth dates of players from the USA?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"country_code","operation":"=","value":"USA"}]}}<|endoftext|><|prompter|>find the number of distinct country codes of all players.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"country_code","aggregation":"count"}]}}<|endoftext|><|prompter|>How many distinct countries do players come from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"country_code","aggregation":"count"}]}}<|endoftext|><|prompter|>Find the first name and country code of the oldest player.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"birth_date","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>What is the first name and country code of the oldest player?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"birth_date","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>List the first and last name of all players in the order of birth date.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>What are the full names of all players, sorted by birth date?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>List the first and last name of all players who are left / L hand in the order of birth date.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"hand","operation":"=","value":"L"},{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>What are the full names of all left handed players, in order of birth date?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"hand","operation":"=","value":"L"},{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>find the number of players for each country.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"country_code"}]}}<|endoftext|><|prompter|>How many players are from each country?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"country_code"}]}}<|endoftext|><|prompter|>Find the number of players for each hand type.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"hand"}]}}<|endoftext|><|prompter|>How many players exist for every hand preference?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"hand"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["player_id","first_name","last_name","hand","birth_date","country_code"],"name":"players","type":"grid"}]<|endoftext|><|prompter|>List the first name and birth date of all players from the country with code USA.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"country_code","operation":"=","value":"USA"}]}}<|endoftext|><|prompter|>What are the first names and birth dates of players from the USA?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"country_code","operation":"=","value":"USA"}]}}<|endoftext|><|prompter|>find the number of distinct country codes of all players.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"country_code","aggregation":"count"}]}}<|endoftext|><|prompter|>How many distinct countries do players come from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"country_code","aggregation":"count"}]}}<|endoftext|><|prompter|>Find the first name and country code of the oldest player.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"birth_date","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>What is the first name and country code of the oldest player?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"birth_date","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>List the first and last name of all players in the order of birth date.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>What are the full names of all players, sorted by birth date?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>List the first and last name of all players who are left / L hand in the order of birth date.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"hand","operation":"=","value":"L"},{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>What are the full names of all left handed players, in order of birth date?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"hand","operation":"=","value":"L"},{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>find the number of players for each country.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"country_code"}]}}<|endoftext|><|prompter|>How many players are from each country?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"country_code"}]}}<|endoftext|><|prompter|>Find the number of players for each hand type.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"hand"}]}}<|endoftext|><|prompter|>Determine the number of players for each type of hand.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"hand"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["player_id","first_name","last_name","hand","birth_date","country_code"],"name":"players","type":"grid"}]<|endoftext|><|prompter|>List the first name and birth date of all players from the country with code USA.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"country_code","operation":"=","value":"USA"}]}}<|endoftext|><|prompter|>What are the first names and birth dates of players from the USA?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"country_code","operation":"=","value":"USA"}]}}<|endoftext|><|prompter|>find the number of distinct country codes of all players.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"country_code","aggregation":"count"}]}}<|endoftext|><|prompter|>How many distinct countries do players come from?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"country_code","aggregation":"count"}]}}<|endoftext|><|prompter|>Find the first name and country code of the oldest player.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"birth_date","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>What is the first name and country code of the oldest player?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"birth_date","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>List the first and last name of all players in the order of birth date.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>What are the full names of all players, sorted by birth date?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>List the first and last name of all players who are left / L hand in the order of birth date.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"hand","operation":"=","value":"L"},{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>What are the full names of all left handed players, in order of birth date?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"hand","operation":"=","value":"L"},{"actionType":"ChangeSorting","column":"birth_date","direction":"ask"}]}}<|endoftext|><|prompter|>find the number of players for each country.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"country_code"}]}}<|endoftext|><|prompter|>How many players are from each country?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"country_code"}]}}<|endoftext|><|prompter|>Find the number of players for each hand type.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"hand"}]}}<|endoftext|><|prompter|>How many players are there for each hand type?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"hand"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["City_ID","City","Hanzi","Hanyu_Pinyin","Regional_Population","GDP"],"name":"city","type":"grid"}]<|endoftext|><|prompter|>how many city there<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"City","aggregation":"count"}]}}<|endoftext|><|prompter|>how many regional population in Hangzhou city<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"City","operation":"=","value":"'Hangzhou ( Zhejiang )'"}]}}<|endoftext|><|prompter|>what is the city id of Nanjing<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"City","operation":"=","value":"'Nanjing ( Jiangsu )'"}]}}<|endoftext|><|prompter|>thanks<|endoftext|><|assistant|>{"text":"You're welcome. Goodbye!","dsl":{}}<|endoftext|>
COSQL
<|context|>[{"columns":["dept_name","building","budget"],"name":"department","type":"grid"}]<|endoftext|><|prompter|>Find the name and building of the department with the highest budget.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"budget","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>What is the department name and corresponding building for the department with the greatest budget?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"budget","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>Which department has the lowest budget?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"budget","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>Give the name of the department with the lowest budget.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"budget","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>List the names and buildings of all departments sorted by the budget from large to small.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"budget","direction":"desk"}]}}<|endoftext|><|prompter|>What are the names and buildings of the deparments, sorted by budget descending?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"budget","direction":"desk"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["grant_id","organisation_id","grant_amount","grant_start_date","grant_end_date","other_details"],"name":"Grants","type":"grid"}]<|endoftext|><|prompter|>Show each location and the number of cinemas there.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"grant_amount","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"organisation_id"}]}}<|endoftext|><|prompter|>What is the total amount of grant money given to each organization and what is its id?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"grant_amount","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"organisation_id"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["grant_id","organisation_id","grant_amount","grant_start_date","grant_end_date","other_details"],"name":"Grants","type":"grid"}]<|endoftext|><|prompter|>What is the total amount of grants given by each organization? Also list the organization ID.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"grant_amount","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"organisation_id"}]}}<|endoftext|><|prompter|>What is the total amount of grant money given to each organization and what is its id?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"grant_amount","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"organisation_id"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["grant_id","organisation_id","grant_amount","grant_start_date","grant_end_date","other_details"],"name":"Grants","type":"grid"}]<|endoftext|><|prompter|>What is the total amount of grants given by each organisations? Also list the organisation id.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"grant_amount","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"organisation_id"}]}}<|endoftext|><|prompter|>What is the total grant amount allocated to each organization and their respective IDs?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"grant_amount","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"organisation_id"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["grant_id","organisation_id","grant_amount","grant_start_date","grant_end_date","other_details"],"name":"Grants","type":"grid"}]<|endoftext|><|prompter|>What is the total amount of grants given by each organisations? Also list the organisation id.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"grant_amount","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"organisation_id"}]}}<|endoftext|><|prompter|>Determine the total amount of grant money given to each organization and its corresponding id.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"grant_amount","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"organisation_id"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["grant_id","organisation_id","grant_amount","grant_start_date","grant_end_date","other_details"],"name":"Grants","type":"grid"}]<|endoftext|><|prompter|>What is the total amount of grants given by each organisations? Also list the organisation id.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"grant_amount","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"organisation_id"}]}}<|endoftext|><|prompter|>What is the total amount of grant money given to each organization and what is its id?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"grant_amount","aggregation":"sum"},{"actionType":"ChangeGrouping","column":"organisation_id"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["id","Title","Directed_by","Written_by","Original_air_date","Production_code","Channel"],"name":"Cartoon","type":"grid"}]<|endoftext|><|prompter|>List the title of all cartoons in alphabetical order.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"title","direction":"ask"}]}}<|endoftext|><|prompter|>What are the titles of the cartoons sorted alphabetically?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"title","direction":"ask"}]}}<|endoftext|><|prompter|>List all cartoon directed by "Ben Jones".<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Directed_by","operation":"=","value":"'Ben Jones'"}]}}<|endoftext|><|prompter|>What are the names of all cartoons directed by Ben Jones?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Directed_by","operation":"=","value":"'Ben Jones'"}]}}<|endoftext|><|prompter|>How many cartoons were written by "Joseph Kuhr"?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Written_by","operation":"=","value":"'Joseph Kuhr'"}]}}<|endoftext|><|prompter|>What is the number of cartoones written by Joseph Kuhr?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"Written_by","operation":"=","value":"'Joseph Kuhr'"}]}}<|endoftext|><|prompter|>list all cartoon titles and their directors ordered by their air date<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Original_air_date","direction":"ask"}]}}<|endoftext|><|prompter|>What is the name and directors of all the cartoons that are ordered by air date?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"Original_air_date","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["id","name","lat","long","dock_count","city","installation_date"],"name":"station","type":"grid"}]<|endoftext|><|prompter|>What are the names of stations that have latitude lower than 37.5?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"lat","operation":"<","value":37.5}]}}<|endoftext|><|prompter|>What are the names of all stations with a latitude smaller than 37.5?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"lat","operation":"<","value":37.5}]}}<|endoftext|><|prompter|>For each city, find the highest latitude among its stations.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"lat","aggregation":"max"},{"actionType":"ChangeGrouping","column":"city"}]}}<|endoftext|><|prompter|>For each city, what is the highest latitude for its stations?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"lat","aggregation":"max"},{"actionType":"ChangeGrouping","column":"city"}]}}<|endoftext|><|prompter|>What is the average latitude and longitude of stations located in San Jose city?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"lat","aggregation":"avg"},{"actionType":"ChangeAggregations","column":"long","aggregation":"avg"},{"actionType":"ChangeCondition","column":"city","operation":"=","value":"'San Jose'"}]}}<|endoftext|><|prompter|>What is the average latitude and longitude in San Jose?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"lat","aggregation":"avg"},{"actionType":"ChangeAggregations","column":"long","aggregation":"avg"},{"actionType":"ChangeCondition","column":"city","operation":"=","value":"'San Jose'"}]}}<|endoftext|><|prompter|>What is the number of distinct cities the stations are located at?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different cities have these stations?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many stations does Mountain View city has?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city","operation":"=","value":"'Mountain View'"}]}}<|endoftext|><|prompter|>How many stations are in Mountain View?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city","operation":"=","value":"'Mountain View'"}]}}<|endoftext|><|prompter|>What are the name, latitude, and city of the station with the lowest latitude?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"lat","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>What is the name, latitude, and city of the station that is located the furthest South?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"lat","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["id","name","lat","long","dock_count","city","installation_date"],"name":"station","type":"grid"}]<|endoftext|><|prompter|>What are the names of stations that have latitude lower than 37.5?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"lat","operation":"<","value":37.5}]}}<|endoftext|><|prompter|>What are the names of all stations with a latitude smaller than 37.5?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"lat","operation":"<","value":37.5}]}}<|endoftext|><|prompter|>Find the highest latitude among the stations in each city.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"lat","aggregation":"max"},{"actionType":"ChangeGrouping","column":"city"}]}}<|endoftext|><|prompter|>For each city, what is the highest latitude for its stations?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"lat","aggregation":"max"},{"actionType":"ChangeGrouping","column":"city"}]}}<|endoftext|><|prompter|>What is the average latitude and longitude of stations located in San Jose city?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"lat","aggregation":"avg"},{"actionType":"ChangeAggregations","column":"long","aggregation":"avg"},{"actionType":"ChangeCondition","column":"city","operation":"=","value":"'San Jose'"}]}}<|endoftext|><|prompter|>What is the average latitude and longitude in San Jose?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"lat","aggregation":"avg"},{"actionType":"ChangeAggregations","column":"long","aggregation":"avg"},{"actionType":"ChangeCondition","column":"city","operation":"=","value":"'San Jose'"}]}}<|endoftext|><|prompter|>What is the number of distinct cities the stations are located at?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different cities have these stations?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many stations does Mountain View city has?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city","operation":"=","value":"'Mountain View'"}]}}<|endoftext|><|prompter|>How many stations are in Mountain View?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city","operation":"=","value":"'Mountain View'"}]}}<|endoftext|><|prompter|>What are the name, latitude, and city of the station with the lowest latitude?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"lat","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>What is the name, latitude, and city of the station that is located the furthest South?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"lat","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["id","name","lat","long","dock_count","city","installation_date"],"name":"station","type":"grid"}]<|endoftext|><|prompter|>What are the names of stations that have latitude lower than 37.5?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"lat","operation":"<","value":37.5}]}}<|endoftext|><|prompter|>What are the names of all stations with a latitude smaller than 37.5?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"lat","operation":"<","value":37.5}]}}<|endoftext|><|prompter|>For each city, return the highest latitude among its stations.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"lat","aggregation":"max"},{"actionType":"ChangeGrouping","column":"city"}]}}<|endoftext|><|prompter|>What is the highest latitude of stations in each city?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"lat","aggregation":"max"},{"actionType":"ChangeGrouping","column":"city"}]}}<|endoftext|><|prompter|>What is the average latitude and longitude of stations located in San Jose city?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"lat","aggregation":"avg"},{"actionType":"ChangeAggregations","column":"long","aggregation":"avg"},{"actionType":"ChangeCondition","column":"city","operation":"=","value":"'San Jose'"}]}}<|endoftext|><|prompter|>What is the average latitude and longitude in San Jose?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"lat","aggregation":"avg"},{"actionType":"ChangeAggregations","column":"long","aggregation":"avg"},{"actionType":"ChangeCondition","column":"city","operation":"=","value":"'San Jose'"}]}}<|endoftext|><|prompter|>What is the number of distinct cities the stations are located at?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different cities have these stations?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many stations does Mountain View city has?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city","operation":"=","value":"'Mountain View'"}]}}<|endoftext|><|prompter|>How many stations are in Mountain View?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city","operation":"=","value":"'Mountain View'"}]}}<|endoftext|><|prompter|>What are the name, latitude, and city of the station with the lowest latitude?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"lat","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>What is the name, latitude, and city of the station that is located the furthest South?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"lat","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["id","name","lat","long","dock_count","city","installation_date"],"name":"station","type":"grid"}]<|endoftext|><|prompter|>What are the names of stations that have latitude lower than 37.5?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"lat","operation":"<","value":37.5}]}}<|endoftext|><|prompter|>What are the names of all stations with a latitude smaller than 37.5?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"lat","operation":"<","value":37.5}]}}<|endoftext|><|prompter|>For each city, return the highest latitude among its stations.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"lat","aggregation":"max"},{"actionType":"ChangeGrouping","column":"city"}]}}<|endoftext|><|prompter|>Find the highest latitude for the stations in each city.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"lat","aggregation":"max"},{"actionType":"ChangeGrouping","column":"city"}]}}<|endoftext|><|prompter|>What is the average latitude and longitude of stations located in San Jose city?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"lat","aggregation":"avg"},{"actionType":"ChangeAggregations","column":"long","aggregation":"avg"},{"actionType":"ChangeCondition","column":"city","operation":"=","value":"'San Jose'"}]}}<|endoftext|><|prompter|>What is the average latitude and longitude in San Jose?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"lat","aggregation":"avg"},{"actionType":"ChangeAggregations","column":"long","aggregation":"avg"},{"actionType":"ChangeCondition","column":"city","operation":"=","value":"'San Jose'"}]}}<|endoftext|><|prompter|>What is the number of distinct cities the stations are located at?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different cities have these stations?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many stations does Mountain View city has?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city","operation":"=","value":"'Mountain View'"}]}}<|endoftext|><|prompter|>How many stations are in Mountain View?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city","operation":"=","value":"'Mountain View'"}]}}<|endoftext|><|prompter|>What are the name, latitude, and city of the station with the lowest latitude?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"lat","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>What is the name, latitude, and city of the station that is located the furthest South?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"lat","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["id","name","lat","long","dock_count","city","installation_date"],"name":"station","type":"grid"}]<|endoftext|><|prompter|>What are the names of stations that have latitude lower than 37.5?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"lat","operation":"<","value":37.5}]}}<|endoftext|><|prompter|>What are the names of all stations with a latitude smaller than 37.5?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"lat","operation":"<","value":37.5}]}}<|endoftext|><|prompter|>For each city, return the highest latitude among its stations.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"lat","aggregation":"max"},{"actionType":"ChangeGrouping","column":"city"}]}}<|endoftext|><|prompter|>For each city, what is the highest latitude for its stations?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"lat","aggregation":"max"},{"actionType":"ChangeGrouping","column":"city"}]}}<|endoftext|><|prompter|>What is the average latitude and longitude of stations located in San Jose city?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"lat","aggregation":"avg"},{"actionType":"ChangeAggregations","column":"long","aggregation":"avg"},{"actionType":"ChangeCondition","column":"city","operation":"=","value":"'San Jose'"}]}}<|endoftext|><|prompter|>What is the average latitude and longitude in San Jose?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"lat","aggregation":"avg"},{"actionType":"ChangeAggregations","column":"long","aggregation":"avg"},{"actionType":"ChangeCondition","column":"city","operation":"=","value":"'San Jose'"}]}}<|endoftext|><|prompter|>What is the number of distinct cities the stations are located at?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many different cities have these stations?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"city","aggregation":"count"}]}}<|endoftext|><|prompter|>How many stations does Mountain View city has?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city","operation":"=","value":"'Mountain View'"}]}}<|endoftext|><|prompter|>How many stations are in Mountain View?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"city","operation":"=","value":"'Mountain View'"}]}}<|endoftext|><|prompter|>What are the name, latitude, and city of the station with the lowest latitude?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"lat","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>What is the name, latitude, and city of the station that is located the furthest South?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"lat","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["year","league_id","team_id","park_id","span_first","span_last","games","openings","attendance"],"name":"home_game","type":"grid"}]<|endoftext|><|prompter|>What is the average home game attendance per year?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"attendance","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"YEAR"}]}}<|endoftext|><|prompter|>For each year, return the year and the average number of attendance at home games.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"attendance","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"YEAR"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["year","league_id","team_id","park_id","span_first","span_last","games","openings","attendance"],"name":"home_game","type":"grid"}]<|endoftext|><|prompter|>Calculate the average number of attendees at home games for each year.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"attendance","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"YEAR"}]}}<|endoftext|><|prompter|>For each year, return the year and the average number of attendance at home games.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"attendance","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"YEAR"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["year","league_id","team_id","park_id","span_first","span_last","games","openings","attendance"],"name":"home_game","type":"grid"}]<|endoftext|><|prompter|>What is the average number of attendance at home games for each year?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"attendance","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"YEAR"}]}}<|endoftext|><|prompter|>For each year, display the year and the average attendance at home games.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"attendance","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"YEAR"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["year","league_id","team_id","park_id","span_first","span_last","games","openings","attendance"],"name":"home_game","type":"grid"}]<|endoftext|><|prompter|>What is the average number of attendance at home games for each year?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"attendance","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"YEAR"}]}}<|endoftext|><|prompter|>Display the year and the average number of attendance at home games for each year.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"attendance","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"YEAR"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["year","league_id","team_id","park_id","span_first","span_last","games","openings","attendance"],"name":"home_game","type":"grid"}]<|endoftext|><|prompter|>What is the average number of attendance at home games for each year?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"attendance","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"YEAR"}]}}<|endoftext|><|prompter|>For each year, return the year and the average number of attendance at home games.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"attendance","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"YEAR"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["song_name","artist_name","country","f_id","genre_is","rating","languages","releasedate","resolution"],"name":"song","type":"grid"}]<|endoftext|><|prompter|>what is the artist name of india<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"country","operation":"=","value":"India"}]}}<|endoftext|><|prompter|>what is the f id of bangala<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"languages","operation":"=","value":"bangla"}]}}<|endoftext|><|prompter|>what is the rating of resolution 512<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"resolution","operation":"=","value":512}]}}<|endoftext|><|prompter|>what is the song name of tagore<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"genre_is","operation":"=","value":"tagore"}]}}<|endoftext|><|prompter|>what is the song name of bangladesh<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"country","operation":"=","value":"Bangladesh"}]}}<|endoftext|><|prompter|>thanks<|endoftext|><|assistant|>{"text":"Bye!","dsl":{}}<|endoftext|>
COSQL
<|context|>[{"columns":["order_id","customer_id","order_status","date_order_placed","order_details"],"name":"orders","type":"grid"}]<|endoftext|><|prompter|>What is the ID of the oldest customer?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"date_order_placed","limit":1,"aggregation":"avg","direction":"ask"}]}}<|endoftext|><|prompter|>what about the newest customer?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"date_order_placed","limit":1,"aggregation":"avg","direction":"desk"}]}}<|endoftext|><|prompter|>What is the order status of the order for customer with ID 11<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"customer_id","operation":"=","value":11}]}}<|endoftext|><|prompter|>What date did customer with ID 11 place an order?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"customer_id","operation":"=","value":11}]}}<|endoftext|><|prompter|>Thanks!<|endoftext|><|assistant|>{"text":"welcome,goodbye","dsl":{}}<|endoftext|>
COSQL
<|context|>[{"columns":["player_id","birth_year","birth_month","birth_day","birth_country","birth_state","birth_city","death_year","death_month","death_day","death_country","death_state","death_city","name_first","name_last","name_given","weight","height","bats","throws","debut","final_game","retro_id","bbref_id"],"name":"player","type":"grid"}]<|endoftext|><|prompter|>Find all the players' first name and last name who have empty death record.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"death_year","operation":"=","value":""}]}}<|endoftext|><|prompter|>What are the first name and last name of the players whose death record is empty?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"death_year","operation":"=","value":""}]}}<|endoftext|><|prompter|>How many players born in USA are right-handed batters? That is, have the batter value 'R'.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"birth_country","operation":"=","value":"USA"},{"actionType":"ChangeCondition","column":"bats","operation":"=","value":"R"}]}}<|endoftext|><|prompter|>Count the number of players who were born in USA and have bats information 'R'.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"birth_country","operation":"=","value":"USA"},{"actionType":"ChangeCondition","column":"bats","operation":"=","value":"R"}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["Church_ID","Male_ID","Female_ID","Year"],"name":"wedding","type":"grid"}]<|endoftext|><|prompter|>How many weddings are there in year 2016?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"YEAR","operation":"=","value":2016}]}}<|endoftext|><|prompter|>How many churches have a wedding in year 2016?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"church_id","aggregation":"COUNT"},{"actionType":"ChangeCondition","column":"YEAR","operation":"=","value":2016}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["product_id","product","dimensions","dpi","pages_per_minute_color","max_page_size","interface"],"name":"product","type":"grid"}]<|endoftext|><|prompter|>What is the average pages per minute color?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"pages_per_minute_color","aggregation":"avg"}]}}<|endoftext|><|prompter|>What is the average number of pages per minute color?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"pages_per_minute_color","aggregation":"avg"}]}}<|endoftext|><|prompter|>Find products with max page size as "A4" and pages per minute color smaller than 5.<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"max_page_size","operation":"=","value":"'A4'"},{"actionType":"ChangeCondition","column":"pages_per_minute_color","operation":"<","value":5}]}}<|endoftext|><|prompter|>What are the products with the maximum page size A4 that also have a pages per minute color smaller than 5?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"max_page_size","operation":"=","value":"'A4'"},{"actionType":"ChangeCondition","column":"pages_per_minute_color","operation":"<","value":5}]}}<|endoftext|>
SPIDER
<|context|>[{"columns":["id","name","date","bulgarian_commander","latin_commander","result"],"name":"battle","type":"grid"}]<|endoftext|><|prompter|>What is the Latin commander of Battle of Serres?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"name","operation":"=","value":"'Battle of Serres'"}]}}<|endoftext|><|prompter|>What is the result of 31st January 1206?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"date","operation":"=","value":"'31 January 1206'"}]}}<|endoftext|><|prompter|>Who is the Bulgarian commander on June 1205?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"date","operation":"=","value":"'June 1205'"}]}}<|endoftext|><|prompter|>What is the name of battle who has Latin commander is Baldwin 1?<|endoftext|><|assistant|>{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"latin_commander","operation":"=","value":"'Baldwin I'"}]}}<|endoftext|><|prompter|>Thanks!<|endoftext|><|assistant|>{"text":"goodbye","dsl":{}}<|endoftext|>
COSQL
README.md exists but content is empty. Use the Edit dataset card button to edit it.
Downloads last month
13
Edit dataset card