id
stringlengths
36
36
parent_id
float64
role
stringclasses
1 value
question
stringlengths
18
215
dsl
stringlengths
87
369
context
stringclasses
452 values
4e6b457d-1b1b-4249-be11-229a0f9c4768
null
USER
What is the first and last name of the youngest student with a GPA above 3, and what is their GPA?
{"transformations":[{"column":"stu_gpa","transformationType":"condition","operation":">","value":3},{"column":"stu_dob","limit":1,"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"}]
d9d8f6be-59c1-44a9-bc05-63ac560b7768
null
USER
What is Kyle's id?
{"transformations":[{"column":"name","transformationType":"condition","operation":"=","value":"'Kyle'"}]}
[{"columns":["ID","name","grade"],"name":"Highschooler","type":"grid"}]
9571ed53-cc01-4f70-98a0-969f73cee9cf
null
USER
List countries and the number of climbers originating from them.
{"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"}]
297f9145-19d5-41f9-8bb2-13f3077c39fa
null
USER
List the maximum weight and type of pet for each type.
{"transformations":[{"column":"weight","transformationType":"aggregations","aggregation":"max"},{"column":"petType","transformationType":"grouping"}]}
[{"columns":["PetID","PetType","pet_age","weight"],"name":"Pets","type":"grid"}]
5950b3ae-859d-4581-92e1-19de7bbdb3e2
null
USER
What is the average weight of cars for each year?
{"transformations":[{"column":"Weight","transformationType":"aggregations","aggregation":"avg"},{"column":"YEAR","transformationType":"grouping"}]}
[{"columns":["Id","MPG","Cylinders","Edispl","Horsepower","Weight","Accelerate","Year"],"name":"cars_data","type":"grid"}]
69053373-f39e-47a3-9ee4-aea6fdf6c01f
null
USER
Display various modes of reaching attractions and the count of attractions accessible through each method.
{"transformations":[{"column":"Tourist_Attraction_ID","transformationType":"aggregations","aggregation":"count"},{"column":"How_to_Get_There","transformationType":"grouping"}]}
[{"columns":["Tourist_Attraction_ID","Attraction_Type_Code","Location_ID","How_to_Get_There","Name","Description","Opening_Hours","Other_Details"],"name":"Tourist_Attractions","type":"grid"}]
dad33433-12a8-48c0-8cdc-ccf58b52b8e3
null
USER
Show order ids and the total quantity in 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"}]
d902567a-d8d6-4ef4-a643-648debafd488
null
USER
In each city, how many IT staff employees are there?
{"transformations":[{"column":"id","transformationType":"aggregations","aggregation":"count"},{"column":"title","transformationType":"condition","operation":"=","value":"IT Staff"},{"column":"city","transformationType":"grouping"}]}
[{"columns":["id","last_name","first_name","title","reports_to","birth_date","hire_date","address","city","state","country","postal_code","phone","fax","email"],"name":"employees","type":"grid"}]
3c27ef7d-2e26-4262-9986-b19dbe5579d6
null
USER
List the distinct parties of representatives and the count of representatives in each party.
{"transformations":[{"column":"Representative_ID","transformationType":"aggregations","aggregation":"count"},{"column":"Party","transformationType":"grouping"}]}
[{"columns":["Representative_ID","Name","State","Party","Lifespan"],"name":"representative","type":"grid"}]
b2f079af-ec9b-470b-810e-32614e637798
null
USER
List the names of all genres in alphabetical oder, together with its ratings.
{"transformations":[{"column":"g_name","transformationType":"sorting","direction":"asc"}]}
[{"columns":["g_name","rating","most_popular_in"],"name":"genre","type":"grid"}]
ae78b16e-7ca9-421d-afcd-5b7e9021d216
null
USER
What is the id of the reviewer whose name includes the word "Mike"?
{"transformations":[{"column":"name","transformationType":"condition","operation":"contains","value":"Mike"}]}
[{"columns":["rID","name"],"name":"Reviewer","type":"grid"}]
24a7ab24-f14a-45e0-85a4-714cd434f5a1
null
USER
Return all the apartment numbers sorted by the room count in ascending order.
{"transformations":[{"column":"room_count","transformationType":"sorting","direction":"asc"}]}
[{"columns":["apt_id","building_id","apt_type_code","apt_number","bathroom_count","bedroom_count","room_count"],"name":"Apartments","type":"grid"}]
14430135-64db-4e08-8ddc-f925948054a8
null
USER
How many rooms whose capacity is less than 50 does the Lamberton building have?
{"transformations":[{"column":"building","transformationType":"aggregations","aggregation":"count"},{"column":"building","transformationType":"condition","operation":"=","value":"Lamberton"},{"column":"capacity","transformationType":"condition","operation":"<","value":50}]}
[{"columns":["building","room_number","capacity"],"name":"classroom","type":"grid"}]
84bd81b9-4fb5-4e23-bd5e-285c95995641
null
USER
Find the name, headquarter and revenue of all manufacturers sorted by their revenue in the descending order.
{"transformations":[{"column":"revenue","transformationType":"sorting","direction":"desc"}]}
[{"columns":["Code","Name","Headquarter","Founder","Revenue"],"name":"Manufacturers","type":"grid"}]
763f0875-f320-475f-b91d-df2ef02c8358
null
USER
What are the category of music festivals with result "Awarded"?
{"transformations":[{"column":"RESULT","transformationType":"condition","operation":"=","value":"'Awarded'"}]}
[{"columns":["ID","Music_Festival","Date_of_ceremony","Category","Volume","Result"],"name":"music_festival","type":"grid"}]
0e12819e-5526-4a97-b94e-2888025aedf9
null
USER
How many members are there?
{"transformations":[{"column":"Member_ID","transformationType":"aggregations","aggregation":"count"}]}
[{"columns":["Member_ID","Name","Country","College_ID"],"name":"member","type":"grid"}]
8e1ec119-2268-40e6-936e-49bef2dd712b
null
USER
List the locations of schools in descending order of founded year.
{"transformations":[{"column":"Founded","transformationType":"sorting","direction":"desc"}]}
[{"columns":["School_ID","School","Location","Enrollment","Founded","Denomination","Boys_or_Girls","Day_or_Boarding","Year_Entered_Competition","School_Colors"],"name":"school","type":"grid"}]
5796bb37-231f-4f10-a1ae-1b9781eb0614
null
USER
What is the average number of points for players in each position?
{"transformations":[{"column":"artist_name","transformationType":"aggregations","aggregation":"count"},{"column":"gender","transformationType":"grouping"}]}
[{"columns":["artist_name","country","gender","preferred_genre"],"name":"artist","type":"grid"}]
78e95a69-c668-4f76-b89f-296fd397e570
null
USER
List all airline names and their abbreviations in "USA".
{"transformations":[{"column":"Country","transformationType":"condition","operation":"=","value":"'USA'"}]}
[{"columns":["uid","Airline","Abbreviation","Country"],"name":"airlines","type":"grid"}]
8c0b1615-338e-4d5b-a659-818ecb18322c
null
USER
Find the GDP of the city with the largest regional population.
{"transformations":[{"column":"Regional_Population","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]}
[{"columns":["City_ID","City","Hanzi","Hanyu_Pinyin","Regional_Population","GDP"],"name":"city","type":"grid"}]
e1ecd5ac-42f0-47f0-adad-3a26207fd483
null
USER
Determine the number of trains that originate from each location.
{"transformations":[{"column":"id","transformationType":"aggregations","aggregation":"count"},{"column":"origin","transformationType":"grouping"}]}
[{"columns":["id","train_number","name","origin","destination","time","interval"],"name":"train","type":"grid"}]
57b588bc-fe02-45f3-a1d6-f11527c63558
null
USER
Find the average base price of different bed types for each bed type.
{"transformations":[{"column":"weight","transformationType":"aggregations","aggregation":"avg"},{"column":"pettype","transformationType":"grouping"}]}
[{"columns":["PetID","PetType","pet_age","weight"],"name":"Pets","type":"grid"}]
4980eef4-eb94-4c45-8bb2-2f3a14de51a0
null
USER
Return the names of shops, ordered by year of opening ascending.
{"transformations":[{"column":"Open_Year","transformationType":"sorting","direction":"asc"}]}
[{"columns":["Shop_ID","Shop_Name","Location","Open_Date","Open_Year"],"name":"shop","type":"grid"}]
dd54c7d0-29e6-428d-b087-9342afe0278d
null
USER
Calculate the average age of male and female students.
{"transformations":[{"column":"age","transformationType":"aggregations","aggregation":"avg"},{"column":"sex","transformationType":"grouping"}]}
[{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"Student","type":"grid"}]
94a8767e-1922-44d0-b6a0-e23a6853e1e2
null
USER
Show the id of the employee named Ebba.
{"transformations":[{"column":"employee_name","transformationType":"condition","operation":"=","value":"'Ebba'"}]}
[{"columns":["Employee_ID","Role_Code","Employee_Name","Gender_MFU","Date_of_Birth","Other_Details"],"name":"Employees","type":"grid"}]
100bd191-4c18-46dc-b78e-f071c772fb25
null
USER
What are the names of all wines produced in 2008?
{"transformations":[{"column":"YEAR","transformationType":"condition","operation":"=","value":"'2008'"}]}
[{"columns":["No","Grape","Winery","Appelation","State","Name","Year","Price","Score","Cases","Drink"],"name":"wine","type":"grid"}]
2f4e367e-2de5-438e-abe9-da3fe0729f52
null
USER
What is the location of the festival with the largest number of audience?
{"transformations":[{"column":"Num_of_Audience","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]}
[{"columns":["Festival_ID","Festival_Name","Chair_Name","Location","Year","Num_of_Audience"],"name":"festival_detail","type":"grid"}]
79d5dbef-6867-4438-8a95-88bc44b5c95b
null
USER
List the names of editors who are older than 25.
{"transformations":[{"column":"Age","transformationType":"condition","operation":">","value":25}]}
[{"columns":["Editor_ID","Name","Age"],"name":"editor","type":"grid"}]
788f5b0a-eda2-47a9-ba15-d324369f62ec
null
USER
What are the ids for all sporty students who are on scholarship?
{"transformations":[{"column":"onscholarship","transformationType":"condition","operation":"=","value":"Y"}]}
[{"columns":["StuID","SportName","HoursPerWeek","GamesPlayed","OnScholarship"],"name":"SportsInfo","type":"grid"}]
4bf909ee-66d4-48cb-9418-bf6de855494e
null
USER
What are the average prices of wines for different years?
{"transformations":[{"column":"Price","transformationType":"aggregations","aggregation":"avg"},{"column":"YEAR","transformationType":"grouping"}]}
[{"columns":["No","Grape","Winery","Appelation","State","Name","Year","Price","Score","Cases","Drink"],"name":"wine","type":"grid"}]
86ba76df-77fa-4634-8709-33e9b100fdf3
null
USER
Find the names of all instructors in Comp. Sci. department with salary > 80000.
{"transformations":[{"column":"dept_name","transformationType":"condition","operation":"=","value":"Comp. Sci."},{"column":"salary","transformationType":"condition","operation":">","value":80000}]}
[{"columns":["ID","name","dept_name","salary"],"name":"instructor","type":"grid"}]
1415ac17-e041-4f5d-8673-1dcbd712c0ce
null
USER
What is minimum age for different job title?
{"transformations":[{"column":"age","transformationType":"aggregations","aggregation":"min"},{"column":"job","transformationType":"grouping"}]}
[{"columns":["name","age","city","gender","job"],"name":"Person","type":"grid"}]
7a2cf084-778d-48ec-938d-63b214130402
null
USER
Find the number of tweets in record.
{"transformations":[{"column":"id","transformationType":"aggregations","aggregation":"count"}]}
[{"columns":["id","uid","text","createdate"],"name":"tweets","type":"grid"}]
e4fa912b-5af9-425a-94b1-ea7beb82792d
null
USER
Count the number of tracks.
{"transformations":[{"column":"Track_ID","transformationType":"aggregations","aggregation":"count"}]}
[{"columns":["Track_ID","Name","Location","Seating","Year_Opened"],"name":"track","type":"grid"}]
f0b3c6c8-b4df-493c-b7cd-3ef9fe1c8cd1
null
USER
Count the number of documents with 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"}]
24542a43-f8d1-44b3-b27f-266666af45fb
null
USER
What is the description of role code ED?
{"transformations":[{"column":"role_code","transformationType":"condition","operation":"=","value":"'ED'"}]}
[{"columns":["role_code","role_description"],"name":"Roles","type":"grid"}]
3f5c4527-02da-426e-9975-7cd19f48323c
null
USER
Count the number of different countries that climbers are from.
{"transformations":[{"column":"Country","transformationType":"aggregations","aggregation":"count"}]}
[{"columns":["Climber_ID","Name","Country","Time","Points","Mountain_ID"],"name":"climber","type":"grid"}]
54cc06fd-dd7b-42b5-894f-d9d7e8c0d274
null
USER
List all program origins in the alphabetical order.
{"transformations":[{"column":"origin","transformationType":"sorting","direction":"asc"}]}
[{"columns":["Program_ID","Name","Origin","Launch","Owner"],"name":"program","type":"grid"}]
dd0c9671-2dcc-4d68-a6c2-891a5b95135d
null
USER
Display the year and the average number of attendance at home games for each year.
{"transformations":[{"column":"attendance","transformationType":"aggregations","aggregation":"avg"},{"column":"YEAR","transformationType":"grouping"}]}
[{"columns":["year","league_id","team_id","park_id","span_first","span_last","games","openings","attendance"],"name":"home_game","type":"grid"}]
d3e613aa-6fe7-4b6a-b8db-5b6ea099b161
null
USER
Count the players for every hand preference.
{"transformations":[{"column":"player_id","transformationType":"aggregations","aggregation":"count"},{"column":"hand","transformationType":"grouping"}]}
[{"columns":["player_id","first_name","last_name","hand","birth_date","country_code"],"name":"players","type":"grid"}]
187e0b04-f298-40e6-8198-7036289f587a
null
USER
Show the number of accounts.
{"transformations":[{"column":"account_id","transformationType":"aggregations","aggregation":"count"}]}
[{"columns":["account_id","customer_id","date_account_opened","account_name","other_account_details"],"name":"Accounts","type":"grid"}]
1a0784c2-3e0f-4102-96e4-27c411283566
null
USER
In which distinct years was the governor "Eliot Spitzer"?
{"transformations":[{"column":"Governor","transformationType":"condition","operation":"=","value":"'Eliot Spitzer'"}]}
[{"columns":["Party_ID","Year","Party","Governor","Lieutenant_Governor","Comptroller","Attorney_General","US_Senate"],"name":"party","type":"grid"}]
3e1bf29c-f74e-4b42-8bc1-f7c2c143a1b7
null
USER
What are the names, address roads, and cities of the branches ordered by opening year?
{"transformations":[{"column":"open_year","transformationType":"sorting","direction":"asc"}]}
[{"columns":["Branch_ID","Name","Open_year","Address_road","City","membership_amount"],"name":"branch","type":"grid"}]
1da71558-c7d2-4499-ad63-be3446d0658a
null
USER
Calculate the number of web accelerators used for each operating system.
{"transformations":[{"column":"name","transformationType":"aggregations","aggregation":"count"},{"column":"age","transformationType":"condition","operation":"<","value":40},{"column":"gender","transformationType":"grouping"}]}
[{"columns":["name","age","city","gender","job"],"name":"Person","type":"grid"}]
798ffc8c-76c1-4e70-af7c-2654a6c36347
null
USER
What are the case burdens of counties, ordered descending by population?
{"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"}]
ff1a8da6-25c6-47d5-a9a1-b30248f22068
null
USER
Sort the names of all counties in ascending order of population.
{"transformations":[{"column":"Population","transformationType":"sorting","direction":"asc"}]}
[{"columns":["County_Id","County_name","Population","Zip_code"],"name":"county","type":"grid"}]
0035b240-c835-4f69-ab14-8c237d071d1d
null
USER
What is the average balance in checking accounts?
{"transformations":[{"column":"balance","transformationType":"aggregations","aggregation":"avg"}]}
[{"columns":["custid","balance"],"name":"CHECKING","type":"grid"}]
25b67f0e-ae71-4db3-9835-20dc462c4c8c
null
USER
What are the names and damage in millions for storms, ordered by their max speeds descending?
{"transformations":[{"column":"max_speed","transformationType":"sorting","direction":"desc"}]}
[{"columns":["Storm_ID","Name","Dates_active","Max_speed","Damage_millions_USD","Number_Deaths"],"name":"storm","type":"grid"}]
d1758813-e0ff-4fcf-9e6c-9bddd436b3c8
null
USER
Give the name of the highest paid instructor.
{"transformations":[{"column":"salary","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]}
[{"columns":["ID","name","dept_name","salary"],"name":"instructor","type":"grid"}]
31d8540a-8654-408d-bc78-5ce5605b06e6
null
USER
List the names of roller coasters by ascending order of length.
{"transformations":[{"column":"LENGTH","transformationType":"sorting","direction":"asc"}]}
[{"columns":["Roller_Coaster_ID","Name","Park","Country_ID","Length","Height","Speed","Opened","Status"],"name":"roller_coaster","type":"grid"}]
3fda9948-8b13-453f-883b-8e05f64f7d4c
null
USER
For each grade 0 classroom, report the student count.
{"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"}]
bbd943bd-a38c-4dd1-9184-5e95f7ef92f2
null
USER
What are the names, headquarters and founders of the company with the highest revenue?
{"transformations":[{"column":"revenue","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]}
[{"columns":["Code","Name","Headquarter","Founder","Revenue"],"name":"Manufacturers","type":"grid"}]
1eed5c99-f062-4370-8358-4b4d2f914b3f
null
USER
Find the forename and surname of drivers whose nationality is German?
{"transformations":[{"column":"nationality","transformationType":"condition","operation":"=","value":"'German'"}]}
[{"columns":["driverId","driverRef","number","code","forename","surname","dob","nationality","url"],"name":"drivers","type":"grid"}]
36e705fb-ced3-4eda-af8f-e7dd5c91f96a
null
USER
List every album ordered by album title in ascending order.
{"transformations":[{"column":"title","transformationType":"sorting","direction":"asc"}]}
[{"columns":["id","title","artist_id"],"name":"albums","type":"grid"}]
cd9de74d-6ee4-4e77-85fb-ad0c15b5a11f
null
USER
What is the average expected life expectancy for countries in the region of 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"}]
177dd1d2-bae3-4a5d-86ae-d9327c8b1270
null
USER
What are the names and year of construction for the mills of 'Grondzeiler' type?
{"transformations":[{"column":"TYPE","transformationType":"condition","operation":"=","value":"Grondzeiler"}]}
[{"columns":["architect_id","id","location","name","type","built_year","notes"],"name":"mill","type":"grid"}]
33dff00d-0c4d-45c3-bb92-68996f5a14c0
null
USER
What are the different product names, and what is the average product price for each of them?
{"transformations":[{"column":"Product_Price","transformationType":"aggregations","aggregation":"avg"},{"column":"Product_Name","transformationType":"grouping"}]}
[{"columns":["Product_ID","Product_Name","Product_Price","Product_Description","Other_Product_Service_Details"],"name":"Products","type":"grid"}]
7f0fdaac-1f3d-4ef4-9b08-43dde8ca7a18
null
USER
Find the names of all artists that have "a" in their names.
{"transformations":[{"column":"Name","transformationType":"condition","operation":"contains","value":"a"}]}
[{"columns":["ArtistId","Name"],"name":"Artist","type":"grid"}]
c05a428d-f555-42cb-a3b8-347675146db8
null
USER
How many games in 1885 postseason resulted in ties (that is, the value of "ties" is '1')?
{"transformations":[{"column":"year","transformationType":"aggregations","aggregation":"count"},{"column":"YEAR","transformationType":"condition","operation":"=","value":1885},{"column":"ties","transformationType":"condition","operation":"=","value":1}]}
[{"columns":["year","round","team_id_winner","league_id_winner","team_id_loser","league_id_loser","wins","losses","ties"],"name":"postseason","type":"grid"}]
2b939562-a5d7-44f7-a260-236623c499ef
null
USER
What are the types of competition and number of competitions for that type?
{"transformations":[{"column":"Competition_ID","transformationType":"aggregations","aggregation":"count"},{"column":"Competition_type","transformationType":"grouping"}]}
[{"columns":["Competition_ID","Year","Competition_type","Country"],"name":"competition","type":"grid"}]
ac3aa255-c5bc-459c-8660-acd92d415452
null
USER
Which catalog contents have a product stock number that starts from "2"? Show the catalog entry names.
{"transformations":[{"column":"product_stock_number","transformationType":"condition","operation":"starts with","value":"2"}]}
[{"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"}]
43d5b47e-99c7-4994-a09b-e05169193b36
null
USER
Show the institution type with an institution founded after 1990 and an institution with at least 1000 enrollment.
{"transformations":[{"column":"founded","transformationType":"condition","operation":">","value":1990},{"column":"enrollment","transformationType":"condition","operation":">=","value":1000}]}
[{"columns":["Institution_id","Institution","Location","Founded","Type","Enrollment","Team","Primary_Conference","building_id"],"name":"Institution","type":"grid"}]
fea16f41-8588-490f-9f03-3230bd3f83b4
null
USER
Find the number of times ROY SWEAZY has reserved a room.
{"transformations":[{"column":"Code","transformationType":"aggregations","aggregation":"count"},{"column":"FirstName","transformationType":"condition","operation":"=","value":"'ROY'"},{"column":"LastName","transformationType":"condition","operation":"=","value":"'SWEAZY'"}]}
[{"columns":["Code","Room","CheckIn","CheckOut","Rate","LastName","FirstName","Adults","Kids"],"name":"Reservations","type":"grid"}]
f175718c-0e5a-4272-981f-a72569273cd3
null
USER
Show all school names in alphabetical order.
{"transformations":[{"column":"school_name","transformationType":"sorting","direction":"asc"}]}
[{"columns":["School_id","School_name","Location","Mascot","Enrollment","IHSAA_Class","IHSAA_Football_Class","County"],"name":"School","type":"grid"}]
091b2038-1134-4e53-9bfc-b4069f2f671f
null
USER
For each constructor ID, count the associated races.
{"transformations":[{"column":"constructorStandingsId","transformationType":"aggregations","aggregation":"count"},{"column":"constructorid","transformationType":"grouping"}]}
[{"columns":["constructorStandingsId","raceId","constructorId","points","position","positionText","wins"],"name":"constructorStandings","type":"grid"}]
91c81377-da3d-49e7-992e-d2dc9a4bdaec
null
USER
What is the average transcript date?
{"transformations":[{"column":"transcript_date","transformationType":"aggregations","aggregation":"avg"}]}
[{"columns":["transcript_id","transcript_date","other_details"],"name":"Transcripts","type":"grid"}]
d4188b17-07a6-4925-964b-78d0fdb10a12
null
USER
Find names and ids of all documents with document type code BK.
{"transformations":[{"column":"document_type_code","transformationType":"condition","operation":"=","value":"'BK'"}]}
[{"columns":["Document_ID","Document_Type_Code","Project_ID","Document_Date","Document_Name","Document_Description","Other_Details"],"name":"Documents","type":"grid"}]
cd3ce72d-8dae-46ec-9fc8-69cb5b9aae5c
null
USER
What are the total number of the audiences who visited any of the festivals?
{"transformations":[{"column":"Num_of_Audience","transformationType":"aggregations","aggregation":"sum"}]}
[{"columns":["Festival_ID","Festival_Name","Chair_Name","Location","Year","Num_of_Audience"],"name":"festival_detail","type":"grid"}]
4ca81c4c-ac6e-47e7-bd1e-4fb88bc5884a
null
USER
What is the average number of people injured by all perpetrators?
{"transformations":[{"column":"Injured","transformationType":"aggregations","aggregation":"avg"}]}
[{"columns":["Perpetrator_ID","People_ID","Date","Year","Location","Country","Killed","Injured"],"name":"perpetrator","type":"grid"}]
8fda0ace-4296-42ec-9cce-addbbf932b67
null
USER
What is the average age for all people in the table?
{"transformations":[{"column":"age","transformationType":"aggregations","aggregation":"avg"}]}
[{"columns":["name","age","city","gender","job"],"name":"Person","type":"grid"}]
290c0737-fcdb-498c-892e-6c24e6259dc9
null
USER
Show the detail of vehicle with id 1.
{"transformations":[{"column":"vehicle_id","transformationType":"condition","operation":"=","value":1}]}
[{"columns":["vehicle_id","vehicle_details"],"name":"Vehicles","type":"grid"}]
420c72e2-0a31-48ff-ad12-e4664fe14077
null
USER
How many TV Channel using language English?
{"transformations":[{"column":"id","transformationType":"aggregations","aggregation":"count"},{"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"}]
c16eacc4-04a2-4aed-9834-8c2868dc2eaf
null
USER
Find the name and account balance of the customer whose name includes the letter ‘a’.
{"transformations":[{"column":"cust_name","transformationType":"condition","operation":"contains","value":"a"}]}
[{"columns":["cust_ID","cust_name","acc_type","acc_bal","no_of_loans","credit_score","branch_ID","state"],"name":"customer","type":"grid"}]
585771e0-7d25-41cf-b110-61ff93a03493
null
USER
How many stores are there?
{"transformations":[{"column":"store_id","transformationType":"aggregations","aggregation":"count"}]}
[{"columns":["store_id","manager_staff_id","address_id","last_update"],"name":"store","type":"grid"}]
6f581126-28f4-4dfe-81ae-7c612340ae78
null
USER
Find products with max page size as "A4" and pages per minute color smaller than 5.
{"transformations":[{"column":"max_page_size","transformationType":"condition","operation":"=","value":"'A4'"},{"column":"pages_per_minute_color","transformationType":"condition","operation":"<","value":5}]}
[{"columns":["product_id","product","dimensions","dpi","pages_per_minute_color","max_page_size","interface"],"name":"product","type":"grid"}]
b214ca65-48c7-40f5-a751-16077215578d
null
USER
How many allergy entries are there?
{"transformations":[{"column":"allergy","transformationType":"aggregations","aggregation":"count"}]}
[{"columns":["Allergy","AllergyType"],"name":"Allergy_Type","type":"grid"}]
5cbf0631-da1b-424a-ac67-04347ff4e540
null
USER
What are the titles of the cartoons sorted alphabetically?
{"transformations":[{"column":"title","transformationType":"sorting","direction":"asc"}]}
[{"columns":["id","Title","Directed_by","Written_by","Original_air_date","Production_code","Channel"],"name":"Cartoon","type":"grid"}]
064fb4f9-5896-4376-9bb2-26a4ce5b7d30
null
USER
What are the names of all departments in alphabetical order?
{"transformations":[{"column":"dept_name","transformationType":"sorting","direction":"asc"}]}
[{"columns":["DEPT_CODE","DEPT_NAME","SCHOOL_CODE","EMP_NUM","DEPT_ADDRESS","DEPT_EXTENSION"],"name":"DEPARTMENT","type":"grid"}]
ea25e455-5a22-4fc6-9eae-5fb27e8366ce
null
USER
What are the ids of all reviewers who have not given 4 stars at least once?
{"transformations":[{"column":"stars","transformationType":"condition","operation":"!=","value":4}]}
[{"columns":["rID","mID","stars","ratingDate"],"name":"Rating","type":"grid"}]
e52ea33a-c1a7-4c92-81cf-996174badf3d
null
USER
What is the name of school that has the smallest enrollment in each state?
{"transformations":[{"column":"enr","transformationType":"aggregations","aggregation":"min"},{"column":"state","transformationType":"grouping"}]}
[{"columns":["cName","state","enr"],"name":"College","type":"grid"}]
e840fc30-a908-4677-8ccf-90fafbf7d360
null
USER
How many constructors are there for each nationality?
{"transformations":[{"column":"constructorId","transformationType":"aggregations","aggregation":"count"},{"column":"nationality","transformationType":"grouping"}]}
[{"columns":["constructorId","constructorRef","name","nationality","url"],"name":"constructors","type":"grid"}]
bc1840fd-10d8-41bd-963e-2a37b14f00bb
null
USER
What is employee Nancy Edwards's phone number?
{"transformations":[{"column":"first_name","transformationType":"condition","operation":"=","value":"'Nancy'"},{"column":"last_name","transformationType":"condition","operation":"=","value":"'Edwards'"}]}
[{"columns":["id","last_name","first_name","title","reports_to","birth_date","hire_date","address","city","state","country","postal_code","phone","fax","email"],"name":"employees","type":"grid"}]
c6c320e8-218e-4b49-8068-ca15259f9b28
null
USER
How many distinct complaint type codes are there in the database?
{"transformations":[{"column":"complaint_type_code","transformationType":"aggregations","aggregation":"count"}]}
[{"columns":["complaint_id","product_id","customer_id","complaint_outcome_code","complaint_status_code","complaint_type_code","date_complaint_raised","date_complaint_closed","staff_id"],"name":"Complaints","type":"grid"}]
a8ca3373-98aa-4004-a7bc-c286722f3df1
null
USER
Return the titles of any movies with an R rating.
{"transformations":[{"column":"rating","transformationType":"condition","operation":"=","value":"R"}]}
[{"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"}]
71971221-9ab4-4b97-b129-f71b9d70ce25
null
USER
What are the name of pilots aged 25 or older?
{"transformations":[{"column":"Age","transformationType":"condition","operation":">=","value":25}]}
[{"columns":["Pilot_Id","Name","Age"],"name":"pilot","type":"grid"}]
ba3b86fd-c1ad-49e6-8b6f-124c6a447fc4
null
USER
What is the name of the county with the greatest population?
{"transformations":[{"column":"Population","limit":1,"transformationType":"topFilter","aggregation":"avg","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"}]
f4aa3012-2113-484c-a96a-187eaa53cf2a
null
USER
Find the name of the product that has the smallest capacity.
{"transformations":[{"column":"capacity","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"asc"}]}
[{"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"}]
91cbb070-8d41-47a6-a8b3-c77de4445467
null
USER
Which owners live in the state whose name contains the substring 'North'? List his first name, last name and email.
{"transformations":[{"column":"state","transformationType":"condition","operation":"contains","value":"North"}]}
[{"columns":["owner_id","first_name","last_name","street","city","state","zip_code","email_address","home_phone","cell_number"],"name":"Owners","type":"grid"}]
c84209cb-79cb-48aa-b4f0-3605b56654ba
null
USER
For each constructor id, how many races are there?
{"transformations":[{"column":"constructorStandingsId","transformationType":"aggregations","aggregation":"count"},{"column":"constructorid","transformationType":"grouping"}]}
[{"columns":["constructorStandingsId","raceId","constructorId","points","position","positionText","wins"],"name":"constructorStandings","type":"grid"}]
05a38fa4-6bc6-4ef4-a728-6467b4dab40a
null
USER
What are the name and the nationality of the host of the highest age?
{"transformations":[{"column":"Age","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]}
[{"columns":["Host_ID","Name","Nationality","Age"],"name":"host","type":"grid"}]
2eab2ec1-c273-4038-8923-a58a43350117
null
USER
What are the different template type codes, and how many templates correspond to each?
{"transformations":[{"column":"Template_ID","transformationType":"aggregations","aggregation":"count"},{"column":"template_type_code","transformationType":"grouping"}]}
[{"columns":["Template_ID","Version_Number","Template_Type_Code","Date_Effective_From","Date_Effective_To","Template_Details"],"name":"Templates","type":"grid"}]
cc182ea6-7603-4dc2-bfab-80599705cddd
null
USER
What are the names of the dorm with the largest capacity?
{"transformations":[{"column":"student_capacity","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]}
[{"columns":["dormid","dorm_name","student_capacity","gender"],"name":"Dorm","type":"grid"}]
262f17db-27e3-43b8-9674-f7a77f24ff15
null
USER
What is the average ticket sales gross in dollars of films?
{"transformations":[{"column":"Gross_in_dollar","transformationType":"aggregations","aggregation":"avg"}]}
[{"columns":["Film_ID","Title","Studio","Director","Gross_in_dollar"],"name":"film","type":"grid"}]
f674ca45-6552-4097-9dcf-8753aec4f914
null
USER
What is the average age for each occupation?
{"transformations":[{"column":"age","transformationType":"aggregations","aggregation":"avg"},{"column":"job","transformationType":"grouping"}]}
[{"columns":["name","age","city","gender","job"],"name":"Person","type":"grid"}]
c6b5aed8-9527-49a6-92b4-83ead65a6690
null
USER
Which school has the smallest enrollment size per state and what is its name?
{"transformations":[{"column":"enr","transformationType":"aggregations","aggregation":"min"},{"column":"state","transformationType":"grouping"}]}
[{"columns":["cName","state","enr"],"name":"College","type":"grid"}]
a54e5018-c69a-4a8b-bc02-48d86c2c496f
null
USER
What is the average song rating for each language?
{"transformations":[{"column":"County_ID","transformationType":"aggregations","aggregation":"count"},{"column":"Police_force","transformationType":"grouping"}]}
[{"columns":["County_ID","Name","Population","Police_officers","Residents_per_officer","Case_burden","Crime_rate","Police_force","Location"],"name":"county_public_safety","type":"grid"}]
71c7a1c7-b199-4710-8424-dd1a98cb44ff
null
USER
Find the highest rank of all reviews.
{"transformations":[{"column":"rank","transformationType":"aggregations","aggregation":"min"}]}
[{"columns":["a_id","u_id","i_id","rating","rank"],"name":"review","type":"grid"}]
42268138-3596-4cb6-bfd5-ef092cd60e1b
null
USER
What is the description of document status code 'working'?
{"transformations":[{"column":"document_status_code","transformationType":"condition","operation":"=","value":"'working'"}]}
[{"columns":["document_status_code","document_status_description"],"name":"Ref_Document_Status","type":"grid"}]
5ccb41d0-c3ee-435f-93b9-aab9ede39be0
null
USER
List the names of members in ascending alphabetical order.
{"transformations":[{"column":"Name","transformationType":"sorting","direction":"asc"}]}
[{"columns":["Member_ID","Name","Country","College_ID"],"name":"member","type":"grid"}]
ab152dd9-6356-490d-bc6f-40a06f1be8c0
null
USER
What is the id of the student who most recently registered course 301?
{"transformations":[{"column":"course_id","transformationType":"condition","operation":"=","value":301},{"column":"date_of_attendance","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]}
[{"columns":["student_id","course_id","date_of_attendance"],"name":"Student_Course_Attendance","type":"grid"}]