id
stringlengths 36
36
| parent_id
float64 | role
stringclasses 1
value | question
stringlengths 18
215
| dsl
stringlengths 87
369
| context
stringclasses 452
values |
---|---|---|---|---|---|
7160fec6-df1f-4c6b-9805-08ce20b9821e | null | USER | Identify the highest revenue company names and their revenues in each city. | {"transformations":[{"column":"revenue","transformationType":"aggregations","aggregation":"max"},{"column":"Headquarter","transformationType":"grouping"}]} | [{"columns":["Code","Name","Headquarter","Founder","Revenue"],"name":"Manufacturers","type":"grid"}] |
ce108366-5353-4b3e-ab12-86c16e9e748b | null | USER | What are the total points for all gymnasts, ordered by total points descending? | {"transformations":[{"column":"Total_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"}] |
9f431527-0222-4f78-aa28-2a9e767d0723 | null | USER | List the names and emails of customers who payed by Visa card. | {"transformations":[{"column":"payment_method","transformationType":"condition","operation":"=","value":"Visa"}]} | [{"columns":["customer_id","payment_method","customer_name","customer_phone","customer_email","date_became_customer"],"name":"Customers","type":"grid"}] |
f242c4f1-3b9d-4912-b4fe-04cc49283924 | null | USER | What is the average rating and resolution of all bangla songs? | {"transformations":[{"column":"rating","transformationType":"aggregations","aggregation":"avg"},{"column":"resolution","transformationType":"aggregations","aggregation":"avg"},{"column":"languages","transformationType":"condition","operation":"=","value":"'bangla'"}]} | [{"columns":["song_name","artist_name","country","f_id","genre_is","rating","languages","releasedate","resolution"],"name":"song","type":"grid"}] |
5246a970-9722-42dd-a721-1260aaa79c72 | null | USER | Find the number of rooms with price higher than 120 for different decor. | {"transformations":[{"column":"RoomId","transformationType":"aggregations","aggregation":"count"},{"column":"basePrice","transformationType":"condition","operation":">","value":120},{"column":"decor","transformationType":"grouping"}]} | [{"columns":["RoomId","roomName","beds","bedType","maxOccupancy","basePrice","decor"],"name":"Rooms","type":"grid"}] |
e31b1a9e-0c73-4104-a2be-bd3dce957c42 | null | USER | What is the average transaction amount for different investors? | {"transformations":[{"column":"amount_of_transaction","transformationType":"aggregations","aggregation":"avg"},{"column":"investor_id","transformationType":"grouping"}]} | [{"columns":["transaction_id","investor_id","transaction_type_code","date_of_transaction","amount_of_transaction","share_count","other_details"],"name":"Transactions","type":"grid"}] |
2a12ea29-6742-4db9-adf0-d9ca10ba9a8b | null | USER | Count the number of farms. | {"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"}] |
1055d402-7177-483b-a8c9-2b515d694f10 | null | USER | For each zip code, how many times has the maximum wind speed reached 25 mph? | {"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"}] |
43219159-d4b0-419c-bfe4-d7184d6f0c22 | null | USER | Who is the director of movie Avatar? | {"transformations":[{"column":"title","transformationType":"condition","operation":"=","value":"Avatar"}]} | [{"columns":["mID","title","year","director"],"name":"Movie","type":"grid"}] |
b71b8d6f-96b8-4689-98c7-313ce76f5367 | null | USER | how many people are there whose weight is higher than 85 for each gender? | {"transformations":[{"column":"People_ID","transformationType":"aggregations","aggregation":"count"},{"column":"weight","transformationType":"condition","operation":">","value":85},{"column":"sex","transformationType":"grouping"}]} | [{"columns":["People_ID","Sex","Name","Date_of_Birth","Height","Weight"],"name":"people","type":"grid"}] |
8c7e74f9-6841-4e4b-89d8-03d3edc526e6 | null | USER | Find the name of the most expensive hardware product. | {"transformations":[{"column":"product_type_code","transformationType":"condition","operation":"=","value":"Hardware"},{"column":"product_price","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]} | [{"columns":["product_id","product_type_code","product_name","product_price"],"name":"Products","type":"grid"}] |
fea05f03-bc1f-4ecb-afb3-16d03d6feb96 | null | USER | What is the id for the employee called 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"}] |
e0c1b425-e80e-4f05-9caf-b3e990ea8a07 | null | USER | Find job id and date of hire for those employees who was hired between November 5th, 2007 and July 5th, 2009. | {"transformations":[{"column":"hire_date","transformationType":"condition","operation":">=","value":"2007-11-05"},{"column":"hire_date","transformationType":"condition","operation":"<=","value":"2009-07-05"}]} | [{"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"}] |
ea8ffaf1-e672-4a87-b781-64cf34809c87 | null | USER | Display distinct product type codes and the count of products for each code. | {"transformations":[{"column":"Product_ID","transformationType":"aggregations","aggregation":"count"},{"column":"Product_Type_Code","transformationType":"grouping"}]} | [{"columns":["Product_ID","Product_Type_Code","Product_Name","Product_Price"],"name":"Products","type":"grid"}] |
5282731a-0bae-40a0-be91-ac2fba3dcd7a | null | USER | How many statements do we have? | {"transformations":[{"column":"Statement_ID","transformationType":"aggregations","aggregation":"count"}]} | [{"columns":["Statement_ID","Statement_Details"],"name":"Statements","type":"grid"}] |
a008c3d5-5cdd-43b6-84b1-296512e8cb24 | null | USER | Find the types and details for all premises and order by the premise type. | {"transformations":[{"column":"premises_type","transformationType":"sorting","direction":"asc"}]} | [{"columns":["premise_id","premises_type","premise_details"],"name":"Premises","type":"grid"}] |
600ba394-522d-4072-a928-9fca6799900f | null | USER | Sort the first names of all the authors in alphabetical order. | {"transformations":[{"column":"fname","transformationType":"sorting","direction":"asc"}]} | [{"columns":["authID","lname","fname"],"name":"Authors","type":"grid"}] |
a467ae24-094d-4472-89be-d5a8513c3aeb | null | USER | Determine the number of distinct order ids for each product. | {"transformations":[{"column":"order_id","transformationType":"aggregations","aggregation":"count"},{"column":"product_id","transformationType":"grouping"}]} | [{"columns":["order_item_id","order_id","product_id","product_quantity","other_order_item_details"],"name":"Order_Items","type":"grid"}] |
d06934e9-279a-4204-8035-07440321b666 | null | USER | How many students have advisors? | {"transformations":[{"column":"s_id","transformationType":"aggregations","aggregation":"count"}]} | [{"columns":["s_ID","i_ID"],"name":"advisor","type":"grid"}] |
721f89c8-bc22-4ceb-917f-95678ef744d4 | null | USER | How many countries have Spanish as the most spoken language? | {"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"}] |
7fd0e085-4a79-4750-8bd8-cbe55979a167 | null | USER | What is the first, middle, and last name of the first student to register? | {"transformations":[{"column":"date_first_registered","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"asc"}]} | [{"columns":["student_id","current_address_id","permanent_address_id","first_name","middle_name","last_name","cell_mobile_number","email_address","ssn","date_first_registered","date_left","other_student_details"],"name":"Students","type":"grid"}] |
dbd8a60a-0861-494f-b857-ea9e01a0dd7d | null | USER | For each city, how many branches were opened before 2010? | {"transformations":[{"column":"Branch_ID","transformationType":"aggregations","aggregation":"count"},{"column":"open_year","transformationType":"condition","operation":"<","value":2010},{"column":"city","transformationType":"grouping"}]} | [{"columns":["Branch_ID","Name","Open_year","Address_road","City","membership_amount"],"name":"branch","type":"grid"}] |
c58491d9-6472-47ad-b2c1-85ff452e1863 | null | USER | What is the nickname of the employee named Janessa Sawayn? | {"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"}] |
10b2b53b-8854-49c2-976b-572a08e25d79 | null | USER | For each year, return the year and the average number of attendance at home games. | {"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"}] |
7e4940a9-acfc-48f4-afbd-195c8d88e312 | null | USER | Tell me the distinct block codes where some rooms are available. | {"transformations":[{"column":"unavailable","transformationType":"condition","operation":"=","value":0}]} | [{"columns":["RoomNumber","RoomType","BlockFloor","BlockCode","Unavailable"],"name":"Room","type":"grid"}] |
603626d4-1ded-4d9a-aac7-c6623aa22a3e | null | USER | What is the average price for flights from Los Angeles to Honolulu. | {"transformations":[{"column":"price","transformationType":"aggregations","aggregation":"avg"},{"column":"origin","transformationType":"condition","operation":"=","value":"'Los Angeles'"},{"column":"destination","transformationType":"condition","operation":"=","value":"'Honolulu'"}]} | [{"columns":["flno","origin","destination","distance","departure_date","arrival_date","price","aid"],"name":"flight","type":"grid"}] |
c3c87e07-1bcc-4921-a1e7-b25db211cc77 | null | USER | Give me the times and numbers of all trains that go to Chennai, ordered by time. | {"transformations":[{"column":"destination","transformationType":"condition","operation":"=","value":"Chennai"},{"column":"TIME","transformationType":"sorting","direction":"asc"}]} | [{"columns":["id","train_number","name","origin","destination","time","interval"],"name":"train","type":"grid"}] |
b669f75d-b486-4871-ac1e-aa82d0790981 | null | USER | Count the number of sections per 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"}] |
708d350f-8b6b-4a97-b7d1-1566f1afad11 | null | USER | What are the different ages of editors? Display each age along with the number of editors of that age. | {"transformations":[{"column":"Editor_ID","transformationType":"aggregations","aggregation":"count"},{"column":"Age","transformationType":"grouping"}]} | [{"columns":["Editor_ID","Name","Age"],"name":"editor","type":"grid"}] |
c539e820-5a54-4476-ab54-58a7af7e6d58 | null | USER | What are the different classes of races and how many races fall under each class? | {"transformations":[{"column":"Race_ID","transformationType":"aggregations","aggregation":"count"},{"column":"CLASS","transformationType":"grouping"}]} | [{"columns":["Race_ID","Name","Class","Date","Track_ID"],"name":"race","type":"grid"}] |
c53f6028-3ad8-432d-abdd-1274c75a38a9 | null | USER | Find the total revenue of companies of each founder. | {"transformations":[{"column":"revenue","transformationType":"aggregations","aggregation":"sum"},{"column":"founder","transformationType":"grouping"}]} | [{"columns":["Code","Name","Headquarter","Founder","Revenue"],"name":"Manufacturers","type":"grid"}] |
c40ed222-6e14-438f-b3c3-63f54a899769 | null | USER | What is the total student capacity of all dorms? | {"transformations":[{"column":"student_capacity","transformationType":"aggregations","aggregation":"sum"}]} | [{"columns":["dormid","dorm_name","student_capacity","gender"],"name":"Dorm","type":"grid"}] |
0bdfa938-7cf8-4fd0-8117-752522b55dfe | null | USER | What is the name and distance for aircraft with id 12? | {"transformations":[{"column":"aid","transformationType":"condition","operation":"=","value":12}]} | [{"columns":["aid","name","distance"],"name":"aircraft","type":"grid"}] |
fff72fde-03b2-46f6-9296-92b8e2b578d7 | null | USER | How many different product types are there? | {"transformations":[{"column":"product_type_code","transformationType":"aggregations","aggregation":"count"}]} | [{"columns":["product_id","product_type_code","daily_hire_cost","product_name","product_description"],"name":"Products_for_Hire","type":"grid"}] |
83e24fef-c3a8-43a0-bdde-545e8ffee4b9 | null | USER | How many followers does each user have? | {"transformations":[{"column":"f1","transformationType":"aggregations","aggregation":"count"}]} | [{"columns":["f1","f2"],"name":"follows","type":"grid"}] |
45c35def-0ed0-4fa6-a7ae-8a1b0b1845fe | null | USER | What is the name of the artist who joined latest? | {"transformations":[{"column":"year_join","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]} | [{"columns":["Artist_ID","Name","Country","Year_Join","Age"],"name":"artist","type":"grid"}] |
5820dbf9-46ee-4cca-8c5d-5816760e8d2e | null | USER | Find the rooms of faculties with rank professor who live in building NEB. | {"transformations":[{"column":"Rank","transformationType":"condition","operation":"=","value":"'Professor'"},{"column":"Building","transformationType":"condition","operation":"=","value":"'NEB'"}]} | [{"columns":["FacID","Lname","Fname","Rank","Sex","Phone","Room","Building"],"name":"Faculty","type":"grid"}] |
623684d4-18cf-49a8-ab12-d7c94b0dcf19 | null | USER | Calculate the average account balance for customers with credit scores below 50, grouped by account type. | {"transformations":[{"column":"acc_bal","transformationType":"aggregations","aggregation":"avg"},{"column":"credit_score","transformationType":"condition","operation":"<","value":50},{"column":"acc_type","transformationType":"grouping"}]} | [{"columns":["cust_ID","cust_name","acc_type","acc_bal","no_of_loans","credit_score","branch_ID","state"],"name":"customer","type":"grid"}] |
089e2fb9-790d-409f-82bd-23736029ed96 | null | USER | Return the names and ids of customers who have TN in their address. | {"transformations":[{"column":"customer_address","transformationType":"condition","operation":"contains","value":"TN"}]} | [{"columns":["customer_id","payment_method_code","customer_code","customer_name","customer_address","customer_phone","customer_email"],"name":"Customers","type":"grid"}] |
7fcf31a4-14a0-4da4-9212-3f0608155fea | null | USER | Ascertain the student count in a single classroom. | {"transformations":[{"column":"LastName","transformationType":"aggregations","aggregation":"count"},{"column":"classroom","transformationType":"grouping"}]} | [{"columns":["LastName","FirstName","Grade","Classroom"],"name":"list","type":"grid"}] |
73a7005a-6165-4512-a1c1-a9a298b03c55 | null | USER | What is the id of every employee who has at least a salary of 100000? | {"transformations":[{"column":"salary","transformationType":"condition","operation":">","value":100000}]} | [{"columns":["eid","name","salary"],"name":"employee","type":"grid"}] |
4e11fde5-5489-4b81-bd58-2a203957a339 | null | USER | Which state can address "6862 Kaitlyn Knolls" possibly be in? | {"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"}] |
18097a8a-23f0-4320-b09c-a304ca6ea777 | null | USER | Give the average life expectancy for countries in Africa which are republics? | {"transformations":[{"column":"LifeExpectancy","transformationType":"aggregations","aggregation":"avg"},{"column":"Continent","transformationType":"condition","operation":"=","value":"'Africa'"},{"column":"GovernmentForm","transformationType":"condition","operation":"=","value":"'Republic'"}]} | [{"columns":["Code","Name","Continent","Region","SurfaceArea","IndepYear","Population","LifeExpectancy","GNP","GNPOld","LocalName","GovernmentForm","HeadOfState","Capital","Code2"],"name":"country","type":"grid"}] |
15a9857f-7dd0-4a87-94cd-e3921e59302f | null | USER | What are the majors of male (sex is M) students? | {"transformations":[{"column":"Sex","transformationType":"condition","operation":"=","value":"'M'"}]} | [{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"Student","type":"grid"}] |
1e681f30-9928-4552-b48c-4d9ef2747ba2 | null | USER | How many parties do we have? | {"transformations":[{"column":"party_name","transformationType":"aggregations","aggregation":"count"}]} | [{"columns":["Party_ID","Minister","Took_office","Left_office","Region_ID","Party_name"],"name":"party","type":"grid"}] |
47790660-9fda-473c-aec8-9ec75a9819ee | null | USER | What is the average snatch score of body builders? | {"transformations":[{"column":"Snatch","transformationType":"aggregations","aggregation":"avg"}]} | [{"columns":["Body_Builder_ID","People_ID","Snatch","Clean_Jerk","Total"],"name":"body_builder","type":"grid"}] |
d6bc9fc5-808f-42c3-a1dc-7964ff9e2942 | null | USER | For each citizenship, what is the maximum net worth? | {"transformations":[{"column":"Net_Worth_Millions","transformationType":"aggregations","aggregation":"max"},{"column":"Citizenship","transformationType":"grouping"}]} | [{"columns":["Singer_ID","Name","Birth_Year","Net_Worth_Millions","Citizenship"],"name":"singer","type":"grid"}] |
403f2438-986b-4fa0-98ff-9c8156bf8458 | null | USER | Find the average number of staff working for the museums that were open before 2009. | {"transformations":[{"column":"num_of_staff","transformationType":"aggregations","aggregation":"avg"},{"column":"open_year","transformationType":"condition","operation":"<","value":2009}]} | [{"columns":["Museum_ID","Name","Num_of_Staff","Open_Year"],"name":"museum","type":"grid"}] |
0ba673a9-363d-4d5d-9e3f-07646015e28e | null | USER | Tell me the age of the oldest dog. | {"transformations":[{"column":"age","transformationType":"aggregations","aggregation":"max"}]} | [{"columns":["dog_id","owner_id","abandoned_yn","breed_code","size_code","name","age","date_of_birth","gender","weight","date_arrived","date_adopted","date_departed"],"name":"Dogs","type":"grid"}] |
d9e844c1-d2a4-4d8b-a42d-d44359508c72 | null | USER | What are the ids of the candidates that have an outcome code of Pass? | {"transformations":[{"column":"asessment_outcome_code","transformationType":"condition","operation":"=","value":"'Pass'"}]} | [{"columns":["candidate_id","qualification","assessment_date","asessment_outcome_code"],"name":"Candidate_Assessments","type":"grid"}] |
e0567a66-c6a5-48d0-9be9-36edf985271d | null | USER | On what dates were employees without the letter M in their first names hired? | {"transformations":[{"column":"first_name","transformationType":"condition","operation":"not contains","value":"M"}]} | [{"columns":["EMPLOYEE_ID","FIRST_NAME","LAST_NAME","EMAIL","PHONE_NUMBER","HIRE_DATE","JOB_ID","SALARY","COMMISSION_PCT","MANAGER_ID","DEPARTMENT_ID"],"name":"employees","type":"grid"}] |
80a1fe1d-b48e-4f97-b09e-ca4efc826d22 | null | USER | What is the average prices of wines for each each? | {"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"}] |
b9cbc338-25c0-4cdb-97e5-8d5744b103d2 | null | USER | Identify distinct store types and their count. | {"transformations":[{"column":"Store_ID","transformationType":"aggregations","aggregation":"count"},{"column":"TYPE","transformationType":"grouping"}]} | [{"columns":["Store_ID","Store_Name","Type","Area_size","Number_of_product_category","Ranking"],"name":"store","type":"grid"}] |
cbaa0642-24c6-43ed-91f2-543f24a2acd0 | null | USER | Report the grade, number of classrooms, and total number of students for each grade. | {"transformations":[{"column":"classroom","transformationType":"aggregations","aggregation":"count"},{"column":"LastName","transformationType":"aggregations","aggregation":"count"},{"column":"grade","transformationType":"grouping"}]} | [{"columns":["LastName","FirstName","Grade","Classroom"],"name":"list","type":"grid"}] |
7fc2310b-af28-4be9-bb4d-bab9ee84855b | null | USER | How many candidates are there? | {"transformations":[{"column":"Candidate_ID","transformationType":"aggregations","aggregation":"count"}]} | [{"columns":["Candidate_ID","People_ID","Poll_Source","Date","Support_rate","Consider_rate","Oppose_rate","Unsure_rate"],"name":"candidate","type":"grid"}] |
8c48462b-8254-4af0-a78b-0d11d6696b6f | null | USER | Return the description for the courses named "database". | {"transformations":[{"column":"course_name","transformationType":"condition","operation":"=","value":"'database'"}]} | [{"columns":["course_id","author_id","subject_id","course_name","course_description"],"name":"Courses","type":"grid"}] |
028f6fca-5b93-484b-ba72-f65c1707c1c8 | null | USER | What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'? | {"transformations":[{"column":"bulgarian_commander","transformationType":"condition","operation":"=","value":"Kaloyan"},{"column":"latin_commander","transformationType":"condition","operation":"=","value":"Baldwin I"}]} | [{"columns":["id","name","date","bulgarian_commander","latin_commander","result"],"name":"battle","type":"grid"}] |
97d60ae2-9ce8-4171-acbc-9bcf45727fa7 | null | USER | What is the alphabetically ordered list of all the distinct names of nurses? | {"transformations":[{"column":"name","transformationType":"sorting","direction":"asc"}]} | [{"columns":["EmployeeID","Name","Position","Registered","SSN"],"name":"Nurse","type":"grid"}] |
f22bac6c-f96b-4e7b-9bab-ffc264fd340e | null | USER | What are the product id and product type of the cheapest product? | {"transformations":[{"column":"product_price","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"asc"}]} | [{"columns":["product_id","product_type_code","product_name","product_price"],"name":"Products","type":"grid"}] |
03ddc3a8-c4ff-4b7c-93d9-a7b7b9e2812d | null | USER | List the forenames of all distinct drivers in alphabetical order? | {"transformations":[{"column":"forename","transformationType":"sorting","direction":"asc"}]} | [{"columns":["driverId","driverRef","number","code","forename","surname","dob","nationality","url"],"name":"drivers","type":"grid"}] |
5224250a-9cbd-4451-8950-158f68401695 | null | USER | Sort the each workshop in alphabetical order of the venue. Return the date and venue of each workshop. | {"transformations":[{"column":"Venue","transformationType":"sorting","direction":"asc"}]} | [{"columns":["Workshop_ID","Date","Venue","Name"],"name":"workshop","type":"grid"}] |
cc896383-341f-46de-9917-3509cb7cba4c | null | USER | Who is the first student to register? List the first name, middle name and last name. | {"transformations":[{"column":"date_first_registered","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"asc"}]} | [{"columns":["student_id","current_address_id","permanent_address_id","first_name","middle_name","last_name","cell_mobile_number","email_address","ssn","date_first_registered","date_left","other_student_details"],"name":"Students","type":"grid"}] |
d67838df-7cee-40ab-9ddc-c3cd70881aaf | null | USER | What are the codes of countries where Spanish is spoken by the largest percentage of people? | {"transformations":[{"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"}] |
437584ae-634f-45b6-be77-19680cd2da4d | null | USER | List the name and residence for players whose occupation is not "Researcher". | {"transformations":[{"column":"Occupation","transformationType":"condition","operation":"!=","value":"'Researcher'"}]} | [{"columns":["Player_ID","Sponsor_name","Player_name","Gender","Residence","Occupation","Votes","Rank"],"name":"player","type":"grid"}] |
8d031123-3fe7-4837-9f3c-c3d08a11c4e2 | null | USER | For each main industry, what is the total number of companies for the industry with the highest total market value? | {"transformations":[{"column":"Company_ID","transformationType":"aggregations","aggregation":"count"},{"column":"main_industry","transformationType":"grouping"},{"column":"market_value","limit":1,"transformationType":"topFilter","aggregation":"sum","direction":"desc"}]} | [{"columns":["Company_ID","Rank","Company","Headquarters","Main_Industry","Sales_billion","Profits_billion","Assets_billion","Market_Value"],"name":"company","type":"grid"}] |
4392de43-db86-4735-b0c4-01da5ed506e2 | null | USER | How many different colleges are there? | {"transformations":[{"column":"cName","transformationType":"aggregations","aggregation":"count"}]} | [{"columns":["cName","state","enr"],"name":"College","type":"grid"}] |
6ca05d9d-1d3d-4eec-978d-289619a58353 | null | USER | Give the flight numbers of flights leaving from APG. | {"transformations":[{"column":"SourceAirport","transformationType":"condition","operation":"=","value":"'APG'"}]} | [{"columns":["Airline","FlightNo","SourceAirport","DestAirport"],"name":"flights","type":"grid"}] |
98e7ccc9-7af6-4fbc-a5ea-8171faf8c45d | null | USER | Find the name, city, and country of the airport that has the lowest altitude. | {"transformations":[{"column":"elevation","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"asc"}]} | [{"columns":["apid","name","city","country","x","y","elevation","iata","icao"],"name":"airports","type":"grid"}] |
f8ff4f3a-9aaa-4921-92a5-d4cdcdfd61bc | null | USER | Compute the total amount of settlement across all the settlements. | {"transformations":[{"column":"Amount_Settled","transformationType":"aggregations","aggregation":"sum"}]} | [{"columns":["Settlement_ID","Claim_ID","Date_Claim_Made","Date_Claim_Settled","Amount_Claimed","Amount_Settled","Customer_Policy_ID"],"name":"Settlements","type":"grid"}] |
a96d1ce9-216b-40d6-a6f7-b6700faa5a59 | null | USER | How many poker players are there? | {"transformations":[{"column":"Poker_Player_ID","transformationType":"aggregations","aggregation":"count"}]} | [{"columns":["Poker_Player_ID","People_ID","Final_Table_Made","Best_Finish","Money_Rank","Earnings"],"name":"poker_player","type":"grid"}] |
87f7d038-6559-47f4-b4c5-0a862bc967c5 | null | USER | Whah are the name of each industry and the number of companies in that industry? | {"transformations":[{"column":"id","transformationType":"aggregations","aggregation":"count"},{"column":"Industry","transformationType":"grouping"}]} | [{"columns":["id","name","Headquarters","Industry","Sales_billion","Profits_billion","Assets_billion","Market_Value_billion"],"name":"Companies","type":"grid"}] |
1f162d30-0fa2-4101-8c4a-1cc264171087 | null | USER | Group wines by appellation and report their average price and score. | {"transformations":[{"column":"Price","transformationType":"aggregations","aggregation":"avg"},{"column":"Score","transformationType":"aggregations","aggregation":"avg"},{"column":"Appelation","transformationType":"grouping"}]} | [{"columns":["No","Grape","Winery","Appelation","State","Name","Year","Price","Score","Cases","Drink"],"name":"wine","type":"grid"}] |
b5071361-53f4-4d66-873e-e9ffc858d9a8 | null | USER | Give the order ids for all orders, as well as the total product quantity in each. | {"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"}] |
2b50c081-0ec0-49d2-bbd4-9f34bf5da90f | null | USER | List the names of the top 5 oldest people. | {"transformations":[{"column":"Age","limit":5,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]} | [{"columns":["People_ID","Name","Age","Height","Hometown"],"name":"people","type":"grid"}] |
eafb17ce-e365-478e-883b-99f3f87e758b | null | USER | What are the names, countries, and ages for every singer in descending order of age? | {"transformations":[{"column":"age","transformationType":"sorting","direction":"desc"}]} | [{"columns":["Singer_ID","Name","Country","Song_Name","Song_release_year","Age","Is_male"],"name":"singer","type":"grid"}] |
4c346ab2-55ea-4114-a48f-6f96ecee7256 | null | USER | Count the number of ships for each type. | {"transformations":[{"column":"Ship_ID","transformationType":"aggregations","aggregation":"count"},{"column":"TYPE","transformationType":"grouping"}]} | [{"columns":["Ship_ID","Name","Type","Nationality","Tonnage"],"name":"ship","type":"grid"}] |
6781d457-8969-46d3-b9aa-764db3e8eae0 | null | USER | What is the name and date of the most recent race? | {"transformations":[{"column":"date","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]} | [{"columns":["raceId","year","round","circuitId","name","date","time","url"],"name":"races","type":"grid"}] |
f554f2a7-6933-4f6b-82fa-e0848d0c7a55 | null | USER | Which papers have the substring "Database" in their titles? Show the titles of the papers. | {"transformations":[{"column":"title","transformationType":"condition","operation":"contains","value":"Database"}]} | [{"columns":["paperID","title"],"name":"Papers","type":"grid"}] |
3484988c-f4a7-4ffa-8f2f-b5830bf8fde7 | null | USER | Show flight number for all flights with more than 2000 distance. | {"transformations":[{"column":"distance","transformationType":"condition","operation":">","value":2000}]} | [{"columns":["flno","origin","destination","distance","departure_date","arrival_date","price","aid"],"name":"flight","type":"grid"}] |
2293e2f1-8ae2-4049-87af-ab50976f4ca0 | null | USER | What is average age for different job title? | {"transformations":[{"column":"age","transformationType":"aggregations","aggregation":"avg"},{"column":"job","transformationType":"grouping"}]} | [{"columns":["name","age","city","gender","job"],"name":"Person","type":"grid"}] |
fbd7e9d3-55d3-4fb3-ac40-3ace545635fc | null | USER | Show the advisors and the corresponding number of students. | {"transformations":[{"column":"StuID","transformationType":"aggregations","aggregation":"count"},{"column":"advisor","transformationType":"grouping"}]} | [{"columns":["StuID","LName","Fname","Age","Sex","Major","Advisor","city_code"],"name":"Student","type":"grid"}] |
17fe72aa-8480-4723-9e99-8746f2823fa0 | null | USER | How many players played each position? | {"transformations":[{"column":"Season","transformationType":"aggregations","aggregation":"count"},{"column":"POSITION","transformationType":"grouping"}]} | [{"columns":["Season","Player","Position","Country","Team","Draft_Pick_Number","Draft_Class","College"],"name":"match_season","type":"grid"}] |
b14977e9-9bdf-4782-bffd-921979db1d13 | null | USER | Which city and country is the Alton airport at? | {"transformations":[{"column":"AirportName","transformationType":"condition","operation":"=","value":"'Alton'"}]} | [{"columns":["City","AirportCode","AirportName","Country","CountryAbbrev"],"name":"airports","type":"grid"}] |
616bbe64-991f-4740-a7a3-4c91b6d3d1c1 | null | USER | What are the teams that have the 5 oldest players? | {"transformations":[{"column":"Age","limit":5,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]} | [{"columns":["Player_ID","Player","Team","Age","Position","School_ID"],"name":"player","type":"grid"}] |
3e06bc71-b4c9-4ee1-97d4-a280e6254afa | null | USER | Show the name and opening year for three churches that opened most recently. | {"transformations":[{"column":"open_date","limit":3,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]} | [{"columns":["Church_ID","Name","Organized_by","Open_Date","Continuation_of"],"name":"church","type":"grid"}] |
1e836ed2-2b10-46fa-a298-efdd3ca2d24d | null | USER | What are the IDs of all students and the number of hours they played? | {"transformations":[{"column":"hours_played","transformationType":"aggregations","aggregation":"sum"},{"column":"Stuid","transformationType":"grouping"}]} | [{"columns":["StuID","GameID","Hours_Played"],"name":"Plays_Games","type":"grid"}] |
353fe6d6-8ca2-460d-8851-94aa81ad0f2e | null | USER | How many artists do we have? | {"transformations":[{"column":"Artist_ID","transformationType":"aggregations","aggregation":"count"}]} | [{"columns":["Artist_ID","Name","Country","Year_Join","Age"],"name":"artist","type":"grid"}] |
2eb02f2e-a7d9-4e36-b72b-7503a58931d2 | null | USER | What is the first and last name of all the German drivers? | {"transformations":[{"column":"nationality","transformationType":"condition","operation":"=","value":"'German'"}]} | [{"columns":["driverId","driverRef","number","code","forename","surname","dob","nationality","url"],"name":"drivers","type":"grid"}] |
e03b2613-ca11-4691-918b-27908e25a383 | null | USER | What is the name of the 3 employees who get paid the least? | {"transformations":[{"column":"salary","limit":3,"transformationType":"topFilter","aggregation":"avg","direction":"asc"}]} | [{"columns":["eid","name","salary"],"name":"employee","type":"grid"}] |
ce41f066-7985-4f4e-b704-c75602f43b7b | null | USER | What are the country codes of the different countries, and what are the languages spoken by the greatest percentage of people for each? | {"transformations":[{"column":"Percentage","transformationType":"aggregations","aggregation":"max"},{"column":"CountryCode","transformationType":"grouping"}]} | [{"columns":["CountryCode","Language","IsOfficial","Percentage"],"name":"countrylanguage","type":"grid"}] |
45237db8-67c6-4876-b4fe-f5f97c58c4a9 | null | USER | Where is the history department? | {"transformations":[{"column":"dept_name","transformationType":"condition","operation":"=","value":"History"}]} | [{"columns":["DEPT_CODE","DEPT_NAME","SCHOOL_CODE","EMP_NUM","DEPT_ADDRESS","DEPT_EXTENSION"],"name":"DEPARTMENT","type":"grid"}] |
e33f4d6d-9b1a-49d8-9819-288fc8abea3d | null | USER | Which minister left office the latest? | {"transformations":[{"column":"left_office","limit":1,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]} | [{"columns":["Party_ID","Minister","Took_office","Left_office","Region_ID","Party_name"],"name":"party","type":"grid"}] |
9421e1c6-b8eb-42c2-8e44-428c003f2c5c | null | USER | For each country, what is the average elevation of that country's airports? | {"transformations":[{"column":"elevation","transformationType":"aggregations","aggregation":"avg"},{"column":"country","transformationType":"grouping"}]} | [{"columns":["apid","name","city","country","x","y","elevation","iata","icao"],"name":"airports","type":"grid"}] |
1b4448d8-c658-4170-af16-248b6bde5615 | null | USER | How many students are in each classroom? | {"transformations":[{"column":"LastName","transformationType":"aggregations","aggregation":"count"},{"column":"classroom","transformationType":"grouping"}]} | [{"columns":["LastName","FirstName","Grade","Classroom"],"name":"list","type":"grid"}] |
223878f6-4f37-47e7-8dfb-3f32244ced35 | null | USER | Display all template IDs and the number of documents associated with each template. | {"transformations":[{"column":"Document_ID","transformationType":"aggregations","aggregation":"count"},{"column":"template_id","transformationType":"grouping"}]} | [{"columns":["Document_ID","Template_ID","Document_Name","Document_Description","Other_Details"],"name":"Documents","type":"grid"}] |
e612390e-a7d9-4b0c-8dfe-248acc3e5467 | null | USER | Show all the ranks and the number of male and female faculty for each rank. | {"transformations":[{"column":"FacID","transformationType":"aggregations","aggregation":"count"},{"column":"rank","transformationType":"grouping"},{"column":"sex","transformationType":"grouping"}]} | [{"columns":["FacID","Lname","Fname","Rank","Sex","Phone","Room","Building"],"name":"Faculty","type":"grid"}] |
7d374f10-fa6a-4972-bad5-f09b6fdab3ea | null | USER | What are names for top three branches with most number of membership? | {"transformations":[{"column":"membership_amount","limit":3,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]} | [{"columns":["Branch_ID","Name","Open_year","Address_road","City","membership_amount"],"name":"branch","type":"grid"}] |
8fefbfb6-bb57-45dc-85c5-e24c8a0a7676 | null | USER | List all headquarters and the number of companies in each headquarter. | {"transformations":[{"column":"Company_ID","transformationType":"aggregations","aggregation":"count"},{"column":"headquarters","transformationType":"grouping"}]} | [{"columns":["Company_ID","Rank","Company","Headquarters","Main_Industry","Sales_billion","Profits_billion","Assets_billion","Market_Value"],"name":"company","type":"grid"}] |
241f2151-a815-4fca-b33a-a7f1dded4e73 | null | USER | What is the product category description and unit of measurement of category "Herbs"? | {"transformations":[{"column":"product_category_code","transformationType":"condition","operation":"=","value":"'Herbs'"}]} | [{"columns":["product_category_code","product_category_description","unit_of_measure"],"name":"Ref_Product_Categories","type":"grid"}] |
68f71a03-1862-4a76-a90b-175ec37da075 | null | USER | What are the names of schools with the top 3 largest size? | {"transformations":[{"column":"enr","limit":3,"transformationType":"topFilter","aggregation":"avg","direction":"desc"}]} | [{"columns":["cName","state","enr"],"name":"College","type":"grid"}] |