id
stringlengths 36
36
| parent_id
float64 | role
stringclasses 1
value | question
stringlengths 18
215
| dsl
stringlengths 87
369
| context
stringclasses 452
values |
---|---|---|---|---|---|
e79ce474-4227-4d33-a53e-4c8881ac5172 | null | USER | Find the name of the department which has the highest average salary of professors. | {"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"}] |
743da1c2-a677-49a9-a553-91a17378f862 | null | USER | What are the names of all the scientists in alphabetical order? | {"transformations":[{"column":"name","transformationType":"sorting","direction":"asc"}]} | [{"columns":["SSN","Name"],"name":"Scientists","type":"grid"}] |
b2413ad4-665a-4850-98cf-ec5610b7defa | null | USER | Compute the average price of all products with manufacturer code 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"}] |
34541223-4325-4de8-a2ad-cbc19e5735aa | null | USER | What are the companies of entrepreneurs, ordered descending by amount of money requested? | {"transformations":[{"column":"Money_Requested","transformationType":"sorting","direction":"desc"}]} | [{"columns":["Entrepreneur_ID","People_ID","Company","Money_Requested","Investor"],"name":"entrepreneur","type":"grid"}] |
c2c1a923-8642-4ab5-888d-fdc9479f1ffc | null | USER | What are the names of artist who have the letter 'a' in their names? | {"transformations":[{"column":"Name","transformationType":"condition","operation":"contains","value":"a"}]} | [{"columns":["ArtistId","Name"],"name":"Artist","type":"grid"}] |
894cbd0b-6bb5-4670-a1f8-0f7d8be3a1dd | null | USER | Determine the mean weight for each type of pet. | {"transformations":[{"column":"weight","transformationType":"aggregations","aggregation":"avg"},{"column":"pettype","transformationType":"grouping"}]} | [{"columns":["PetID","PetType","pet_age","weight"],"name":"Pets","type":"grid"}] |
83175ba7-cd8e-45e1-9f8b-62d767de4cb3 | null | USER | Find the name, enrollment of the colleges whose size is bigger than 10000 and location is in state LA. | {"transformations":[{"column":"enr","transformationType":"condition","operation":">","value":10000},{"column":"state","transformationType":"condition","operation":"=","value":"'LA'"}]} | [{"columns":["cName","state","enr"],"name":"College","type":"grid"}] |
ef49e3eb-38ac-4aac-8e46-896051bccade | null | USER | What is the name of the event that happened in the most recent year? | {"transformations":[{"column":"YEAR","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]} | [{"columns":["ID","Name","Stadium_ID","Year"],"name":"event","type":"grid"}] |
75ea17a7-f424-4b8f-947b-971d42eef290 | null | USER | Calculate the average weight for each pet category. | {"transformations":[{"column":"weight","transformationType":"aggregations","aggregation":"avg"},{"column":"pettype","transformationType":"grouping"}]} | [{"columns":["PetID","PetType","pet_age","weight"],"name":"Pets","type":"grid"}] |
6cdca422-a958-44ae-b4a0-4b279234f50e | null | USER | Find the patient who most recently stayed in room 111. | {"transformations":[{"column":"room","transformationType":"condition","operation":"=","value":111},{"column":"staystart","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]} | [{"columns":["StayID","Patient","Room","StayStart","StayEnd"],"name":"Stay","type":"grid"}] |
80e45be8-ff9f-49b8-8707-6d7795c00d33 | null | USER | For each language, list 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"}] |
96d4b5a2-38cd-4526-bb2e-4ae6d15504e4 | null | USER | How many buildings are there? | {"transformations":[{"column":"building_id","transformationType":"aggregations","aggregation":"count"}]} | [{"columns":["building_id","Name","Street_address","Years_as_tallest","Height_feet","Floors"],"name":"building","type":"grid"}] |
e416db6e-0ebc-458c-9a62-63bb0b418fd9 | null | USER | What are the names of the counties of public safety, ordered by population descending? | {"transformations":[{"column":"Population","transformationType":"sorting","direction":"desc"}]} | [{"columns":["County_ID","Name","Population","Police_officers","Residents_per_officer","Case_burden","Crime_rate","Police_force","Location"],"name":"county_public_safety","type":"grid"}] |
5491fc36-a832-46c3-b373-6b20ccfccf06 | null | USER | Show the number of students for each major. | {"transformations":[{"column":"Captain_ID","transformationType":"aggregations","aggregation":"count"},{"column":"age","transformationType":"condition","operation":"<","value":50},{"column":"rank","transformationType":"grouping"}]} | [{"columns":["Captain_ID","Name","Ship_ID","age","Class","Rank"],"name":"captain","type":"grid"}] |
0d74d97f-bf00-4226-bea7-9a255a1f48db | null | USER | Show year where a track with a seating at least 5000 opened and a track with seating no more than 4000 opened. | {"transformations":[{"column":"seating","transformationType":"condition","operation":">=","value":4000},{"column":"seating","transformationType":"condition","operation":"<=","value":5000}]} | [{"columns":["Track_ID","Name","Location","Seating","Year_Opened"],"name":"track","type":"grid"}] |
75f7ae04-cf6e-4a0b-bd6f-1b50cfbc9f61 | null | USER | What is the count of different game types? | {"transformations":[{"column":"gtype","transformationType":"aggregations","aggregation":"count"}]} | [{"columns":["GameID","GName","GType"],"name":"Video_Games","type":"grid"}] |
f114cdc5-eb6e-4ce0-a9fe-fb6165ad3e2a | null | USER | Show the name and the release year of the song by the youngest singer. | {"transformations":[{"column":"age","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"asc"}]} | [{"columns":["Singer_ID","Name","Country","Song_Name","Song_release_year","Age","Is_male"],"name":"singer","type":"grid"}] |
ddcdb048-e78b-403e-974f-ca219a95d05e | null | USER | What is the number of aircraft? | {"transformations":[{"column":"Aircraft_ID","transformationType":"aggregations","aggregation":"count"}]} | [{"columns":["Aircraft_ID","Aircraft","Description","Max_Gross_Weight","Total_disk_area","Max_disk_Loading"],"name":"aircraft","type":"grid"}] |
9df2ec96-9a4f-4def-a979-eb5e56ac950b | null | USER | What is the name of the player with the largest number of votes? | {"transformations":[{"column":"Votes","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]} | [{"columns":["Player_ID","Sponsor_name","Player_name","Gender","Residence","Occupation","Votes","Rank"],"name":"player","type":"grid"}] |
894ca00c-eb3d-48b6-82b3-0c3acd2ee65f | null | USER | Which city has the lowest GDP? Please list the city name and its GDP. | {"transformations":[{"column":"GDP","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"asc"}]} | [{"columns":["City_ID","City","Hanzi","Hanyu_Pinyin","Regional_Population","GDP"],"name":"city","type":"grid"}] |
3c1cc361-d4b4-4730-8e18-b73912c71fd7 | null | USER | Find all 200 meter and 300 meter results of swimmers with nationality "Australia". | {"transformations":[{"column":"nationality","transformationType":"condition","operation":"=","value":"Australia"}]} | [{"columns":["ID","name","Nationality","meter_100","meter_200","meter_300","meter_400","meter_500","meter_600","meter_700","Time"],"name":"swimmer","type":"grid"}] |
7384ef1a-fa4a-4142-9be3-6cb6b358f506 | null | USER | What are the descriptions for all the math courses? | {"transformations":[{"column":"course_name","transformationType":"condition","operation":"=","value":"math"}]} | [{"columns":["course_id","course_name","course_description","other_details"],"name":"Courses","type":"grid"}] |
0ec14849-f507-4d0c-8ac9-731ad13a8cc2 | null | USER | List order ids and the product count for each order. | {"transformations":[{"column":"product_id","transformationType":"aggregations","aggregation":"count"},{"column":"order_id","transformationType":"grouping"}]} | [{"columns":["order_item_id","order_id","product_id","product_quantity","other_order_item_details"],"name":"Order_Items","type":"grid"}] |
0f607abd-8aa2-42b0-81a8-45c1bdfe7d27 | null | USER | What are the staff roles of the staff who | {"transformations":[{"column":"date_from","transformationType":"condition","operation":">","value":"2003-04-19 15:06:20"},{"column":"date_to","transformationType":"condition","operation":"<","value":"2016-03-15 00:33:18"}]} | [{"columns":["staff_id","project_id","role_code","date_from","date_to","other_details"],"name":"Project_Staff","type":"grid"}] |
c0fa7189-7548-45e1-b867-adc238562038 | null | USER | Return the weight of the shortest person. | {"transformations":[{"column":"Height","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"asc"}]} | [{"columns":["People_ID","Name","Height","Weight","Date_of_Birth"],"name":"people","type":"grid"}] |
e69dcd45-0ca6-4859-8300-bfc4d77228dd | null | USER | Count the number of invoices. | {"transformations":[{"column":"invoice_number","transformationType":"aggregations","aggregation":"count"}]} | [{"columns":["invoice_number","order_id","invoice_date"],"name":"Invoices","type":"grid"}] |
dede38a7-20c9-4d17-aadc-a01629531165 | null | USER | what is the phone number of employees whose salary is in the range of 8000 and 12000? | {"transformations":[{"column":"salary","transformationType":"condition","operation":">=","value":8000},{"column":"salary","transformationType":"condition","operation":"<=","value":12000}]} | [{"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"}] |
d2e4ce03-a125-4048-8bfe-a67b34f7ec4f | null | USER | Show the maximum amount of transaction. | {"transformations":[{"column":"amount_of_transaction","transformationType":"aggregations","aggregation":"max"}]} | [{"columns":["transaction_id","investor_id","transaction_type_code","date_of_transaction","amount_of_transaction","share_count","other_details"],"name":"Transactions","type":"grid"}] |
1f69b763-d282-446d-9fe8-688bf292d96d | null | USER | Return the poll source corresponding to the candidate who has the oppose rate. | {"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"}] |
809fd8f6-a153-4d26-90a2-37e817ee8df5 | null | USER | How many patients stay in room 112? | {"transformations":[{"column":"patient","transformationType":"aggregations","aggregation":"count"},{"column":"room","transformationType":"condition","operation":"=","value":112}]} | [{"columns":["StayID","Patient","Room","StayStart","StayEnd"],"name":"Stay","type":"grid"}] |
c26479fa-8c74-49db-9c12-f094db17791a | null | USER | What is the template type descriptions for template type code "AD". | {"transformations":[{"column":"template_type_code","transformationType":"condition","operation":"=","value":"'AD'"}]} | [{"columns":["Template_Type_Code","Template_Type_Description"],"name":"Ref_Template_Types","type":"grid"}] |
dcef15de-705e-4f86-b387-cf993c57ab62 | null | USER | List the distinct police forces of counties whose location is not on east side. | {"transformations":[{"column":"LOCATION","transformationType":"condition","operation":"!=","value":"'East'"}]} | [{"columns":["County_ID","Name","Population","Police_officers","Residents_per_officer","Case_burden","Crime_rate","Police_force","Location"],"name":"county_public_safety","type":"grid"}] |
46a0b858-0dc5-458a-ad88-a1225946527a | null | USER | Display all student IDs and their total hours played. | {"transformations":[{"column":"hours_played","transformationType":"aggregations","aggregation":"sum"},{"column":"Stuid","transformationType":"grouping"}]} | [{"columns":["StuID","GameID","Hours_Played"],"name":"Plays_Games","type":"grid"}] |
f907d6d2-4c8b-4cb6-91ae-cc74a9204051 | null | USER | Return the average gross sales in dollars across all films. | {"transformations":[{"column":"Gross_in_dollar","transformationType":"aggregations","aggregation":"avg"}]} | [{"columns":["Film_ID","Title","Studio","Director","Gross_in_dollar"],"name":"film","type":"grid"}] |
9a26b34f-0421-48a9-af0f-a1b23375cec0 | null | USER | Find id of the candidate who most recently accessed the course? | {"transformations":[{"column":"assessment_date","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]} | [{"columns":["candidate_id","qualification","assessment_date","asessment_outcome_code"],"name":"Candidate_Assessments","type":"grid"}] |
b6941f3e-7607-42a6-b2ba-4863f5952bb6 | null | USER | What is the total number of airlines? | {"transformations":[{"column":"alid","transformationType":"aggregations","aggregation":"count"}]} | [{"columns":["alid","name","iata","icao","callsign","country","active"],"name":"airlines","type":"grid"}] |
185c75a1-f0b5-4b47-b596-ba52a8b847f7 | null | USER | Determine the number of entrepreneurs associated with each investor. | {"transformations":[{"column":"Entrepreneur_ID","transformationType":"aggregations","aggregation":"count"},{"column":"Investor","transformationType":"grouping"}]} | [{"columns":["Entrepreneur_ID","People_ID","Company","Money_Requested","Investor"],"name":"entrepreneur","type":"grid"}] |
fa7ec1b4-ad5a-43cc-bf78-18450f4cb11c | null | USER | Return the different document ids along with the number of paragraphs corresponding to each, ordered by id. | {"transformations":[{"column":"Paragraph_ID","transformationType":"aggregations","aggregation":"count"},{"column":"document_id","transformationType":"grouping"},{"column":"document_id","transformationType":"sorting","direction":"asc"}]} | [{"columns":["Paragraph_ID","Document_ID","Paragraph_Text","Other_Details"],"name":"Paragraphs","type":"grid"}] |
66488cda-dbd9-481b-ac99-25d0d8e6e0be | null | USER | Display the number of students and their corresponding ages. | {"transformations":[{"column":"StuID","transformationType":"aggregations","aggregation":"count"},{"column":"age","transformationType":"grouping"}]} | [{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"Student","type":"grid"}] |
06815e68-6f69-4d11-8acc-6b34748fbedc | null | USER | What are the cities whose population is between 160000 and 900000? | {"transformations":[{"column":"Population","transformationType":"condition","operation":">=","value":160000},{"column":"Population","transformationType":"condition","operation":"<=","value":900000}]} | [{"columns":["ID","Name","CountryCode","District","Population"],"name":"city","type":"grid"}] |
ebbd15f4-d549-40ec-9d1d-a658494d86e6 | null | USER | Return the names of the 3 most populated countries. | {"transformations":[{"column":"Population","limit":3,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]} | [{"columns":["Code","Name","Continent","Region","SurfaceArea","IndepYear","Population","LifeExpectancy","GNP","GNPOld","LocalName","GovernmentForm","HeadOfState","Capital","Code2"],"name":"country","type":"grid"}] |
77b1845d-3342-47f9-a792-c9ce345e5638 | null | USER | How many documents are with document type code BK for each product id? | {"transformations":[{"column":"Document_ID","transformationType":"aggregations","aggregation":"count"},{"column":"document_type_code","transformationType":"condition","operation":"=","value":"'BK'"},{"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"}] |
3657c6e9-44fb-42b5-a0f3-a7f212c67d2b | null | USER | Compute the average number of hosts for parties. | {"transformations":[{"column":"Number_of_hosts","transformationType":"aggregations","aggregation":"avg"}]} | [{"columns":["Party_ID","Party_Theme","Location","First_year","Last_year","Number_of_hosts"],"name":"party","type":"grid"}] |
ba792fd2-f292-44bb-9582-d02c4e242ca0 | null | USER | Return the phone numbers of employees with salaries between 8000 and 12000. | {"transformations":[{"column":"salary","transformationType":"condition","operation":">=","value":8000},{"column":"salary","transformationType":"condition","operation":"<=","value":12000}]} | [{"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"}] |
409d6748-f999-4a0c-b7da-6ee3e651c8d6 | null | USER | How many entrepreneurs correspond to each investor? | {"transformations":[{"column":"Entrepreneur_ID","transformationType":"aggregations","aggregation":"count"},{"column":"Investor","transformationType":"grouping"}]} | [{"columns":["Entrepreneur_ID","People_ID","Company","Money_Requested","Investor"],"name":"entrepreneur","type":"grid"}] |
5324d7d0-082e-42f7-8097-a73d8c5ce85e | null | USER | Show all artist name, age, and country ordered by the yeared they joined. | {"transformations":[{"column":"Year_Join","transformationType":"sorting","direction":"asc"}]} | [{"columns":["Artist_ID","Name","Country","Year_Join","Age"],"name":"artist","type":"grid"}] |
ca130972-0665-4995-8b6a-381db1f02c56 | null | USER | What is the average speed of roller coasters? | {"transformations":[{"column":"Speed","transformationType":"aggregations","aggregation":"avg"}]} | [{"columns":["Roller_Coaster_ID","Name","Park","Country_ID","Length","Height","Speed","Opened","Status"],"name":"roller_coaster","type":"grid"}] |
d3e6325f-9f96-4b52-a376-ae8ada53a186 | null | USER | Find the room number of the rooms which can sit 50 to 100 students and their buildings. | {"transformations":[{"column":"capacity","transformationType":"condition","operation":">=","value":50},{"column":"capacity","transformationType":"condition","operation":"<=","value":100}]} | [{"columns":["building","room_number","capacity"],"name":"classroom","type":"grid"}] |
7443a6d0-46a6-4e36-97be-f6afed85b436 | null | USER | Show all book categories and the number of books in each category. | {"transformations":[{"column":"book_club_id","transformationType":"aggregations","aggregation":"count"},{"column":"category","transformationType":"grouping"}]} | [{"columns":["book_club_id","Year","Author_or_Editor","Book_Title","Publisher","Category","Result"],"name":"book_club","type":"grid"}] |
7e2fd5c8-3a76-424e-bd12-05dbd994e348 | null | USER | show the lowest low temperature and highest wind speed in miles per hour. | {"transformations":[{"column":"low_temperature","transformationType":"aggregations","aggregation":"min"},{"column":"wind_speed_mph","transformationType":"aggregations","aggregation":"max"}]} | [{"columns":["station_id","day_of_week","high_temperature","low_temperature","precipitation","wind_speed_mph"],"name":"weekly_weather","type":"grid"}] |
ca9ee21a-6988-437c-9037-c7507f353a96 | null | USER | What is the email of the student with first name "Emma" and last name "Rohan"? | {"transformations":[{"column":"first_name","transformationType":"condition","operation":"=","value":"'Emma'"},{"column":"last_name","transformationType":"condition","operation":"=","value":"'Rohan'"}]} | [{"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"}] |
bd78d7c1-b4f2-42f2-a572-997e9a2d752e | null | USER | How many sections does course ACCT-211 has? | {"transformations":[{"column":"class_section","transformationType":"aggregations","aggregation":"count"},{"column":"crs_code","transformationType":"condition","operation":"=","value":"ACCT-211"}]} | [{"columns":["CLASS_CODE","CRS_CODE","CLASS_SECTION","CLASS_TIME","CLASS_ROOM","PROF_NUM"],"name":"CLASS","type":"grid"}] |
d27b4ea5-8b66-4d5b-809b-6c019f9293bf | null | USER | What is the stories of highest building? | {"transformations":[{"column":"Height","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]} | [{"columns":["id","name","City","Height","Stories","Status"],"name":"buildings","type":"grid"}] |
0e88c5f3-37a0-4121-8446-d1c6de248439 | null | USER | What is the id of the patient who stayed in room 111 most recently? | {"transformations":[{"column":"room","transformationType":"condition","operation":"=","value":111},{"column":"staystart","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]} | [{"columns":["StayID","Patient","Room","StayStart","StayEnd"],"name":"Stay","type":"grid"}] |
ebd8a05f-cbc7-458b-9464-c9f500661d67 | null | USER | Count the number of artists. | {"transformations":[{"column":"Artist_ID","transformationType":"aggregations","aggregation":"count"}]} | [{"columns":["Artist_ID","Artist","Age","Famous_Title","Famous_Release_date"],"name":"artist","type":"grid"}] |
00c70b2e-a26c-4d3f-b389-c1db9ae22384 | null | USER | For each customer status code, how many customers are classified that way? | {"transformations":[{"column":"customer_id","transformationType":"aggregations","aggregation":"count"},{"column":"customer_status_code","transformationType":"grouping"}]} | [{"columns":["customer_id","customer_address_id","customer_status_code","date_became_customer","date_of_birth","first_name","last_name","amount_outstanding","email_address","phone_number","cell_mobile_phone_number"],"name":"Customers","type":"grid"}] |
880dec97-0e23-4c13-9a91-eab9be1d6a05 | null | USER | Find the average age of female 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"}] |
d82258be-5ab6-4d9a-ad1d-b5815ba99738 | null | USER | How many farms are there? | {"transformations":[{"column":"Farm_ID","transformationType":"aggregations","aggregation":"count"}]} | [{"columns":["Farm_ID","Year","Total_Horses","Working_Horses","Total_Cattle","Oxen","Bulls","Cows","Pigs","Sheep_and_Goats"],"name":"farm","type":"grid"}] |
4b2e04f4-4c4b-4f33-9c06-b7ebcb1a6640 | null | USER | Count the number of regions. | {"transformations":[{"column":"Region_ID","transformationType":"aggregations","aggregation":"count"}]} | [{"columns":["Region_ID","Region_name","Date","Label","Format","Catalogue"],"name":"region","type":"grid"}] |
da9e6b7b-5a12-418a-a2af-ecfcbffca304 | null | USER | What is the shipping agent code of shipping agent UPS? | {"transformations":[{"column":"shipping_agent_name","transformationType":"condition","operation":"=","value":"'UPS'"}]} | [{"columns":["shipping_agent_code","shipping_agent_name","shipping_agent_description"],"name":"Ref_Shipping_Agents","type":"grid"}] |
d8649745-ff74-4a1c-8f7f-c32f4df53f04 | null | USER | How many entrepreneurs correspond to each investor? | {"transformations":[{"column":"Entrepreneur_ID","transformationType":"aggregations","aggregation":"count"},{"column":"Investor","transformationType":"grouping"}]} | [{"columns":["Entrepreneur_ID","People_ID","Company","Money_Requested","Investor"],"name":"entrepreneur","type":"grid"}] |
d1c07caa-a9a9-4e2e-b193-830c405a3abb | null | USER | What are the names of the technicians by ascending order of age? | {"transformations":[{"column":"Age","transformationType":"sorting","direction":"asc"}]} | [{"columns":["technician_id","Name","Team","Starting_Year","Age"],"name":"technician","type":"grid"}] |
8acb6eee-1b61-4903-a421-95b0b62bffb1 | null | USER | How many matches occurred in each year? | {"transformations":[{"column":"best_of","transformationType":"aggregations","aggregation":"count"},{"column":"YEAR","transformationType":"grouping"}]} | [{"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"}] |
f25e1711-ddd1-477a-b85c-48cf86654aa0 | null | USER | Find the titles of all movies directed by steven spielberg. | {"transformations":[{"column":"director","transformationType":"condition","operation":"=","value":"Steven Spielberg"}]} | [{"columns":["mID","title","year","director"],"name":"Movie","type":"grid"}] |
6055273d-ad3a-4dbb-9527-a468f310e52d | null | USER | What is the country of the airport with the highest elevation? | {"transformations":[{"column":"elevation","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]} | [{"columns":["apid","name","city","country","x","y","elevation","iata","icao"],"name":"airports","type":"grid"}] |
4abf500c-6da9-4f26-8679-0947a3d2e158 | null | USER | How much does the youngest dog weigh? | {"transformations":[{"column":"pet_age","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"asc"}]} | [{"columns":["PetID","PetType","pet_age","weight"],"name":"Pets","type":"grid"}] |
7ed224a4-670c-4a07-8d10-642717ec629e | null | USER | Display locations with total platform and passenger counts for all train stations. | {"transformations":[{"column":"number_of_platforms","transformationType":"aggregations","aggregation":"sum"},{"column":"total_passengers","transformationType":"aggregations","aggregation":"sum"},{"column":"LOCATION","transformationType":"grouping"}]} | [{"columns":["Station_ID","Name","Annual_entry_exit","Annual_interchanges","Total_Passengers","Location","Main_Services","Number_of_Platforms"],"name":"station","type":"grid"}] |
517301b3-24d4-4f0e-9364-3352bdf2ec69 | null | USER | How many different bike ids are there? | {"transformations":[{"column":"bike_id","transformationType":"aggregations","aggregation":"count"}]} | [{"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"}] |
7966a904-1903-4baf-b6d8-e6447a33d5a4 | null | USER | Give the state corresponding to the line number building "6862 Kaitlyn Knolls". | {"transformations":[{"column":"line_1_number_building","transformationType":"condition","operation":"contains","value":"6862 Kaitlyn Knolls"}]} | [{"columns":["address_id","line_1_number_building","town_city","zip_postcode","state_province_county","country"],"name":"Addresses","type":"grid"}] |
ecf8acce-5832-4cf6-9ae7-d95c8ca6313e | 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"}] |
00d86a91-2b63-429a-8e39-4499720534e2 | null | USER | For each zip code, return how many times max wind speed reached 25? | {"transformations":[{"column":"date","transformationType":"aggregations","aggregation":"count"},{"column":"max_wind_Speed_mph","transformationType":"condition","operation":">=","value":25},{"column":"zip_code","transformationType":"grouping"}]} | [{"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"}] |
b7d74bb7-4560-4c36-87b5-a64da5870530 | null | USER | List the maximum weight and 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"}] |
f483773c-9fd3-4bcc-acc6-e16cc90bda51 | null | USER | Determine the number of rooms for each bed type. | {"transformations":[{"column":"RoomId","transformationType":"aggregations","aggregation":"count"},{"column":"bedType","transformationType":"grouping"}]} | [{"columns":["RoomId","roomName","beds","bedType","maxOccupancy","basePrice","decor"],"name":"Rooms","type":"grid"}] |
92e50f09-0554-4aaf-a841-7c0f5076609b | null | USER | What are the numbers of all flights that can cover a distance of more than 2000? | {"transformations":[{"column":"distance","transformationType":"condition","operation":">","value":2000}]} | [{"columns":["flno","origin","destination","distance","departure_date","arrival_date","price","aid"],"name":"flight","type":"grid"}] |
d2f036f2-cb26-4d99-8c8e-40ee406b943c | null | USER | What are the names of cities in ascending alphabetical order? | {"transformations":[{"column":"Name","transformationType":"sorting","direction":"asc"}]} | [{"columns":["City_ID","County_ID","Name","White","Black","Amerindian","Asian","Multiracial","Hispanic"],"name":"city","type":"grid"}] |
67c79d60-f930-4dcd-9f90-2b09de771afe | null | USER | What is the name of the highest rated wine? | {"transformations":[{"column":"Score","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"asc"}]} | [{"columns":["No","Grape","Winery","Appelation","State","Name","Year","Price","Score","Cases","Drink"],"name":"wine","type":"grid"}] |
4febb854-35ff-41c1-86ee-4e7ea14e351d | null | USER | List all ship names in the order of built year and class. | {"transformations":[{"column":"built_year","transformationType":"sorting","direction":"asc"},{"column":"CLASS","transformationType":"sorting","direction":"asc"}]} | [{"columns":["Ship_ID","Name","Type","Built_Year","Class","Flag"],"name":"Ship","type":"grid"}] |
92518da6-fc9c-40fa-b66b-83e062a92de3 | null | USER | Show the order IDs and the quantity of each order. | {"transformations":[{"column":"product_quantity","transformationType":"aggregations","aggregation":"sum"},{"column":"order_id","transformationType":"grouping"}]} | [{"columns":["order_item_id","order_id","product_id","product_quantity","other_order_item_details"],"name":"Order_Items","type":"grid"}] |
9ac4e505-ac53-47c4-b706-a80632a1548b | null | USER | When did the first staff member start working? | {"transformations":[{"column":"date_from","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"asc"}]} | [{"columns":["staff_id","project_id","role_code","date_from","date_to","other_details"],"name":"Project_Staff","type":"grid"}] |
2c96285a-7fe7-40f6-99fd-ec8c1cb90386 | null | USER | Find the average age of losers and winners of all matches. | {"transformations":[{"column":"loser_age","transformationType":"aggregations","aggregation":"avg"},{"column":"winner_age","transformationType":"aggregations","aggregation":"avg"}]} | [{"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"}] |
f1782e53-89c9-4281-9a4c-9e6b5fa0138a | null | USER | Calculate the follower count for each user. | {"transformations":[{"column":"f1","transformationType":"aggregations","aggregation":"count"},{"column":"f1","transformationType":"grouping"}]} | [{"columns":["f1","f2"],"name":"follows","type":"grid"}] |
205bedfd-fd54-42fe-8b0e-bcf432294586 | null | USER | Return all the distinct secretary votes made in the fall election cycle. | {"transformations":[{"column":"ELECTION_CYCLE","transformationType":"condition","operation":"=","value":"'Fall'"}]} | [{"columns":["StuID","Registration_Date","Election_Cycle","President_Vote","Vice_President_Vote","Secretary_Vote","Treasurer_Vote","Class_President_Vote","Class_Senator_Vote"],"name":"Voting_record","type":"grid"}] |
e4b6b502-250b-4aa2-851d-c3af1e23b860 | null | USER | Show the average hotel price for different pet policies. | {"transformations":[{"column":"price_range","transformationType":"aggregations","aggregation":"avg"},{"column":"pets_allowed_yn","transformationType":"grouping"}]} | [{"columns":["hotel_id","star_rating_code","pets_allowed_yn","price_range","other_hotel_details"],"name":"Hotels","type":"grid"}] |
241cece8-f45e-4e07-b895-5430f3d2f02e | null | USER | When did the episode "A Love of a Lifetime" air? | {"transformations":[{"column":"Episode","transformationType":"condition","operation":"=","value":"'A Love of a Lifetime'"}]} | [{"columns":["id","Episode","Air_Date","Rating","Share","18_49_Rating_Share","Viewers_m","Weekly_Rank","Channel"],"name":"TV_series","type":"grid"}] |
cc8390c2-1367-4eb8-a33b-1a1c8af836fd | null | USER | Display the number of roller coasters for each status category. | {"transformations":[{"column":"Roller_Coaster_ID","transformationType":"aggregations","aggregation":"count"},{"column":"Status","transformationType":"grouping"}]} | [{"columns":["Roller_Coaster_ID","Name","Park","Country_ID","Length","Height","Speed","Opened","Status"],"name":"roller_coaster","type":"grid"}] |
52b462e6-82ae-4232-83eb-e299b23de36f | null | USER | Return the average price for each product type. | {"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"}] |
8e844b81-0e0b-42cd-9b10-ca0d79b21927 | null | USER | Give the average quantity of stocks. | {"transformations":[{"column":"Quantity","transformationType":"aggregations","aggregation":"avg"}]} | [{"columns":["Shop_ID","Device_ID","Quantity"],"name":"stock","type":"grid"}] |
0e55edaf-7cca-4b60-b923-d510c9767def | null | USER | Name all the products with next entry ID greater than 8. | {"transformations":[{"column":"next_entry_id","transformationType":"condition","operation":">","value":8}]} | [{"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"}] |
8713330f-447e-4dcb-af05-d4899c50d9d3 | null | USER | What are the names of products with price at most 200? | {"transformations":[{"column":"price","transformationType":"condition","operation":"<=","value":200}]} | [{"columns":["Code","Name","Price","Manufacturer"],"name":"Products","type":"grid"}] |
fe7697ab-46a3-4371-a1bd-8f3ebfa48c24 | null | USER | List the number of invoices from the US, grouped by state. | {"transformations":[{"column":"id","transformationType":"aggregations","aggregation":"count"},{"column":"billing_country","transformationType":"condition","operation":"=","value":"'USA'"},{"column":"billing_state","transformationType":"grouping"}]} | [{"columns":["id","customer_id","invoice_date","billing_address","billing_city","billing_state","billing_country","billing_postal_code","total"],"name":"invoices","type":"grid"}] |
392dabbe-a3b7-4d95-a59c-012a93470c2b | null | USER | Give the airline with abbreviation 'UAL'. | {"transformations":[{"column":"Abbreviation","transformationType":"condition","operation":"=","value":"'UAL'"}]} | [{"columns":["uid","Airline","Abbreviation","Country"],"name":"airlines","type":"grid"}] |
7d98a41d-40ee-450a-a068-6b6dda138f14 | null | USER | What is the name and capacity for the stadium with highest average attendance? | {"transformations":[{"column":"average","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]} | [{"columns":["Stadium_ID","Location","Name","Capacity","Highest","Lowest","Average"],"name":"stadium","type":"grid"}] |
278fb447-c766-4e5c-9424-83a11af16f03 | null | USER | What are the public schools and what are their locations? | {"transformations":[{"column":"affiliation","transformationType":"condition","operation":"=","value":"Public"}]} | [{"columns":["School_ID","School","Location","Founded","Affiliation","Enrollment","Nickname","Primary_conference"],"name":"university","type":"grid"}] |
a6cb31b7-b25f-43c0-beb7-29d739961a52 | null | USER | What is the title and director for the movie with highest worldwide gross in the year 2000 or before? | {"transformations":[{"column":"YEAR","transformationType":"condition","operation":"<=","value":2000},{"column":"gross_worldwide","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]} | [{"columns":["movie_id","Title","Year","Director","Budget_million","Gross_worldwide"],"name":"movie","type":"grid"}] |
4e0e9191-3189-4e27-b0c9-a675179350d9 | null | USER | List the first and last name of students who are not living in the city with code HKG, and sorted the results by their ages. | {"transformations":[{"column":"city_code","transformationType":"condition","operation":"!=","value":"HKG"},{"column":"age","transformationType":"sorting","direction":"asc"}]} | [{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"Student","type":"grid"}] |
da1eca85-e2de-481a-9ba5-a9665c0ac552 | null | USER | Find the players whose names contain letter 'a'. | {"transformations":[{"column":"pName","transformationType":"condition","operation":"contains","value":"a"}]} | [{"columns":["pID","pName","yCard","HS"],"name":"Player","type":"grid"}] |
5f11c1e6-d7ea-445f-8325-d2ce156de0b9 | null | USER | Calculate the number of players with less than 30 points for each position. | {"transformations":[{"column":"Player_ID","transformationType":"aggregations","aggregation":"count"},{"column":"points","transformationType":"condition","operation":"<","value":30},{"column":"POSITION","transformationType":"grouping"}]} | [{"columns":["Player_ID","name","Position","Club_ID","Apps","Tries","Goals","Points"],"name":"player","type":"grid"}] |
4300a9a6-84a2-48ec-bc6c-04a1e083e6ad | null | USER | How many players enter hall of fame 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"}] |
33d96524-239f-4c4b-972a-a818fd5b4954 | null | USER | Determine the total account balance for customers with a credit score above 100 for different states. | {"transformations":[{"column":"acc_bal","transformationType":"aggregations","aggregation":"sum"},{"column":"credit_score","transformationType":"condition","operation":">","value":100},{"column":"state","transformationType":"grouping"}]} | [{"columns":["cust_ID","cust_name","acc_type","acc_bal","no_of_loans","credit_score","branch_ID","state"],"name":"customer","type":"grid"}] |
1d6158c5-6e3e-40b9-ab68-cf916bf43c4d | null | USER | What is the total revenue of companies started by founder? | {"transformations":[{"column":"revenue","transformationType":"aggregations","aggregation":"sum"},{"column":"founder","transformationType":"grouping"}]} | [{"columns":["Code","Name","Headquarter","Founder","Revenue"],"name":"Manufacturers","type":"grid"}] |