id
stringlengths
36
36
parent_id
float64
role
stringclasses
1 value
question
stringlengths
18
215
dsl
stringlengths
87
369
context
stringclasses
452 values
e7c2a4d2-34e1-4c63-b80d-edf9cfb332c0
null
USER
What is the joined year of the pilot of the highest rank?
{"transformations":[{"column":"Rank","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"asc"}]}
[{"columns":["Pilot_ID","Pilot_name","Rank","Age","Nationality","Position","Join_Year","Team"],"name":"pilot","type":"grid"}]
e136e675-d727-47e7-a566-6b510a432a66
null
USER
How many distinct transaction types are used in the transactions?
{"transformations":[{"column":"transaction_type_code","transformationType":"aggregations","aggregation":"count"}]}
[{"columns":["transaction_id","investor_id","transaction_type_code","date_of_transaction","amount_of_transaction","share_count","other_details"],"name":"Transactions","type":"grid"}]
9bc21c14-dddf-423e-946c-52483236f149
null
USER
Show theme and year for all exhibitions in an descending order of ticket price.
{"transformations":[{"column":"ticket_price","transformationType":"sorting","direction":"desc"}]}
[{"columns":["Exhibition_ID","Year","Theme","Artist_ID","Ticket_Price"],"name":"exhibition","type":"grid"}]
96dbb522-9ce5-499c-90be-fd31e494ee1c
null
USER
Display each language and the number of TV channels that use it.
{"transformations":[{"column":"id","transformationType":"aggregations","aggregation":"count"},{"column":"LANGUAGE","transformationType":"grouping"}]}
[{"columns":["id","series_name","Country","Language","Content","Pixel_aspect_ratio_PAR","Hight_definition_TV","Pay_per_view_PPV","Package_Option"],"name":"TV_Channel","type":"grid"}]
59431ecb-a76e-4693-a1cf-dddc4c0a095a
null
USER
How many phone hardware models are produced by the company named "Nokia Corporation"?
{"transformations":[{"column":"Company_name","transformationType":"aggregations","aggregation":"count"},{"column":"Company_name","transformationType":"condition","operation":"=","value":"'Nokia Corporation'"}]}
[{"columns":["Company_name","Hardware_Model_name","Accreditation_type","Accreditation_level","Date","chip_model","screen_mode"],"name":"phone","type":"grid"}]
18e131fe-3213-4b8b-ac2a-c3ef6d368ecc
null
USER
Show the delegate from district 1 in election.
{"transformations":[{"column":"District","transformationType":"condition","operation":"=","value":1}]}
[{"columns":["Election_ID","Counties_Represented","District","Delegate","Party","First_Elected","Committee"],"name":"election","type":"grid"}]
9c545621-7ae9-4c3c-8e32-303c9989c6a4
null
USER
What is the number of rooms available for each type of bed?
{"transformations":[{"column":"RoomId","transformationType":"aggregations","aggregation":"count"},{"column":"bedType","transformationType":"grouping"}]}
[{"columns":["RoomId","roomName","beds","bedType","maxOccupancy","basePrice","decor"],"name":"Rooms","type":"grid"}]
07bf2d53-c45a-4ec4-87bc-86299aa55888
null
USER
How many faculty members are there per rank and gender?
{"transformations":[{"column":"FacID","transformationType":"aggregations","aggregation":"count"},{"column":"rank","transformationType":"grouping"},{"column":"sex","transformationType":"grouping"}]}
[{"columns":["FacID","Lname","Fname","Rank","Sex","Phone","Room","Building"],"name":"Faculty","type":"grid"}]
1be9f437-cbc4-430c-ae8b-041bce4b4380
null
USER
Show all card type codes and the number of customers holding cards in 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"}]
125b9c42-be51-46c2-896f-3430398a422b
null
USER
What are the employee ids for each employee and final dates of employment at their last job?
{"transformations":[{"column":"end_date","transformationType":"aggregations","aggregation":"max"},{"column":"employee_id","transformationType":"grouping"}]}
[{"columns":["EMPLOYEE_ID","START_DATE","END_DATE","JOB_ID","DEPARTMENT_ID"],"name":"job_history","type":"grid"}]
2b94518f-4c1f-4d1c-a78f-67b0ecef37e7
null
USER
What are the ids and durations of the trips with the top 3 durations?
{"transformations":[{"column":"duration","limit":3,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]}
[{"columns":["id","duration","start_date","start_station_name","start_station_id","end_date","end_station_name","end_station_id","bike_id","subscription_type","zip_code"],"name":"trip","type":"grid"}]
8d4328ad-b1c2-4409-adfd-384a8e049aae
null
USER
Show different carriers of phones together with the number of phones with each carrier.
{"transformations":[{"column":"Name","transformationType":"aggregations","aggregation":"count"},{"column":"Carrier","transformationType":"grouping"}]}
[{"columns":["Name","Phone_ID","Memory_in_G","Carrier","Price"],"name":"phone","type":"grid"}]
9ee45e3b-dcea-4413-a810-5a5f954c16ab
null
USER
What is the number of ships?
{"transformations":[{"column":"Ship_ID","transformationType":"aggregations","aggregation":"count"}]}
[{"columns":["Ship_ID","Name","Type","Nationality","Tonnage"],"name":"ship","type":"grid"}]
2722f6a3-fd73-443d-9ddb-21f116fb0308
null
USER
Count the number of female Professors we have.
{"transformations":[{"column":"FacID","transformationType":"aggregations","aggregation":"count"},{"column":"Sex","transformationType":"condition","operation":"=","value":"F"},{"column":"Rank","transformationType":"condition","operation":"=","value":"'Professor'"}]}
[{"columns":["FacID","Lname","Fname","Rank","Sex","Phone","Room","Building"],"name":"Faculty","type":"grid"}]
f0555cd1-77c1-4843-95e0-83fd800c38bd
null
USER
What are the different affiliations, and how many schools with each affiliation have an enrollment size of over 20000?
{"transformations":[{"column":"School_ID","transformationType":"aggregations","aggregation":"count"},{"column":"enrollment","transformationType":"condition","operation":">","value":20000},{"column":"affiliation","transformationType":"grouping"}]}
[{"columns":["School_ID","School","Location","Founded","Affiliation","Enrollment","Nickname","Primary_conference"],"name":"university","type":"grid"}]
be701af5-ec68-4882-8ea6-7dc8d230fbdb
null
USER
Show the party and the number of drivers in each party.
{"transformations":[{"column":"Driver_ID","transformationType":"aggregations","aggregation":"count"},{"column":"party","transformationType":"grouping"}]}
[{"columns":["Driver_ID","Name","Party","Home_city","Age"],"name":"driver","type":"grid"}]
0361231c-c073-43bd-afb6-e6d0c8f28f0b
null
USER
Count the number of candidates.
{"transformations":[{"column":"Candidate_ID","transformationType":"aggregations","aggregation":"count"}]}
[{"columns":["Candidate_ID","People_ID","Poll_Source","Date","Support_rate","Consider_rate","Oppose_rate","Unsure_rate"],"name":"candidate","type":"grid"}]
dec1a94f-737f-421f-896a-2f65aa0dc4fd
null
USER
Where us the club named "Tennis Club" located?
{"transformations":[{"column":"clubname","transformationType":"condition","operation":"=","value":"'Tennis Club'"}]}
[{"columns":["ClubID","ClubName","ClubDesc","ClubLocation"],"name":"Club","type":"grid"}]
59da3740-f055-4d9f-b1ce-933c12825c56
null
USER
What is the average song rating for each language?
{"transformations":[{"column":"rating","transformationType":"aggregations","aggregation":"avg"},{"column":"languages","transformationType":"grouping"}]}
[{"columns":["song_name","artist_name","country","f_id","genre_is","rating","languages","releasedate","resolution"],"name":"song","type":"grid"}]
119b840f-a218-49ff-a0e3-cb4d91d0f533
null
USER
Provide the classroom number and determine the number of unique grades utilizing the room for each classroom.
{"transformations":[{"column":"grade","transformationType":"aggregations","aggregation":"count"},{"column":"classroom","transformationType":"grouping"}]}
[{"columns":["LastName","FirstName","Grade","Classroom"],"name":"list","type":"grid"}]
17e7bbb5-309d-4e12-8584-4e3e02ce29be
null
USER
Find the names of all instructors in computer science department
{"transformations":[{"column":"dept_name","transformationType":"condition","operation":"=","value":"Comp. Sci."}]}
[{"columns":["ID","name","dept_name","salary"],"name":"instructor","type":"grid"}]
1a955cbf-9ea6-4d24-891a-5a32e6109517
null
USER
What campuses opened between 1935 and 1939?
{"transformations":[{"column":"YEAR","transformationType":"condition","operation":">=","value":1935},{"column":"YEAR","transformationType":"condition","operation":"<=","value":1939}]}
[{"columns":["Id","Campus","Location","County","Year"],"name":"Campuses","type":"grid"}]
3dc74f83-ec4f-4ff2-bbcd-96592866f59c
null
USER
How many orchestras does each record company manage?
{"transformations":[{"column":"Orchestra_ID","transformationType":"aggregations","aggregation":"count"},{"column":"Record_Company","transformationType":"grouping"}]}
[{"columns":["Orchestra_ID","Orchestra","Conductor_ID","Record_Company","Year_of_Founded","Major_Record_Format"],"name":"orchestra","type":"grid"}]
aa958506-42c8-4b3a-9fff-67eb2da2ae1a
null
USER
How many film are there?
{"transformations":[{"column":"Film_ID","transformationType":"aggregations","aggregation":"count"}]}
[{"columns":["Film_ID","Title","Studio","Director","Gross_in_dollar"],"name":"film","type":"grid"}]
d42226da-01fe-43f8-8bb3-dc838b3f8354
null
USER
Report the total number of students for each grade 0 classroom.
{"transformations":[{"column":"LastName","transformationType":"aggregations","aggregation":"count"},{"column":"grade","transformationType":"condition","operation":"=","value":"'0'"},{"column":"classroom","transformationType":"grouping"}]}
[{"columns":["LastName","FirstName","Grade","Classroom"],"name":"list","type":"grid"}]
e4e7b3d1-3f9e-448b-ab87-0127a4a2e0c7
null
USER
How many sections does each course have?
{"transformations":[{"column":"CLASS_CODE","transformationType":"aggregations","aggregation":"count"},{"column":"crs_code","transformationType":"grouping"}]}
[{"columns":["CLASS_CODE","CRS_CODE","CLASS_SECTION","CLASS_TIME","CLASS_ROOM","PROF_NUM"],"name":"CLASS","type":"grid"}]
4288e1aa-5ea6-426d-a575-e1725369393f
null
USER
Show ids for all the male faculty.
{"transformations":[{"column":"Sex","transformationType":"condition","operation":"=","value":"M"}]}
[{"columns":["FacID","Lname","Fname","Rank","Sex","Phone","Room","Building"],"name":"Faculty","type":"grid"}]
d36505df-cc61-4386-b418-8d22857a5592
null
USER
Find the average unit price for a track.
{"transformations":[{"column":"UnitPrice","transformationType":"aggregations","aggregation":"avg"}]}
[{"columns":["TrackId","Name","AlbumId","MediaTypeId","GenreId","Composer","Milliseconds","Bytes","UnitPrice"],"name":"Track","type":"grid"}]
44503486-7624-4419-a06f-61a35db604e3
null
USER
display the full name (first and last), hire date, salary, and department number for those employees whose first name does not containing the letter M.
{"transformations":[{"column":"first_name","transformationType":"condition","operation":"not contains","value":"M"}]}
[{"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"}]
e3069496-2418-4c23-a134-61996b30d848
null
USER
Show all customer ids and the number of accounts for each customer.
{"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"}]
1ab98072-9080-4a77-a3b9-f66274f76473
null
USER
Provide a count of individuals from each birthplace.
{"transformations":[{"column":"People_ID","transformationType":"aggregations","aggregation":"count"},{"column":"Birth_Place","transformationType":"grouping"}]}
[{"columns":["People_ID","Name","Height","Weight","Birth_Date","Birth_Place"],"name":"people","type":"grid"}]
99a7f656-bbe0-4742-a66f-797b388a9fdf
null
USER
How many climbers are from each country?
{"transformations":[{"column":"Climber_ID","transformationType":"aggregations","aggregation":"count"},{"column":"Country","transformationType":"grouping"}]}
[{"columns":["Climber_ID","Name","Country","Time","Points","Mountain_ID"],"name":"climber","type":"grid"}]
361028bd-da8e-4984-aea1-b18514efe5bf
null
USER
which poll source does the highest oppose rate come from?
{"transformations":[{"column":"oppose_rate","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]}
[{"columns":["Candidate_ID","People_ID","Poll_Source","Date","Support_rate","Consider_rate","Oppose_rate","Unsure_rate"],"name":"candidate","type":"grid"}]
804e1e51-a7a1-4c32-9ec5-6bff5f328ad5
null
USER
When did the staff member Janessa Sawayn leave the company?
{"transformations":[{"column":"first_name","transformationType":"condition","operation":"=","value":"'Janessa'"},{"column":"last_name","transformationType":"condition","operation":"=","value":"'Sawayn'"}]}
[{"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"}]
9d0e8a86-fa9a-4988-9efd-23b99e226183
null
USER
Show all distinct city where branches with at least 100 memberships are located.
{"transformations":[{"column":"membership_amount","transformationType":"condition","operation":">=","value":100}]}
[{"columns":["Branch_ID","Name","Open_year","Address_road","City","membership_amount"],"name":"branch","type":"grid"}]
12b8aa5e-9003-47b6-b2ba-c90fa0fc17a4
null
USER
Find the number of distinct type of pets.
{"transformations":[{"column":"pettype","transformationType":"aggregations","aggregation":"count"}]}
[{"columns":["PetID","PetType","pet_age","weight"],"name":"Pets","type":"grid"}]
c22d6a09-366b-4ced-98c7-d13307898ae6
null
USER
Who is the earliest graduate of the school? List the first name, middle name and last name.
{"transformations":[{"column":"date_left","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"asc"}]}
[{"columns":["student_id","current_address_id","permanent_address_id","first_name","middle_name","last_name","cell_mobile_number","email_address","ssn","date_first_registered","date_left","other_student_details"],"name":"Students","type":"grid"}]
020355b0-279d-44ac-bc52-accef3624dd8
null
USER
How many different cities are they from?
{"transformations":[{"column":"city","transformationType":"aggregations","aggregation":"count"}]}
[{"columns":["name","age","city","gender","job"],"name":"Person","type":"grid"}]
402587b9-d265-452f-b9df-9389c7497f24
null
USER
How many book clubs are there?
{"transformations":[{"column":"book_club_id","transformationType":"aggregations","aggregation":"count"}]}
[{"columns":["book_club_id","Year","Author_or_Editor","Book_Title","Publisher","Category","Result"],"name":"book_club","type":"grid"}]
e0a8a607-e66a-4f58-8b70-787b61409f8c
null
USER
When did researchers start and stop working?
{"transformations":[{"column":"role_code","transformationType":"condition","operation":"=","value":"researcher"}]}
[{"columns":["staff_id","project_id","role_code","date_from","date_to","other_details"],"name":"Project_Staff","type":"grid"}]
51e6779c-8f71-4aeb-95bc-c4c382babd87
null
USER
Show theme and year for all exhibitions with ticket prices lower than 15.
{"transformations":[{"column":"ticket_price","transformationType":"condition","operation":"<","value":15}]}
[{"columns":["Exhibition_ID","Year","Theme","Artist_ID","Ticket_Price"],"name":"exhibition","type":"grid"}]
938c088c-e5f7-4337-a9e1-354c18fd9172
null
USER
How many journalists are there?
{"transformations":[{"column":"journalist_ID","transformationType":"aggregations","aggregation":"count"}]}
[{"columns":["journalist_ID","Name","Nationality","Age","Years_working"],"name":"journalist","type":"grid"}]
bb80f97e-7ace-4d4e-9473-6fdaa5fd6662
null
USER
Calculate the total rating ratio for each channel owner.
{"transformations":[{"column":"Rating_in_percent","transformationType":"aggregations","aggregation":"sum"},{"column":"OWNER","transformationType":"grouping"}]}
[{"columns":["Channel_ID","Name","Owner","Share_in_percent","Rating_in_percent"],"name":"channel","type":"grid"}]
a4ef0b24-4059-4997-9fd6-22875303c578
null
USER
Show different nominees and the number of musicals they have been nominated.
{"transformations":[{"column":"Musical_ID","transformationType":"aggregations","aggregation":"count"},{"column":"Nominee","transformationType":"grouping"}]}
[{"columns":["Musical_ID","Name","Year","Award","Category","Nominee","Result"],"name":"musical","type":"grid"}]
8bd89703-6be0-40e7-a42c-e25908eb8b2a
null
USER
Which courses are taught on days MTW?
{"transformations":[{"column":"Days","transformationType":"condition","operation":"=","value":"'MTW'"}]}
[{"columns":["CID","CName","Credits","Instructor","Days","Hours","DNO"],"name":"Course","type":"grid"}]
5568e889-3021-444c-a031-529c3b5e394a
null
USER
display the country ID and number of cities for each country.
{"transformations":[{"column":"LOCATION_ID","transformationType":"aggregations","aggregation":"count"},{"column":"country_id","transformationType":"grouping"}]}
[{"columns":["LOCATION_ID","STREET_ADDRESS","POSTAL_CODE","CITY","STATE_PROVINCE","COUNTRY_ID"],"name":"locations","type":"grid"}]
dca43c78-d5ad-4f5a-9d22-3cebb08bfbe0
null
USER
Which city is post code 255 located in?
{"transformations":[{"column":"zip_postcode","transformationType":"condition","operation":"=","value":255}]}
[{"columns":["address_id","address_content","city","zip_postcode","state_province_county","country","other_address_details"],"name":"Addresses","type":"grid"}]
44012e82-deec-4e83-af92-6327bc73e919
null
USER
Count the number of different companies.
{"transformations":[{"column":"Company","transformationType":"aggregations","aggregation":"count"}]}
[{"columns":["Entrepreneur_ID","People_ID","Company","Money_Requested","Investor"],"name":"entrepreneur","type":"grid"}]
a2868c0b-21d9-499e-a859-9d73c8f15013
null
USER
display the employee ID for each employee and the date on which he ended his previous job.
{"transformations":[{"column":"end_date","transformationType":"aggregations","aggregation":"max"},{"column":"employee_id","transformationType":"grouping"}]}
[{"columns":["EMPLOYEE_ID","START_DATE","END_DATE","JOB_ID","DEPARTMENT_ID"],"name":"job_history","type":"grid"}]
fa329d70-4da6-460b-8042-04b63b4dd5d7
null
USER
List the headquarter locations and the number of companies located there for each headquarter.
{"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"}]
ee733ace-22fe-4fef-b85a-52bafb11043d
null
USER
What is the average age of female (sex is F) students?
{"transformations":[{"column":"Age","transformationType":"aggregations","aggregation":"avg"},{"column":"Sex","transformationType":"condition","operation":"=","value":"'F'"}]}
[{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"Student","type":"grid"}]
12814057-c2f9-412e-bdea-493d83840f3a
null
USER
For each team, how many technicians are there?
{"transformations":[{"column":"technician_id","transformationType":"aggregations","aggregation":"count"},{"column":"Team","transformationType":"grouping"}]}
[{"columns":["technician_id","Name","Team","Starting_Year","Age"],"name":"technician","type":"grid"}]
b1f08814-eab3-47b2-9e6d-947a68629290
null
USER
Find the entry name of the catalog with the highest price (in USD).
{"transformations":[{"column":"price_in_dollars","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]}
[{"columns":["catalog_entry_id","catalog_level_number","parent_entry_id","previous_entry_id","next_entry_id","catalog_entry_name","product_stock_number","price_in_dollars","price_in_euros","price_in_pounds","capacity","length","height","width"],"name":"Catalog_Contents","type":"grid"}]
cd8fff4b-2252-4bb2-ae64-8a14aeb3ed5e
null
USER
Sort the company names in descending order of the company's market value.
{"transformations":[{"column":"Market_Value_billion","transformationType":"sorting","direction":"desc"}]}
[{"columns":["id","name","Headquarters","Industry","Sales_billion","Profits_billion","Assets_billion","Market_Value_billion"],"name":"Companies","type":"grid"}]
f70adff4-7881-4f39-9ca5-b928ccaa2e7e
null
USER
Count the number of actors.
{"transformations":[{"column":"Actor_ID","transformationType":"aggregations","aggregation":"count"}]}
[{"columns":["Actor_ID","Name","Musical_ID","Character","Duration","age"],"name":"actor","type":"grid"}]
fd4c5aed-1907-4dfe-a656-a0ce7ba4493c
null
USER
How many documents correspond with each project id?
{"transformations":[{"column":"Document_ID","transformationType":"aggregations","aggregation":"count"},{"column":"project_id","transformationType":"grouping"}]}
[{"columns":["Document_ID","Document_Type_Code","Project_ID","Document_Date","Document_Name","Document_Description","Other_Details"],"name":"Documents","type":"grid"}]
a5df2242-99cb-4d13-ab13-5520560ca6ba
null
USER
How many medicines were not approved by the FDA?
{"transformations":[{"column":"id","transformationType":"aggregations","aggregation":"count"},{"column":"FDA_approved","transformationType":"condition","operation":"=","value":"No"}]}
[{"columns":["id","name","Trade_Name","FDA_approved"],"name":"medicine","type":"grid"}]
d12d6a9a-e9ec-4371-a7ac-ea9563902bb1
null
USER
What is the total enrollment number of all colleges?
{"transformations":[{"column":"enr","transformationType":"aggregations","aggregation":"sum"}]}
[{"columns":["cName","state","enr"],"name":"College","type":"grid"}]
21af8081-8ecf-4e23-9ab9-7cf54c616a60
null
USER
Find the average checking balance.
{"transformations":[{"column":"balance","transformationType":"aggregations","aggregation":"avg"}]}
[{"columns":["custid","balance"],"name":"CHECKING","type":"grid"}]
fc892739-1da7-4ef9-b9e2-8c079974a1f1
null
USER
How many type of governments are in Africa?
{"transformations":[{"column":"GovernmentForm","transformationType":"aggregations","aggregation":"count"},{"column":"Continent","transformationType":"condition","operation":"=","value":"'Africa'"}]}
[{"columns":["Code","Name","Continent","Region","SurfaceArea","IndepYear","Population","LifeExpectancy","GNP","GNPOld","LocalName","GovernmentForm","HeadOfState","Capital","Code2"],"name":"country","type":"grid"}]
ab45aad9-2450-405b-9aba-07e1c4078ab0
null
USER
Please show the countries and the number of climbers from each country.
{"transformations":[{"column":"Climber_ID","transformationType":"aggregations","aggregation":"count"},{"column":"Country","transformationType":"grouping"}]}
[{"columns":["Climber_ID","Name","Country","Time","Points","Mountain_ID"],"name":"climber","type":"grid"}]
f8239cef-343d-4987-9848-b5c7a1ab0373
null
USER
Find the highest latitude for the stations in each city.
{"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"}]
b04fd4c0-c11b-4c71-b778-f1069eb5198a
null
USER
List the full name (first and last name), and salary for those employees who earn below 6000.
{"transformations":[{"column":"salary","transformationType":"condition","operation":"<","value":6000}]}
[{"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"}]
355f2518-a66e-44b3-a3f1-76d6e6f2ca01
null
USER
Find the name and category of the most expensive product.
{"transformations":[{"column":"product_price","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]}
[{"columns":["product_id","parent_product_id","product_category_code","date_product_first_available","date_product_discontinued","product_name","product_description","product_price"],"name":"Products","type":"grid"}]
f1ece2a1-57a0-4ebd-a0d6-467c784153ac
null
USER
Count different addresses of each school.
{"transformations":[{"column":"dept_address","transformationType":"aggregations","aggregation":"count"},{"column":"school_code","transformationType":"grouping"}]}
[{"columns":["DEPT_CODE","DEPT_NAME","SCHOOL_CODE","EMP_NUM","DEPT_ADDRESS","DEPT_EXTENSION"],"name":"DEPARTMENT","type":"grid"}]
c246bd8d-a50d-4fc6-9f82-95f574bf17cb
null
USER
Who advises student 1004?
{"transformations":[{"column":"StuID","transformationType":"condition","operation":"=","value":1004}]}
[{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"Student","type":"grid"}]
06b01753-fd73-4436-bee8-392dbf691e09
null
USER
Which department has the highest average instructor salary?
{"transformations":[{"column":"dept_name","transformationType":"grouping"},{"column":"salary","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]}
[{"columns":["ID","name","dept_name","salary"],"name":"instructor","type":"grid"}]
d909ffb9-4ad8-4e3b-8219-c5fce1fc3570
null
USER
How many conductors are there?
{"transformations":[{"column":"Conductor_ID","transformationType":"aggregations","aggregation":"count"}]}
[{"columns":["Conductor_ID","Name","Age","Nationality","Year_of_Work"],"name":"conductor","type":"grid"}]
f8b49ca5-cad0-47f0-b1d2-c240a5dd002a
null
USER
Which programs' origins are not "Beijing"? Give me the program names.
{"transformations":[{"column":"origin","transformationType":"condition","operation":"!=","value":"Beijing"}]}
[{"columns":["Program_ID","Name","Origin","Launch","Owner"],"name":"program","type":"grid"}]
82baa9cb-ba28-4088-a2f5-d004ac87dccb
null
USER
How many different colleges were represented at tryouts?
{"transformations":[{"column":"cName","transformationType":"aggregations","aggregation":"count"}]}
[{"columns":["pID","cName","pPos","decision"],"name":"Tryout","type":"grid"}]
829257ae-f3f7-46d3-bb06-c536d35f25a2
null
USER
Find the numbers of different majors and cities.
{"transformations":[{"column":"major","transformationType":"aggregations","aggregation":"count"},{"column":"city_code","transformationType":"aggregations","aggregation":"count"}]}
[{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"Student","type":"grid"}]
be125798-aaec-4069-b453-94a3a5cafa42
null
USER
What are the first names and birth dates of players from the USA?
{"transformations":[{"column":"country_code","transformationType":"condition","operation":"=","value":"USA"}]}
[{"columns":["player_id","first_name","last_name","hand","birth_date","country_code"],"name":"players","type":"grid"}]
8574597f-b41d-41f2-9f05-70f422118993
null
USER
Return the record companies of orchestras, sorted descending by the years in which they were founded.
{"transformations":[{"column":"Year_of_Founded","transformationType":"sorting","direction":"desc"}]}
[{"columns":["Orchestra_ID","Orchestra","Conductor_ID","Record_Company","Year_of_Founded","Major_Record_Format"],"name":"orchestra","type":"grid"}]
a1cf829e-ac5e-4e69-a998-0be6be85969f
null
USER
List the maximum weight and pet type for each pet category.
{"transformations":[{"column":"weight","transformationType":"aggregations","aggregation":"max"},{"column":"petType","transformationType":"grouping"}]}
[{"columns":["PetID","PetType","pet_age","weight"],"name":"Pets","type":"grid"}]
0ca2ba7e-cb4a-4b35-8636-6d48ea1eaf21
null
USER
Find the last names of students with major 50.
{"transformations":[{"column":"Major","transformationType":"condition","operation":"=","value":50}]}
[{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"Student","type":"grid"}]
ed2f2f7d-ba68-4025-9300-1f97a3ee3405
null
USER
Return the song in the volume that has spent the most weeks on top?
{"transformations":[{"column":"Weeks_on_Top","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]}
[{"columns":["Volume_ID","Volume_Issue","Issue_Date","Weeks_on_Top","Song","Artist_ID"],"name":"volume","type":"grid"}]
efa520e8-3c00-4372-a5f9-839348066f56
null
USER
How many cities have a stadium that was opened before the year of 2006?
{"transformations":[{"column":"city","transformationType":"aggregations","aggregation":"count"},{"column":"opening_year","transformationType":"condition","operation":"<","value":2006}]}
[{"columns":["ID","name","Capacity","City","Country","Opening_year"],"name":"stadium","type":"grid"}]
234fb67a-3c3d-4de1-9e3d-c7221d39b2e9
null
USER
For each bed type, find the average room price.
{"transformations":[{"column":"basePrice","transformationType":"aggregations","aggregation":"avg"},{"column":"bedType","transformationType":"grouping"}]}
[{"columns":["RoomId","roomName","beds","bedType","maxOccupancy","basePrice","decor"],"name":"Rooms","type":"grid"}]
6897b226-c77a-4451-ad49-3664e8a93e80
null
USER
Show the hometowns of teachers and the number of teachers from each hometown.
{"transformations":[{"column":"Teacher_ID","transformationType":"aggregations","aggregation":"count"},{"column":"Hometown","transformationType":"grouping"}]}
[{"columns":["Teacher_ID","Name","Age","Hometown"],"name":"teacher","type":"grid"}]
23b66c09-1354-4b2a-b56b-3cdf52c96be4
null
USER
For each classroom, provide the classroom number and the number of grade levels using it.
{"transformations":[{"column":"grade","transformationType":"aggregations","aggregation":"count"},{"column":"classroom","transformationType":"grouping"}]}
[{"columns":["LastName","FirstName","Grade","Classroom"],"name":"list","type":"grid"}]
6802c684-1913-4629-b7cf-0bdcbd22ad2d
null
USER
How many departments offer courses?
{"transformations":[{"column":"dept_name","transformationType":"aggregations","aggregation":"count"}]}
[{"columns":["course_id","title","dept_name","credits"],"name":"course","type":"grid"}]
c4e23305-bba0-40f9-9a1e-0f4fb72aa15b
null
USER
How many perpetrators are there?
{"transformations":[{"column":"Perpetrator_ID","transformationType":"aggregations","aggregation":"count"}]}
[{"columns":["Perpetrator_ID","People_ID","Date","Year","Location","Country","Killed","Injured"],"name":"perpetrator","type":"grid"}]
89ace8c8-2e4e-48bd-9990-7a0d3bb0d791
null
USER
In zip code 94107, on which day neither Fog nor Rain was not observed?
{"transformations":[{"column":"zip_code","transformationType":"condition","operation":"=","value":94107},{"column":"EVENTS","transformationType":"condition","operation":"!=","value":"'Fog'"},{"column":"EVENTS","transformationType":"condition","operation":"!=","value":"'Rain'"}]}
[{"columns":["date","max_temperature_f","mean_temperature_f","min_temperature_f","max_dew_point_f","mean_dew_point_f","min_dew_point_f","max_humidity","mean_humidity","min_humidity","max_sea_level_pressure_inches","mean_sea_level_pressure_inches","min_sea_level_pressure_inches","max_visibility_miles","mean_visibility_miles","min_visibility_miles","max_wind_Speed_mph","mean_wind_speed_mph","max_gust_speed_mph","precipitation_inches","cloud_cover","events","wind_dir_degrees","zip_code"],"name":"weather","type":"grid"}]
2a82cd15-64bc-44ef-88bf-9d6285f8226d
null
USER
Count the number of trains originating from each starting point.
{"transformations":[{"column":"id","transformationType":"aggregations","aggregation":"count"},{"column":"origin","transformationType":"grouping"}]}
[{"columns":["id","train_number","name","origin","destination","time","interval"],"name":"train","type":"grid"}]
8f90106e-f1b5-4dc5-a3fc-f6d71e9bed15
null
USER
What are the origins of all flights that are headed to Honolulu?
{"transformations":[{"column":"destination","transformationType":"condition","operation":"=","value":"'Honolulu'"}]}
[{"columns":["flno","origin","destination","distance","departure_date","arrival_date","price","aid"],"name":"flight","type":"grid"}]
6ccca326-fde2-41a9-b2f2-d524bbe78cc0
null
USER
What is the name of customers who do not use Cash as payment method.
{"transformations":[{"column":"payment_method","transformationType":"condition","operation":"!=","value":"Cash"}]}
[{"columns":["customer_id","payment_method","customer_name","date_became_customer","other_customer_details"],"name":"Customers","type":"grid"}]
330caa01-55d8-44fd-ad77-5f53e856f085
null
USER
How many languages are in these films?
{"transformations":[{"column":"language_id","transformationType":"aggregations","aggregation":"count"}]}
[{"columns":["film_id","title","description","release_year","language_id","original_language_id","rental_duration","rental_rate","length","replacement_cost","rating","special_features","last_update"],"name":"film","type":"grid"}]
7d3e9e51-8a67-4ef6-9a81-32b853414192
null
USER
What is the average fee for a CSU campus in the year of 1996?
{"transformations":[{"column":"campusfee","transformationType":"aggregations","aggregation":"avg"},{"column":"YEAR","transformationType":"condition","operation":"=","value":1996}]}
[{"columns":["Campus","Year","CampusFee"],"name":"csu_fees","type":"grid"}]
ba73da0d-c2f8-4780-9784-664d2beccec4
null
USER
Count the number of players who entered the hall of fame for each year.
{"transformations":[{"column":"player_id","transformationType":"aggregations","aggregation":"count"},{"column":"yearid","transformationType":"grouping"}]}
[{"columns":["player_id","yearid","votedby","ballots","needed","votes","inducted","category","needed_note"],"name":"hall_of_fame","type":"grid"}]
f8faa6fe-5a16-478a-8e49-1528566ef4d1
null
USER
List the themes of parties in ascending order of number of hosts.
{"transformations":[{"column":"Number_of_hosts","transformationType":"sorting","direction":"asc"}]}
[{"columns":["Party_ID","Party_Theme","Location","First_year","Last_year","Number_of_hosts"],"name":"party","type":"grid"}]
7375d772-95c6-493a-a3c2-8799a38db3e1
null
USER
Please show each industry and the corresponding number of companies in that industry.
{"transformations":[{"column":"id","transformationType":"aggregations","aggregation":"count"},{"column":"Industry","transformationType":"grouping"}]}
[{"columns":["id","name","Headquarters","Industry","Sales_billion","Profits_billion","Assets_billion","Market_Value_billion"],"name":"Companies","type":"grid"}]
64ff4d85-f37c-4ae6-aebe-469618c01471
null
USER
How many king beds are there?
{"transformations":[{"column":"beds","transformationType":"aggregations","aggregation":"sum"},{"column":"bedtype","transformationType":"condition","operation":"=","value":"King"}]}
[{"columns":["RoomId","roomName","beds","bedType","maxOccupancy","basePrice","decor"],"name":"Rooms","type":"grid"}]
db6165c4-65ff-48b5-afab-53e1b91d7b33
null
USER
Find the name of the students and their department names sorted by their total credits in ascending order.
{"transformations":[{"column":"tot_cred","transformationType":"sorting","direction":"asc"}]}
[{"columns":["ID","name","dept_name","tot_cred"],"name":"student","type":"grid"}]
0d747031-3fc5-417b-b4a3-b5eaccca7fcb
null
USER
Return the names of people, ordered alphabetically.
{"transformations":[{"column":"Name","transformationType":"sorting","direction":"asc"}]}
[{"columns":["People_ID","Name","Age","Height","Hometown"],"name":"people","type":"grid"}]
13e684c0-b89d-41e5-8215-1701f7df8732
null
USER
For every nationality, how many singers originate from that country?
{"transformations":[{"column":"Singer_ID","transformationType":"aggregations","aggregation":"count"},{"column":"Citizenship","transformationType":"grouping"}]}
[{"columns":["Singer_ID","Name","Birth_Year","Net_Worth_Millions","Citizenship"],"name":"singer","type":"grid"}]
39ededf2-ccd9-4a04-be7e-b257caabfd8b
null
USER
What is the average price of products with manufacturer codes equal to 2?
{"transformations":[{"column":"price","transformationType":"aggregations","aggregation":"avg"},{"column":"Manufacturer","transformationType":"condition","operation":"=","value":2}]}
[{"columns":["Code","Name","Price","Manufacturer"],"name":"Products","type":"grid"}]
d9474bbd-8dca-4cca-9fe1-2988b3833284
null
USER
What are the course names, ordered by credits?
{"transformations":[{"column":"Credits","transformationType":"sorting","direction":"asc"}]}
[{"columns":["CID","CName","Credits","Instructor","Days","Hours","DNO"],"name":"Course","type":"grid"}]
b78f876a-0887-42fb-8658-42273960c325
null
USER
Find the total claimed amount of all the claims.
{"transformations":[{"column":"Amount_Claimed","transformationType":"aggregations","aggregation":"sum"}]}
[{"columns":["Claim_ID","Policy_ID","Date_Claim_Made","Date_Claim_Settled","Amount_Claimed","Amount_Settled"],"name":"Claims","type":"grid"}]
889d8cdc-8287-467f-aec4-e94ce6bd9d03
null
USER
list the card number of all members whose hometown address includes word "Kentucky".
{"transformations":[{"column":"Hometown","transformationType":"condition","operation":"contains","value":"Kentucky"}]}
[{"columns":["Member_ID","Card_Number","Name","Hometown","Level"],"name":"member","type":"grid"}]
683c9398-0bd9-4185-a1ad-7cf917f4dcad
null
USER
How many invoices are associated with each order ID?
{"transformations":[{"column":"invoice_number","transformationType":"aggregations","aggregation":"count"},{"column":"order_id","transformationType":"grouping"}]}
[{"columns":["invoice_number","order_id","invoice_date"],"name":"Invoices","type":"grid"}]