id
stringlengths 36
36
| parent_id
null | role
stringclasses 1
value | question
stringlengths 18
215
| dsl
stringlengths 87
369
| context
stringclasses 452
values |
---|---|---|---|---|---|
631422ad-caee-40cc-8830-be4a4fea9fe4 | null | USER | How many high school students are there in each grade level? | {"transformations":[{"column":"ID","transformationType":"aggregations","aggregation":"count"},{"column":"grade","transformationType":"grouping"}]} | [{"columns":["ID","name","grade"],"name":"Highschooler","type":"grid"}] |
660b2f84-b8ae-4ffd-8e97-e997186a79de | null | USER | Find the number of sections for each course. | {"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"}] |
8aef44bb-3805-4cae-8583-f3c7822dd124 | null | USER | What are the names of all the teams in the basketball competition, sorted by all home scores in descending order? | {"transformations":[{"column":"All_Home","transformationType":"sorting","direction":"desc"}]} | [{"columns":["Team_ID","School_ID","Team_Name","ACC_Regular_Season","ACC_Percent","ACC_Home","ACC_Road","All_Games","All_Games_Percent","All_Home","All_Road","All_Neutral"],"name":"basketball_match","type":"grid"}] |
5c547b97-c00b-4614-823e-dd982c4cff14 | null | USER | What is the total number of countries where Spanish is spoken by the largest percentage of people? | {"transformations":[{"column":"CountryCode","transformationType":"aggregations","aggregation":"count"},{"column":"Percentage","transformationType":"aggregations","aggregation":"max"},{"column":"LANGUAGE","transformationType":"condition","operation":"=","value":"'Spanish'"},{"column":"CountryCode","transformationType":"grouping"}]} | [{"columns":["CountryCode","Language","IsOfficial","Percentage"],"name":"countrylanguage","type":"grid"}] |
8707e1a0-fb6f-4c82-8077-6444c0a23bd0 | null | USER | Display the number of matches that occurred 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"}] |
5398d922-7b9b-4c93-9457-e317a10b6ed7 | null | USER | What is the location of the party with the most hosts? | {"transformations":[{"column":"Number_of_hosts","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]} | [{"columns":["Party_ID","Party_Theme","Location","First_year","Last_year","Number_of_hosts"],"name":"party","type":"grid"}] |
dfef9e5f-d954-46a9-8eef-d9d56eac1677 | null | USER | What are the distinct reigns of wrestlers whose location is not "Tokyo,Japan" ? | {"transformations":[{"column":"LOCATION","transformationType":"condition","operation":"!=","value":"'Tokyo , Japan'"}]} | [{"columns":["Wrestler_ID","Name","Reign","Days_held","Location","Event"],"name":"wrestler","type":"grid"}] |
2c8314ac-441c-4158-9946-7b13c028eb6f | null | USER | List the publication dates of publications with 3 lowest prices. | {"transformations":[{"column":"Price","limit":3,"transformationType":"topFilter","aggregation":"avg","direction":"asc"}]} | [{"columns":["Publication_ID","Book_ID","Publisher","Publication_Date","Price"],"name":"publication","type":"grid"}] |
48c5fb5b-fed6-49b7-a272-c0c0cdcd9048 | null | USER | How many songs have 4 minute duration? | {"transformations":[{"column":"f_id","transformationType":"aggregations","aggregation":"count"},{"column":"duration","transformationType":"condition","operation":"starts with","value":"4:"}]} | [{"columns":["f_id","artist_name","file_size","duration","formats"],"name":"files","type":"grid"}] |
50335962-abe5-4975-84a3-c9b153f26e9e | null | USER | What is the first name, GPA, and phone number of the students with the top 5 GPAs? | {"transformations":[{"column":"stu_gpa","limit":5,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]} | [{"columns":["STU_NUM","STU_LNAME","STU_FNAME","STU_INIT","STU_DOB","STU_HRS","STU_CLASS","STU_GPA","STU_TRANSFER","DEPT_CODE","STU_PHONE","PROF_NUM"],"name":"STUDENT","type":"grid"}] |
d7ca3705-9616-4ed9-8169-cc642d93e6d7 | null | USER | How many members have the black membership card? | {"transformations":[{"column":"Member_ID","transformationType":"aggregations","aggregation":"count"},{"column":"Membership_card","transformationType":"condition","operation":"=","value":"Black"}]} | [{"columns":["Member_ID","Name","Membership_card","Age","Time_of_purchase","Level_of_membership","Address"],"name":"member","type":"grid"}] |
49f60ff0-6a8e-4613-9700-75d03762b049 | null | USER | Which apartment type has the largest number of total rooms? Return the apartment type code, its number of bathrooms and number of bedrooms. | {"transformations":[{"column":"apt_type_code","transformationType":"grouping"},{"column":"room_count","limit":1,"transformationType":"topFilter","aggregation":"sum","direction":"desc"}]} | [{"columns":["apt_id","building_id","apt_type_code","apt_number","bathroom_count","bedroom_count","room_count"],"name":"Apartments","type":"grid"}] |
92559a19-99c2-46c7-b0fe-9aac70831367 | null | USER | What is the mean highest temperature for each day of the week? | {"transformations":[{"column":"high_temperature","transformationType":"aggregations","aggregation":"avg"},{"column":"day_of_week","transformationType":"grouping"}]} | [{"columns":["station_id","day_of_week","high_temperature","low_temperature","precipitation","wind_speed_mph"],"name":"weekly_weather","type":"grid"}] |
9f1de11e-5a59-4846-9ff9-9df20cf7e245 | null | USER | Provide the employee ID for each employee and the date on which they ended their 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"}] |
e81f7494-5bf8-4ce9-82bb-f2cc60bc8bcc | null | USER | Return the names of the contestants whose names contain the substring 'Al' . | {"transformations":[{"column":"contestant_name","transformationType":"condition","operation":"contains","value":"al"}]} | [{"columns":["contestant_number","contestant_name"],"name":"CONTESTANTS","type":"grid"}] |
706f0bce-04c1-4bf7-85a6-46de83c7442e | null | USER | Show all countries and the number of people from each country. | {"transformations":[{"column":"People_ID","transformationType":"aggregations","aggregation":"count"},{"column":"country","transformationType":"grouping"}]} | [{"columns":["People_ID","Name","Country","Is_Male","Age"],"name":"people","type":"grid"}] |
37167abd-c40d-4b1c-9a77-c7c1eafbd6f6 | null | USER | How many students are there? | {"transformations":[{"column":"StuID","transformationType":"aggregations","aggregation":"count"}]} | [{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"Student","type":"grid"}] |
e97b69ee-1646-476e-88cc-a599b65ad91f | null | USER | Return the description of the document type name 'Film'. | {"transformations":[{"column":"document_type_name","transformationType":"condition","operation":"=","value":"'Film'"}]} | [{"columns":["Document_Type_Code","Document_Type_Name","Document_Type_Description"],"name":"Ref_Document_Types","type":"grid"}] |
d134b291-a7b0-4332-a5c6-8e0e3c124b84 | null | USER | Count the number of entrepreneurs. | {"transformations":[{"column":"Entrepreneur_ID","transformationType":"aggregations","aggregation":"count"}]} | [{"columns":["Entrepreneur_ID","People_ID","Company","Money_Requested","Investor"],"name":"entrepreneur","type":"grid"}] |
1d2133e0-5325-48f4-8b64-d402ebe6ff80 | null | USER | How long is the people’s average life expectancy in Central Africa? | {"transformations":[{"column":"LifeExpectancy","transformationType":"aggregations","aggregation":"avg"},{"column":"Region","transformationType":"condition","operation":"=","value":"'Central Africa'"}]} | [{"columns":["Code","Name","Continent","Region","SurfaceArea","IndepYear","Population","LifeExpectancy","GNP","GNPOld","LocalName","GovernmentForm","HeadOfState","Capital","Code2"],"name":"country","type":"grid"}] |
f6f6792c-6a85-403e-a903-afed436b7bad | null | USER | What is the pixel aspect ratio and country of origin for all TV channels that do not use English? | {"transformations":[{"column":"LANGUAGE","transformationType":"condition","operation":"!=","value":"English"}]} | [{"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"}] |
6c0746ae-d4c8-40e0-a422-7344703cd52f | null | USER | Return the dates of ceremony corresponding to music festivals that had the category "Best Song" and result "Awarded". | {"transformations":[{"column":"Category","transformationType":"condition","operation":"=","value":"'Best Song'"},{"column":"RESULT","transformationType":"condition","operation":"=","value":"'Awarded'"}]} | [{"columns":["ID","Music_Festival","Date_of_ceremony","Category","Volume","Result"],"name":"music_festival","type":"grid"}] |
1a56f0ef-11c3-41d3-8e8b-1f45acfc82af | null | USER | What are the price ranges of five star hotels? | {"transformations":[{"column":"star_rating_code","transformationType":"condition","operation":"=","value":"'5'"}]} | [{"columns":["hotel_id","star_rating_code","pets_allowed_yn","price_range","other_hotel_details"],"name":"Hotels","type":"grid"}] |
4d57c6dd-3d5f-481e-8c42-e33d78c716ab | null | USER | How many books belong to 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"}] |
c22ebc55-e068-425e-a774-5b8aa71701ed | null | USER | What are the total points of gymnasts, ordered by their floor exercise points descending? | {"transformations":[{"column":"Floor_Exercise_Points","transformationType":"sorting","direction":"desc"}]} | [{"columns":["Gymnast_ID","Floor_Exercise_Points","Pommel_Horse_Points","Rings_Points","Vault_Points","Parallel_Bars_Points","Horizontal_Bar_Points","Total_Points"],"name":"gymnast","type":"grid"}] |
0c3ab280-0beb-47cd-ac2d-77668eeda53b | null | USER | What is the detail of the location UK Gallery? | {"transformations":[{"column":"Location_Name","transformationType":"condition","operation":"=","value":"'UK Gallery'"}]} | [{"columns":["Location_ID","Location_Name","Address","Other_Details"],"name":"Locations","type":"grid"}] |
4df6d325-cea9-4593-b4ff-1db241d011db | null | USER | Find the name of the stadium that has the maximum capacity. | {"transformations":[{"column":"capacity","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]} | [{"columns":["ID","name","Capacity","City","Country","Opening_year"],"name":"stadium","type":"grid"}] |
acfaadd5-1388-492a-895a-711671fa284f | null | USER | On which day has it neither been foggy nor rained in the zip code of 94107? | {"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"}] |
07d04886-24dc-4e03-9eda-8c4f92c70eb9 | null | USER | How many different products correspond to each order id? | {"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"}] |
a76333df-5bd7-48c5-ab8f-c4bc337fa722 | null | USER | What is the total number of all football games played by scholarship students? | {"transformations":[{"column":"gamesplayed","transformationType":"aggregations","aggregation":"sum"},{"column":"sportname","transformationType":"condition","operation":"=","value":"'Football'"},{"column":"onscholarship","transformationType":"condition","operation":"=","value":"Y"}]} | [{"columns":["StuID","SportName","HoursPerWeek","GamesPlayed","OnScholarship"],"name":"SportsInfo","type":"grid"}] |
3e4ecfea-b2ce-42ad-ac21-ff14b2eb5bfd | null | USER | Find all the product whose name contains the word "Scanner". | {"transformations":[{"column":"product","transformationType":"condition","operation":"contains","value":"Scanner"}]} | [{"columns":["product_id","product","dimensions","dpi","pages_per_minute_color","max_page_size","interface"],"name":"product","type":"grid"}] |
35ac97b4-819c-4178-95a4-18ccaba6a83f | null | USER | How many students play video games? | {"transformations":[{"column":"StuID","transformationType":"aggregations","aggregation":"count"}]} | [{"columns":["StuID","GameID","Hours_Played"],"name":"Plays_Games","type":"grid"}] |
97393135-a577-472d-aae2-08c2b75dcee7 | null | USER | What is the id, genre, and name of the artist for every English song ordered by ascending rating? | {"transformations":[{"column":"languages","transformationType":"condition","operation":"=","value":"'english'"},{"column":"rating","transformationType":"sorting","direction":"asc"}]} | [{"columns":["song_name","artist_name","country","f_id","genre_is","rating","languages","releasedate","resolution"],"name":"song","type":"grid"}] |
849a6847-4a75-4b55-8cbe-4983c63f8336 | null | USER | Which part has the least chargeable amount? List the part id and amount. | {"transformations":[{"column":"chargeable_amount","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"asc"}]} | [{"columns":["part_id","part_name","chargeable_yn","chargeable_amount","other_part_details"],"name":"Parts","type":"grid"}] |
da05ed6a-20ff-44fa-b4cc-816160aaee84 | null | USER | Find the number of employees of each gender whose salary is lower than 50000. | {"transformations":[{"column":"Fname","transformationType":"aggregations","aggregation":"count"},{"column":"salary","transformationType":"condition","operation":"<","value":50000},{"column":"sex","transformationType":"grouping"}]} | [{"columns":["Fname","Minit","Lname","Ssn","Bdate","Address","Sex","Salary","Super_ssn","Dno"],"name":"employee","type":"grid"}] |
e3d8f126-638f-4a95-abed-18c7b13f2e90 | null | USER | Find the total hours of all projects. | {"transformations":[{"column":"hours","transformationType":"aggregations","aggregation":"sum"}]} | [{"columns":["Code","Name","Hours"],"name":"Projects","type":"grid"}] |
653f13a5-8c61-4213-922b-3726e50d7661 | null | USER | How many sports do we have? | {"transformations":[{"column":"sportname","transformationType":"aggregations","aggregation":"count"}]} | [{"columns":["StuID","SportName","HoursPerWeek","GamesPlayed","OnScholarship"],"name":"SportsInfo","type":"grid"}] |
12b6118b-7e12-4863-86cc-f247b55b6962 | null | USER | Find the full name of the customer with the email "[email protected]". | {"transformations":[{"column":"Email","transformationType":"condition","operation":"=","value":"'[email protected]'"}]} | [{"columns":["CustomerId","FirstName","LastName","Company","Address","City","State","Country","PostalCode","Phone","Fax","Email","SupportRepId"],"name":"Customer","type":"grid"}] |
ee014f70-8a0c-4c83-bfd6-3d4fd684882a | null | USER | Find the average hours of all projects. | {"transformations":[{"column":"hours","transformationType":"aggregations","aggregation":"avg"}]} | [{"columns":["Code","Name","Hours"],"name":"Projects","type":"grid"}] |
a71e72d6-17ae-4638-9c09-df221781cfd1 | null | USER | Show the number of customers for each gender. | {"transformations":[{"column":"customer_id","transformationType":"aggregations","aggregation":"count"},{"column":"gender","transformationType":"grouping"}]} | [{"columns":["customer_id","customer_first_name","customer_middle_initial","customer_last_name","gender","email_address","login_name","login_password","phone_number","town_city","state_county_province","country"],"name":"Customers","type":"grid"}] |
b358fe5b-2bf9-4c6e-9983-b19b4659efe9 | null | USER | What is the name of the person whose age is below 30? | {"transformations":[{"column":"age","transformationType":"condition","operation":"<","value":30}]} | [{"columns":["name","age","city","gender","job"],"name":"Person","type":"grid"}] |
4abf0997-fedb-4d69-aacb-65efe0a5bdff | null | USER | Count the number of male and female artists. | {"transformations":[{"column":"artist_name","transformationType":"aggregations","aggregation":"count"},{"column":"gender","transformationType":"grouping"}]} | [{"columns":["artist_name","country","gender","preferred_genre"],"name":"artist","type":"grid"}] |
34d056b8-fe9d-444e-958d-c5d8c13b697e | null | USER | How many addresses are in the district of California? | {"transformations":[{"column":"address_id","transformationType":"aggregations","aggregation":"count"},{"column":"district","transformationType":"condition","operation":"=","value":"California"}]} | [{"columns":["address_id","address","address2","district","city_id","postal_code","phone","last_update"],"name":"address","type":"grid"}] |
c90dc2f8-622b-4061-ba88-b4db98262922 | null | USER | Show location and name for all stadiums with a capacity between 5000 and 10000. | {"transformations":[{"column":"capacity","transformationType":"condition","operation":">=","value":5000},{"column":"capacity","transformationType":"condition","operation":"<=","value":10000}]} | [{"columns":["Stadium_ID","Location","Name","Capacity","Highest","Lowest","Average"],"name":"stadium","type":"grid"}] |
3cac693c-5bf0-4e14-89ab-2c165674c057 | null | USER | Find the number of left handed winners who participated in the WTA Championships. | {"transformations":[{"column":"winner_name","transformationType":"aggregations","aggregation":"count"},{"column":"tourney_name","transformationType":"condition","operation":"=","value":"WTA Championships"},{"column":"winner_hand","transformationType":"condition","operation":"=","value":"L"}]} | [{"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"}] |
fd2f90ac-1be0-4f72-8c07-82523fb7cc73 | null | USER | What is the largest payment amount? | {"transformations":[{"column":"amount","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]} | [{"columns":["payment_id","customer_id","staff_id","rental_id","amount","payment_date","last_update"],"name":"payment","type":"grid"}] |
62a03570-0aa0-4340-87ae-8f547ee711ec | null | USER | Show the booking status code and the corresponding number of bookings. | {"transformations":[{"column":"apt_booking_id","transformationType":"aggregations","aggregation":"count"},{"column":"booking_status_code","transformationType":"grouping"}]} | [{"columns":["apt_booking_id","apt_id","guest_id","booking_status_code","booking_start_date","booking_end_date"],"name":"Apartment_Bookings","type":"grid"}] |
a8fc6d5f-aaa8-4cb1-aaa7-210f5519b5c3 | null | USER | Show the number of documents. | {"transformations":[{"column":"Document_ID","transformationType":"aggregations","aggregation":"count"}]} | [{"columns":["Document_ID","Document_Type_Code","Project_ID","Document_Date","Document_Name","Document_Description","Other_Details"],"name":"Documents","type":"grid"}] |
e3c18a1c-4824-4dc0-a51e-63e769baa0ba | null | USER | Return the amount of the largest payment. | {"transformations":[{"column":"amount","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]} | [{"columns":["payment_id","customer_id","staff_id","rental_id","amount","payment_date","last_update"],"name":"payment","type":"grid"}] |
58a9bf32-7fc1-45cf-9f18-c1ddb1b8bc56 | null | USER | Identify the product code with the lowest price in each product category. | {"transformations":[{"column":"price","transformationType":"aggregations","aggregation":"min"},{"column":"name","transformationType":"grouping"}]} | [{"columns":["Code","Name","Price","Manufacturer"],"name":"Products","type":"grid"}] |
45cda323-da72-403f-a667-20bca7d45d28 | null | USER | Determine the total capacity for each gender in each dorm. | {"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"}] |
6c68acb7-83a5-4ab7-85bc-80bbca26ee63 | null | USER | How many colleges in total? | {"transformations":[{"column":"cName","transformationType":"aggregations","aggregation":"count"}]} | [{"columns":["cName","state","enr"],"name":"College","type":"grid"}] |
c9cec683-ae77-46a5-a9b3-679db40268fa | null | USER | What is the maximum level of managers in countries that are not "Australia"? | {"transformations":[{"column":"LEVEL","transformationType":"aggregations","aggregation":"max"},{"column":"Country","transformationType":"condition","operation":"!=","value":"'Australia\t'"}]} | [{"columns":["Manager_ID","Name","Country","Working_year_starts","Age","Level"],"name":"manager","type":"grid"}] |
b17bec31-f50f-4ae8-a936-0e6f9b39cad7 | null | USER | How many different FDA approval statuses exist for medicines? | {"transformations":[{"column":"FDA_approved","transformationType":"aggregations","aggregation":"count"}]} | [{"columns":["id","name","Trade_Name","FDA_approved"],"name":"medicine","type":"grid"}] |
18305787-93e0-4df9-8634-7a6e8e759f30 | null | USER | Show the short names of the buildings managed by "Emma". | {"transformations":[{"column":"building_manager","transformationType":"condition","operation":"=","value":"'Emma'"}]} | [{"columns":["building_id","building_short_name","building_full_name","building_description","building_address","building_manager","building_phone"],"name":"Apartment_Buildings","type":"grid"}] |
7b54eeec-607a-48ba-8ecf-69af2286a8f8 | null | USER | Present the various record labels and their respective number of orchestras. | {"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"}] |
61ba8d77-1a5f-4c0e-9956-0cd43b62056e | null | USER | How much salary did the top 3 well-paid players get in 2001? | {"transformations":[{"column":"YEAR","transformationType":"condition","operation":"=","value":2001},{"column":"salary","limit":3,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]} | [{"columns":["year","team_id","league_id","player_id","salary"],"name":"salary","type":"grid"}] |
60cb7252-26c6-48dc-a3ca-70b7d2b0d2fd | 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"}] |
b31f5948-ebf1-4609-9e86-0d5cc18b1568 | null | USER | What are the ids and names of customers with addressed that contain WY and who do not use a credit card for payment? | {"transformations":[{"column":"customer_address","transformationType":"condition","operation":"contains","value":"WY"},{"column":"payment_method_code","transformationType":"condition","operation":"!=","value":"'Credit Card'"}]} | [{"columns":["customer_id","payment_method_code","customer_code","customer_name","customer_address","customer_phone","customer_email"],"name":"Customers","type":"grid"}] |
a3842897-16e5-498d-adda-63e95ebdc648 | null | USER | What are the different schools and their nicknames, ordered by their founding years? | {"transformations":[{"column":"founded","transformationType":"sorting","direction":"asc"}]} | [{"columns":["School_ID","School","Location","Founded","Affiliation","Enrollment","Nickname","Primary_conference"],"name":"university","type":"grid"}] |
7259aead-ea60-403d-8f9d-161276c81033 | null | USER | What are the names of all songs in English? | {"transformations":[{"column":"languages","transformationType":"condition","operation":"=","value":"'english'"}]} | [{"columns":["song_name","artist_name","country","f_id","genre_is","rating","languages","releasedate","resolution"],"name":"song","type":"grid"}] |
5450f08a-b511-40f9-a8bc-f67b21a08908 | null | USER | Give the name of the lowest earning instructor in the Statistics department. | {"transformations":[{"column":"dept_name","transformationType":"condition","operation":"=","value":"Statistics"},{"column":"salary","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"asc"}]} | [{"columns":["ID","name","dept_name","salary"],"name":"instructor","type":"grid"}] |
715e5a40-6d0b-40b6-9b9c-3fa3b3598a0f | null | USER | Check the invoices record and compute the average quantities ordered with the payment method "MasterCard". | {"transformations":[{"column":"Order_Quantity","transformationType":"aggregations","aggregation":"avg"},{"column":"payment_method_code","transformationType":"condition","operation":"=","value":"'MasterCard'"}]} | [{"columns":["Invoice_ID","Order_ID","payment_method_code","Product_ID","Order_Quantity","Other_Item_Details","Order_Item_ID"],"name":"Invoices","type":"grid"}] |
047e6a15-f021-4106-a9f8-528ad4090b23 | null | USER | Determine the average age for each gender. | {"transformations":[{"column":"age","transformationType":"aggregations","aggregation":"avg"},{"column":"gender","transformationType":"grouping"}]} | [{"columns":["name","age","city","gender","job"],"name":"Person","type":"grid"}] |
57061a3d-b882-47f7-81d5-df5fbf91eb1d | null | USER | Find the code of the document type "Paper". | {"transformations":[{"column":"document_type_name","transformationType":"condition","operation":"=","value":"'Paper'"}]} | [{"columns":["Document_Type_Code","Document_Type_Name","Document_Type_Description"],"name":"Ref_Document_Types","type":"grid"}] |
b669b62c-fd6b-40b9-83b7-3293e54e3fb4 | null | USER | How many staff have the first name Ludie? | {"transformations":[{"column":"staff_id","transformationType":"aggregations","aggregation":"count"},{"column":"first_name","transformationType":"condition","operation":"=","value":"'Ludie'"}]} | [{"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"}] |
9effec8a-3bac-47f1-ade6-68fe49e0295c | null | USER | What are the average height and weight across males (sex is M)? | {"transformations":[{"column":"height","transformationType":"aggregations","aggregation":"avg"},{"column":"weight","transformationType":"aggregations","aggregation":"avg"},{"column":"sex","transformationType":"condition","operation":"=","value":"M"}]} | [{"columns":["People_ID","Sex","Name","Date_of_Birth","Height","Weight"],"name":"people","type":"grid"}] |
ac30585a-48ed-43f0-ab6e-dbeba3a36fca | null | USER | What is the total number of gas stations that opened between 2000 and 2005? | {"transformations":[{"column":"Station_ID","transformationType":"aggregations","aggregation":"count"},{"column":"open_year","transformationType":"condition","operation":">=","value":2000},{"column":"open_year","transformationType":"condition","operation":"<=","value":2005}]} | [{"columns":["Station_ID","Open_Year","Location","Manager_Name","Vice_Manager_Name","Representative_Name"],"name":"gas_station","type":"grid"}] |
e2f63894-8fb0-4780-a211-9fcfa86a2b1a | null | USER | What is the average access count of documents? | {"transformations":[{"column":"access_count","transformationType":"aggregations","aggregation":"avg"}]} | [{"columns":["document_code","document_structure_code","document_type_code","access_count","document_name"],"name":"Documents","type":"grid"}] |
39ea5104-e375-4f61-8d8e-9525f94e206b | null | USER | What is the date when the document "Marry CV" was stored? | {"transformations":[{"column":"Document_name","transformationType":"condition","operation":"=","value":"'Marry CV'"}]} | [{"columns":["Document_ID","Date_Stored","Document_Type_Code","Document_Name","Document_Description","Other_Details"],"name":"All_Documents","type":"grid"}] |
64c4eb13-e9cf-47fb-a27a-8c413a334d54 | null | USER | find the rank, company names, market values of the companies in the banking industry order by their sales and profits in billion. | {"transformations":[{"column":"main_industry","transformationType":"condition","operation":"=","value":"Banking"},{"column":"sales_billion","transformationType":"sorting","direction":"asc"},{"column":"profits_billion","transformationType":"sorting","direction":"asc"}]} | [{"columns":["Company_ID","Rank","Company","Headquarters","Main_Industry","Sales_billion","Profits_billion","Assets_billion","Market_Value"],"name":"company","type":"grid"}] |
4bd961e8-1940-485e-8c30-3281bd743ad9 | null | USER | What is the product with the highest height? Give me the catalog entry name. | {"transformations":[{"column":"height","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"}] |
9c1b3171-1094-4736-9b2e-e9bf546764b9 | null | USER | Find the "date became customers" of the customers whose ID is between 10 and 20. | {"transformations":[{"column":"customer_id","transformationType":"condition","operation":">=","value":10},{"column":"customer_id","transformationType":"condition","operation":"<=","value":20}]} | [{"columns":["customer_id","payment_method","customer_name","date_became_customer","other_customer_details"],"name":"Customers","type":"grid"}] |
d01f13dc-db3a-4fc8-8c6e-9a005fa7cb67 | null | USER | What is the total revenue generated by companies founded by a specific founder? | {"transformations":[{"column":"revenue","transformationType":"aggregations","aggregation":"sum"},{"column":"founder","transformationType":"grouping"}]} | [{"columns":["Code","Name","Headquarter","Founder","Revenue"],"name":"Manufacturers","type":"grid"}] |
459297f9-f960-4c52-b2d0-a9e64c348d34 | null | USER | Show all the distinct president votes made on 08/30/2015. | {"transformations":[{"column":"Registration_Date","transformationType":"condition","operation":"=","value":"'08/30/2015'"}]} | [{"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"}] |
a3c92229-055b-4292-8d19-5a7fb1dc17b9 | null | USER | How many products are there? | {"transformations":[{"column":"Product_ID","transformationType":"aggregations","aggregation":"count"}]} | [{"columns":["Product_ID","Product_Type_Code","Product_Name","Product_Price"],"name":"Products","type":"grid"}] |
93158853-7d9b-4046-87ce-27312755030a | null | USER | How many different teams have had eliminated wrestlers? | {"transformations":[{"column":"team","transformationType":"aggregations","aggregation":"count"}]} | [{"columns":["Elimination_ID","Wrestler_ID","Team","Eliminated_By","Elimination_Move","Time"],"name":"Elimination","type":"grid"}] |
01d24749-5723-490f-83e5-eac6f6747bbd | null | USER | Show the minimum amount of transactions whose type code is "PUR" and whose share count is bigger than 50. | {"transformations":[{"column":"amount_of_transaction","transformationType":"aggregations","aggregation":"min"},{"column":"transaction_type_code","transformationType":"condition","operation":"=","value":"'PUR'"},{"column":"share_count","transformationType":"condition","operation":">","value":50}]} | [{"columns":["transaction_id","investor_id","transaction_type_code","date_of_transaction","amount_of_transaction","share_count","other_details"],"name":"Transactions","type":"grid"}] |
772a1697-876a-474d-a44b-70679b73f451 | null | USER | Return the founder of Sony. | {"transformations":[{"column":"name","transformationType":"condition","operation":"=","value":"Sony"}]} | [{"columns":["Code","Name","Headquarter","Founder","Revenue"],"name":"Manufacturers","type":"grid"}] |
2295c976-9db6-4322-a838-7e3f0d41d8d5 | null | USER | Show the dates, places, and names of events in descending order of the attendance. | {"transformations":[{"column":"Event_Attendance","transformationType":"sorting","direction":"desc"}]} | [{"columns":["Event_ID","Date","Venue","Name","Event_Attendance"],"name":"event","type":"grid"}] |
dff4999e-159c-4c77-9ee0-9cabd1e7d289 | null | USER | How many transcripts are listed? | {"transformations":[{"column":"transcript_id","transformationType":"aggregations","aggregation":"count"}]} | [{"columns":["transcript_id","transcript_date","other_details"],"name":"Transcripts","type":"grid"}] |
5ba49766-a59b-4d4a-a2b0-de84e27c0af7 | null | USER | When did the staff member named Janessa Sawayn join 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"}] |
87e7327f-5a41-4a60-99d1-d5c1da3ce7df | null | USER | What is the average age of males with different job titles? | {"transformations":[{"column":"age","transformationType":"aggregations","aggregation":"avg"},{"column":"gender","transformationType":"condition","operation":"=","value":"male"},{"column":"job","transformationType":"grouping"}]} | [{"columns":["name","age","city","gender","job"],"name":"Person","type":"grid"}] |
c7026763-23a0-487f-a550-c2e4b54d7fe4 | null | USER | What is the average price range of five star hotels that allow pets? | {"transformations":[{"column":"price_range","transformationType":"aggregations","aggregation":"avg"},{"column":"star_rating_code","transformationType":"condition","operation":"=","value":"'5'"},{"column":"pets_allowed_yn","transformationType":"condition","operation":"=","value":1}]} | [{"columns":["hotel_id","star_rating_code","pets_allowed_yn","price_range","other_hotel_details"],"name":"Hotels","type":"grid"}] |
08882e93-8fc6-4293-ad4e-3760fbc313b7 | null | USER | What are the names of all instructors with names that include "dar"? | {"transformations":[{"column":"name","transformationType":"condition","operation":"contains","value":"dar"}]} | [{"columns":["ID","name","dept_name","salary"],"name":"instructor","type":"grid"}] |
0fd9d68a-bd93-42e7-9fa4-bea6ddb62cb9 | null | USER | Show the number of card types. | {"transformations":[{"column":"card_type_code","transformationType":"aggregations","aggregation":"count"}]} | [{"columns":["card_id","customer_id","card_type_code","card_number","date_valid_from","date_valid_to","other_card_details"],"name":"Customers_Cards","type":"grid"}] |
92cf95f4-072d-4fe3-a3e3-0c2761c89ced | null | USER | Provide order IDs and the total product quantity for 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"}] |
699d9493-caac-4d1d-ba69-eb153c778703 | null | USER | How many available features are there in total? | {"transformations":[{"column":"feature_id","transformationType":"aggregations","aggregation":"count"}]} | [{"columns":["feature_id","feature_type_code","feature_name","feature_description"],"name":"Other_Available_Features","type":"grid"}] |
9574bc66-4af6-4397-81d8-be916651bc02 | null | USER | Find the full names of employees living in the city of Calgary. | {"transformations":[{"column":"City","transformationType":"condition","operation":"=","value":"'Calgary'"}]} | [{"columns":["EmployeeId","LastName","FirstName","Title","ReportsTo","BirthDate","HireDate","Address","City","State","Country","PostalCode","Phone","Fax","Email"],"name":"Employee","type":"grid"}] |
6e211108-b982-4efa-91cd-00178f5cdcfa | null | USER | Sort the names of products in ascending order of their price. | {"transformations":[{"column":"Product_Price","transformationType":"sorting","direction":"asc"}]} | [{"columns":["Product_ID","Product_Name","Product_Price","Product_Description","Other_Product_Service_Details"],"name":"Products","type":"grid"}] |
2f45ec77-3abb-4ea7-a3c7-70872c8ef5c7 | null | USER | Find the name and description of the role with code "MG". | {"transformations":[{"column":"role_code","transformationType":"condition","operation":"=","value":"'MG'"}]} | [{"columns":["Role_Code","Role_Name","Role_Description"],"name":"Roles","type":"grid"}] |
d311014d-e7e3-4f54-9f78-fee66d8488f1 | null | USER | Show other account details for account with name 338. | {"transformations":[{"column":"account_name","transformationType":"condition","operation":"=","value":"'338'"}]} | [{"columns":["account_id","customer_id","account_name","other_account_details"],"name":"Accounts","type":"grid"}] |
1a502bb3-0bb4-4c50-8603-dd8247a89525 | null | USER | What is the velocity of the pilot named 'Thompson'? | {"transformations":[{"column":"velocity","transformationType":"aggregations","aggregation":"avg"},{"column":"pilot","transformationType":"condition","operation":"=","value":"Thompson"}]} | [{"columns":["id","Vehicle_Flight_number","Date","Pilot","Velocity","Altitude","airport_id","company_id"],"name":"flight","type":"grid"}] |
87eeb7e4-309b-44fc-b121-cd70bbab153c | null | USER | List every album whose title starts with A in alphabetical order. | {"transformations":[{"column":"title","transformationType":"condition","operation":"starts with","value":"A"},{"column":"title","transformationType":"sorting","direction":"asc"}]} | [{"columns":["id","title","artist_id"],"name":"albums","type":"grid"}] |
5f7fcc03-a2c9-468e-a68b-a501fff8cebd | null | USER | What is the phone number and postal code of the address 1031 Daugavpils Parkway? | {"transformations":[{"column":"address","transformationType":"condition","operation":"=","value":"1031 Daugavpils Parkway"}]} | [{"columns":["address_id","address","address2","district","city_id","postal_code","phone","last_update"],"name":"address","type":"grid"}] |
5043fe0a-1023-43fc-bb5c-e7856ec6510e | null | USER | How many students are enrolled in college? | {"transformations":[{"column":"enr","transformationType":"aggregations","aggregation":"sum"}]} | [{"columns":["cName","state","enr"],"name":"College","type":"grid"}] |
06df845a-021d-4c00-840f-73422d7b4bf9 | null | USER | Find the name of physicians whose position title contains the word 'senior'. | {"transformations":[{"column":"POSITION","transformationType":"condition","operation":"contains","value":"senior"}]} | [{"columns":["EmployeeID","Name","Position","SSN"],"name":"Physician","type":"grid"}] |
d907c548-9116-4edf-96e4-f47cfb583650 | null | USER | Count the number of high school students per grade level. | {"transformations":[{"column":"ID","transformationType":"aggregations","aggregation":"count"},{"column":"grade","transformationType":"grouping"}]} | [{"columns":["ID","name","grade"],"name":"Highschooler","type":"grid"}] |
05aa31d8-2c0a-4ffc-a1c6-33564024941a | null | USER | What is the total amount of grants given by each organization? Also list the organization ID. | {"transformations":[{"column":"grant_amount","transformationType":"aggregations","aggregation":"sum"},{"column":"organisation_id","transformationType":"grouping"}]} | [{"columns":["grant_id","organisation_id","grant_amount","grant_start_date","grant_end_date","other_details"],"name":"Grants","type":"grid"}] |
bab0c803-cde3-4077-b0a3-613642a5a41f | null | USER | What is 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"}] |
End of preview. Expand
in Dataset Viewer.
No dataset card yet
- Downloads last month
- 7