id
stringlengths
36
36
parent_id
float64
role
stringclasses
1 value
question
stringlengths
18
215
dsl
stringlengths
87
369
context
stringclasses
452 values
245982a5-f741-483f-a078-0a36a2b4115d
null
USER
For each city, find the highest latitude among its stations.
{"transformations":[{"column":"lat","transformationType":"aggregations","aggregation":"max"},{"column":"city","transformationType":"grouping"}]}
[{"columns":["id","name","lat","long","dock_count","city","installation_date"],"name":"station","type":"grid"}]
c1436122-fcc3-4999-824f-05d3ac7a349d
null
USER
Find the dates of the tests taken with result "Pass".
{"transformations":[{"column":"test_result","transformationType":"condition","operation":"=","value":"'Pass'"}]}
[{"columns":["registration_id","date_test_taken","test_result"],"name":"Student_Tests_Taken","type":"grid"}]
6ae3cf84-f146-4a6a-a8c2-6a6f4f62b7ec
null
USER
Which district has the least area?
{"transformations":[{"column":"city_area","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"asc"}]}
[{"columns":["District_ID","District_name","Headquartered_City","City_Population","City_Area"],"name":"district","type":"grid"}]
e5825a86-64a1-422e-96ed-1a2e4cb224a0
null
USER
List the writers of the books in ascending alphabetical order.
{"transformations":[{"column":"Writer","transformationType":"sorting","direction":"asc"}]}
[{"columns":["Book_ID","Title","Issues","Writer"],"name":"book","type":"grid"}]
bf2a01db-06c0-441f-87a2-77b17d5cfea6
null
USER
What are the different card type codes, and how many different customers hold each type?
{"transformations":[{"column":"customer_id","transformationType":"aggregations","aggregation":"count"},{"column":"card_type_code","transformationType":"grouping"}]}
[{"columns":["card_id","customer_id","card_type_code","card_number","date_valid_from","date_valid_to","other_card_details"],"name":"Customers_Cards","type":"grid"}]
4de18735-53e6-4fe2-8849-ebc880befc67
null
USER
Find the name and membership level of the visitors whose membership level is higher than 4, and sort by their age from old to young.
{"transformations":[{"column":"Level_of_membership","transformationType":"condition","operation":">","value":4},{"column":"age","transformationType":"sorting","direction":"desc"}]}
[{"columns":["ID","Name","Level_of_membership","Age"],"name":"visitor","type":"grid"}]
1f9975b6-6de8-4d6a-b4be-18e724f42b92
null
USER
What is the maximum enrollment across all schools?
{"transformations":[{"column":"Enrollment","transformationType":"aggregations","aggregation":"max"}]}
[{"columns":["School_ID","School","Location","Founded","Affiliation","Enrollment","Nickname","Primary_conference"],"name":"university","type":"grid"}]
28d9dbeb-2388-4b05-adc7-0118d9c67830
null
USER
What are the average profits of companies?
{"transformations":[{"column":"Profits_billion","transformationType":"aggregations","aggregation":"avg"}]}
[{"columns":["id","name","Headquarters","Industry","Sales_billion","Profits_billion","Assets_billion","Market_Value_billion"],"name":"Companies","type":"grid"}]
87ae8813-f80d-4160-9373-72c004aefdbc
null
USER
What is the name of the wrestler with the fewest days held?
{"transformations":[{"column":"Days_held","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"asc"}]}
[{"columns":["Wrestler_ID","Name","Reign","Days_held","Location","Event"],"name":"wrestler","type":"grid"}]
51722124-f1a6-44cc-b945-53def4372bec
null
USER
What are the names of banks in the state of New York?
{"transformations":[{"column":"state","transformationType":"condition","operation":"=","value":"New York"}]}
[{"columns":["branch_ID","bname","no_of_customers","city","state"],"name":"bank","type":"grid"}]
5047fa54-b632-4c2a-a53a-00d7e13e8208
null
USER
Display the number of players for each occupation.
{"transformations":[{"column":"Player_ID","transformationType":"aggregations","aggregation":"count"},{"column":"Occupation","transformationType":"grouping"}]}
[{"columns":["Player_ID","Sponsor_name","Player_name","Gender","Residence","Occupation","Votes","Rank"],"name":"player","type":"grid"}]
8bb9656d-2cf3-4684-a014-a261415b08c7
null
USER
What is the name of country that has the shortest life expectancy in Asia?
{"transformations":[{"column":"Continent","transformationType":"condition","operation":"=","value":"'Asia'"},{"column":"LifeExpectancy","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"asc"}]}
[{"columns":["Code","Name","Continent","Region","SurfaceArea","IndepYear","Population","LifeExpectancy","GNP","GNPOld","LocalName","GovernmentForm","HeadOfState","Capital","Code2"],"name":"country","type":"grid"}]
028ad66b-aaf2-4f91-b26b-8b1338506ef6
null
USER
Calculate the total number of students in each department.
{"transformations":[{"column":"ID","transformationType":"aggregations","aggregation":"count"},{"column":"dept_name","transformationType":"grouping"}]}
[{"columns":["ID","name","dept_name","tot_cred"],"name":"student","type":"grid"}]
ae9f9f26-2717-4439-9e0e-9ef154bf3a52
null
USER
Find the average number of bedrooms of all the apartments.
{"transformations":[{"column":"bedroom_count","transformationType":"aggregations","aggregation":"avg"}]}
[{"columns":["apt_id","building_id","apt_type_code","apt_number","bathroom_count","bedroom_count","room_count"],"name":"Apartments","type":"grid"}]
cda5205f-d780-43aa-986c-01ade71d1837
null
USER
What are the id of songs whose format is mp3.
{"transformations":[{"column":"formats","transformationType":"condition","operation":"=","value":"'mp3'"}]}
[{"columns":["f_id","artist_name","file_size","duration","formats"],"name":"files","type":"grid"}]
ab037239-0ed7-492e-96d1-bf0e2047e101
null
USER
What is the total number of customers who use banks in New York City?
{"transformations":[{"column":"no_of_customers","transformationType":"aggregations","aggregation":"sum"},{"column":"city","transformationType":"condition","operation":"=","value":"New York City"}]}
[{"columns":["branch_ID","bname","no_of_customers","city","state"],"name":"bank","type":"grid"}]
a5db5b43-f204-4d67-97bb-bf957f94b8ef
null
USER
How many friends does each student have?
{"transformations":[{"column":"student_id","transformationType":"aggregations","aggregation":"count"},{"column":"student_id","transformationType":"grouping"}]}
[{"columns":["student_id","friend_id"],"name":"Friend","type":"grid"}]
64f38afa-93af-42fa-94a0-4d0800839b0b
null
USER
List the id, country, city and name of the airports ordered alphabetically by the name.
{"transformations":[{"column":"name","transformationType":"sorting","direction":"asc"}]}
[{"columns":["id","City","Country","IATA","ICAO","name"],"name":"airport","type":"grid"}]
431119e5-84a6-4d46-9797-a75b24365c89
null
USER
Return the addresses of the course authors or tutors whose personal name is "Cathrine".
{"transformations":[{"column":"personal_name","transformationType":"condition","operation":"=","value":"'Cathrine'"}]}
[{"columns":["author_id","author_tutor_ATB","login_name","password","personal_name","middle_name","family_name","gender_mf","address_line_1"],"name":"Course_Authors_and_Tutors","type":"grid"}]
01237b15-a537-411b-94bc-11fa7c3d2ac9
null
USER
How many accounts are there for each customer id?
{"transformations":[{"column":"account_id","transformationType":"aggregations","aggregation":"count"},{"column":"customer_id","transformationType":"grouping"}]}
[{"columns":["account_id","customer_id","account_name","other_account_details"],"name":"Accounts","type":"grid"}]
5fcbb299-dcef-44fc-9b6c-1a82e3f636bf
null
USER
Give me the name and description of the document type code RV.
{"transformations":[{"column":"document_type_code","transformationType":"condition","operation":"=","value":"'RV'"}]}
[{"columns":["Document_Type_Code","Document_Type_Name","Document_Type_Description"],"name":"Ref_Document_Types","type":"grid"}]
d04380f7-d076-4103-aac2-4cd0b41b88da
null
USER
What are the crime rates of counties sorted by number of offices ascending?
{"transformations":[{"column":"Police_officers","transformationType":"sorting","direction":"asc"}]}
[{"columns":["County_ID","Name","Population","Police_officers","Residents_per_officer","Case_burden","Crime_rate","Police_force","Location"],"name":"county_public_safety","type":"grid"}]
a055658e-4dc2-471c-b96b-2c12f0d3f7e3
null
USER
What are the room numbers and corresponding buildings for classrooms which can seat between 50 to 100 students?
{"transformations":[{"column":"capacity","transformationType":"condition","operation":">=","value":50},{"column":"capacity","transformationType":"condition","operation":"<=","value":100}]}
[{"columns":["building","room_number","capacity"],"name":"classroom","type":"grid"}]
50a0dd0c-0b6c-4a20-8e4e-d10475b11dfe
null
USER
Find the average price for each type of product.
{"transformations":[{"column":"product_price","transformationType":"aggregations","aggregation":"avg"},{"column":"product_type_code","transformationType":"grouping"}]}
[{"columns":["product_id","product_type_code","product_name","product_price"],"name":"Products","type":"grid"}]
d56f5926-8822-44d9-b404-e9d1562cf975
null
USER
Please show different types of artworks with the corresponding number of artworks of each type.
{"transformations":[{"column":"Artwork_ID","transformationType":"aggregations","aggregation":"count"},{"column":"TYPE","transformationType":"grouping"}]}
[{"columns":["Artwork_ID","Type","Name"],"name":"artwork","type":"grid"}]
a2caf2bf-c74c-451e-9bb0-1beab99615d9
null
USER
What are the full name, hire data, salary and department id for employees without the letter M in their first name, ordered by ascending department id?
{"transformations":[{"column":"first_name","transformationType":"condition","operation":"not contains","value":"M"},{"column":"department_id","transformationType":"sorting","direction":"asc"}]}
[{"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"}]
3f2dba07-cc6f-4e79-9787-4c5c234ebb0a
null
USER
List all the customers in increasing order of IDs.
{"transformations":[{"column":"customer_id","transformationType":"sorting","direction":"asc"}]}
[{"columns":["Customer_ID","Customer_name"],"name":"Customers","type":"grid"}]
315de3ac-c2c0-44ac-a5d7-4da3a46cf9a7
null
USER
Find the birth dates corresponding to employees who live in the city of Edmonton.
{"transformations":[{"column":"City","transformationType":"condition","operation":"=","value":"'Edmonton'"}]}
[{"columns":["EmployeeId","LastName","FirstName","Title","ReportsTo","BirthDate","HireDate","Address","City","State","Country","PostalCode","Phone","Fax","Email"],"name":"Employee","type":"grid"}]
aa64a02e-02dc-4649-93e3-0df1944ae1dc
null
USER
How many different cities do have some airport in the country of Greenland?
{"transformations":[{"column":"city","transformationType":"aggregations","aggregation":"count"},{"column":"country","transformationType":"condition","operation":"=","value":"Greenland"}]}
[{"columns":["apid","name","city","country","x","y","elevation","iata","icao"],"name":"airports","type":"grid"}]
d0627d91-5c71-4ce7-a481-a52173e34fb2
null
USER
Retrieve the average price of products for each manufacturer, displaying only the manufacturer's code.
{"transformations":[{"column":"Price","transformationType":"aggregations","aggregation":"avg"},{"column":"Manufacturer","transformationType":"grouping"}]}
[{"columns":["Code","Name","Price","Manufacturer"],"name":"Products","type":"grid"}]
ef16a088-95ee-49f8-8ae6-29789e5c95d7
null
USER
Display all headquarters and the number of companies in each headquarters.
{"transformations":[{"column":"Company_ID","transformationType":"aggregations","aggregation":"count"},{"column":"headquarters","transformationType":"grouping"}]}
[{"columns":["Company_ID","Rank","Company","Headquarters","Main_Industry","Sales_billion","Profits_billion","Assets_billion","Market_Value"],"name":"company","type":"grid"}]
96c9189c-6851-4c10-84bf-8c4cac1efe14
null
USER
Show names of people whose nationality is not "Russia".
{"transformations":[{"column":"Nationality","transformationType":"condition","operation":"!=","value":"'Russia'"}]}
[{"columns":["People_ID","Nationality","Name","Birth_Date","Height"],"name":"people","type":"grid"}]
6d48563c-3211-4c54-b987-88b655fd7118
null
USER
Give the id and product type of the product with the lowest price.
{"transformations":[{"column":"product_price","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"asc"}]}
[{"columns":["product_id","product_type_code","product_name","product_price"],"name":"Products","type":"grid"}]
56d49fec-e098-4802-89fd-d3b34408bc4f
null
USER
Display publishers and the count of their publications.
{"transformations":[{"column":"Publication_ID","transformationType":"aggregations","aggregation":"count"},{"column":"Publisher","transformationType":"grouping"}]}
[{"columns":["Publication_ID","Book_ID","Publisher","Publication_Date","Price"],"name":"publication","type":"grid"}]