(core) Add cases involving lookups to formula dataset

Summary: I looked through the template documents mentioned in `formula-dataset-index.csv` and selected formulas involving lookups to add to the CSV, particularly nontrivial formulas.

Test Plan: Running the test script on the new dataset gives a score of 47/61 compared to the previous 45/47, i.e. it scores 2/14 on the new entries. Lookups are clearly challenging and we'll need to add more information to the prompt, maybe even consider a more complicated strategy than a single prompt. This diff is purely for expanding the dataset, improving performance will come later.

Reviewers: paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D3931
pull/550/head
Alex Hall 11 months ago
parent 3defb89866
commit d88f79bc5e

@ -1,9 +1,13 @@
table_id,col_id,doc_id,Description
Contacts,Send_Email,hQHXqAQXceeQBPvRw5sSs1,"Link to compose an email, if there is one"
Contacts,No_Notes,hQHXqAQXceeQBPvRw5sSs1,"Number of notes for this contact"
Category,Contains_archived_project_,hQHXqAQXceeQBPvRw5sSs1,"Whether any projects in this category are archived"
Tasks,Today,hQHXqAQXceeQBPvRw5sSs1,Needs to be done today (or every day)
Tasks,Week_Day,hQHXqAQXceeQBPvRw5sSs1,Full name of deadline weekday
Tasks,period,hQHXqAQXceeQBPvRw5sSs1,Whether this task was modified between (inclusive) the dates in the single row in Settings
Expenses,Month,55Q2EtTbFvB1N6iizLh4Rk,e.g. 2022-01
Payroll,Date_Range,5pHLanQNThxkEaEJHKJUf5,"The start date, followed by a dash (no spaces) and the end date if there is one. Dates are month/day with no leading zeroes."
Payroll,Per_Hour,5pHLanQNThxkEaEJHKJUf5,The hourly rate of the latest rate for this role and person that started on or before this date
Payroll,Payment,5pHLanQNThxkEaEJHKJUf5,"Total payment amount for hours worked, rounded to the nearest cent."
Payroll_summary_Pay_Period_Person,Dates,5pHLanQNThxkEaEJHKJUf5,"All date ranges in the group, separated by a comma and a space"
People,Full_Name,5pHLanQNThxkEaEJHKJUf5,"e.g. Doe, John"
@ -11,8 +15,10 @@ General_Ledger,Quarter,2YwYBWpREY2a1N2NV7cb55,e.g. 2020 Q4
General_Ledger,Year,2YwYBWpREY2a1N2NV7cb55,"Just the year of the date, as a string"
Time_Calculator,Time_Worked,np7TVHmuvFcHmo1K8h7Ur4,Formatted as hours:minutes. No leading zeroes for hours.
Time_Calculator,Seconds_Worked,np7TVHmuvFcHmo1K8h7Ur4,"Number of seconds between start/end times, if they're both there"
Funding_Source,Percentage,qprycQa2TVwajAe6Hb3bUZ,Ratio of the amount to the total across all rows
Funding_Source_summary,Debt_to_Equity,qprycQa2TVwajAe6Hb3bUZ,Ratio of the total amounts in the group where the type is Debt vs Equity
Invoices,Client,bReAxyLmzmEQfHF5L5Sc1e,Client's name followed by their address on the next line
Invoices,Hours,bReAxyLmzmEQfHF5L5Sc1e,Total duration in hours across all time logs for this invoice
Invoices,Due,bReAxyLmzmEQfHF5L5Sc1e,30 days after the invoice date
Invoices,Invoice_ID,bReAxyLmzmEQfHF5L5Sc1e,Invoice date followed by the client's name in brackets
Projects,Project_Name,bReAxyLmzmEQfHF5L5Sc1e,"Client name and project name, e.g. John Doe: Big project"
@ -30,6 +36,7 @@ Cap_Table,Common_Stock,iXggjrCPHut9u2BuhJxJkk,"If the class is Options, RSUs, or
Cap_Table,Fully_Diluted,iXggjrCPHut9u2BuhJxJkk,"The granted amount, minus the total pool used if the class is Option Pool"
Cap_Table,Fully_Diluted_,iXggjrCPHut9u2BuhJxJkk,Fully diluted as a fraction of the total
Classes,Spots_Left,swLvb3Fic22gVzrdczcAoZ,or Full
Classes,Count,swLvb3Fic22gVzrdczcAoZ,Number of enrollments for this class where the status is Confirmed
All_Survey_Responses,Product_Experience_Score,4ktYzGV1mUipSiQFtkLGqm,"A number based on the experience:
Very Dissatisfied: 1
Somewhat Dissatisfied: 2
@ -39,6 +46,7 @@ Very Satisfied: 5"
Time_Sheet_Entries_summary_Account_Employee_Month,Total_Spend,oGxD8EnzeVs6vSQK3QBrUv,Total hours worked times hourly rate
Time_Sheets,Title,oGxD8EnzeVs6vSQK3QBrUv,Month number and employee full name separated by a space
All_Products,SKU,sXsBGDTKau1F3fvxkCyoaJ,"Brand code, color code, and size, separated by dashes without spaces"
All_Products,QTY_on_Order,sXsBGDTKau1F3fvxkCyoaJ,Total quantity minus total received quantity across all incoming order line items for this product
All_Products,Stock_Alert,sXsBGDTKau1F3fvxkCyoaJ,"If the amount in stock and on order is more than 5: In Stock
If it's 0: OUT OF STOCK
Otherwise: Low Stock"
@ -46,10 +54,16 @@ Incoming_Order_Line_Items,Received_Qty,sXsBGDTKau1F3fvxkCyoaJ,"The quantity, but
Theaters,Latitude2,dKztiPYamcCpttT1LT1FnU,Coordinate before the comma
Theaters,Longitude,dKztiPYamcCpttT1LT1FnU,Coordinate after the comma and space
Families,Amount_Due,cJcSKdUC3nLNAv4wTjAxA6,"Total charged minus total paid, capped at 0"
Families,Total_Applied,cJcSKdUC3nLNAv4wTjAxA6,Total charge for all paid sessions for this family
Gifts_summary_Occasion_Who_Year,Over_Budget_,dr6epxpXUcy9rsFVUoXTEe,Did we spend more than the budget for this person?
Gifts_summary_Year,Total_Budget,dr6epxpXUcy9rsFVUoXTEe,Total budget for all important dates this year
Leases,Signer,5iMYwmESm33JpEECSqdZk2,The signing tenant for this lease
Apartments,Have_Picture,5iMYwmESm33JpEECSqdZk2,Yes or No depending on if there's a picture
Apartments,Current_Lease,5iMYwmESm33JpEECSqdZk2,The lease for this apartment whose current status is Active
Current_Signers,Lease_Start_Date,5iMYwmESm33JpEECSqdZk2,The start date of the lease for this apartment whose current status is Active
Leases,Lease_End_Date,5iMYwmESm33JpEECSqdZk2,Start date plus the lease term in years minus one day
Tenancies,Minor,5iMYwmESm33JpEECSqdZk2,"1 if the age is less than 18, otherwise 0"
Game_Schedule,Loser,1xJAp2uxM7tFCVUbEofKoF,The team that won fewer sets
Standings,Win_Rate,1xJAp2uxM7tFCVUbEofKoF,Ratio of wins to total games
Standings,Wins,1xJAp2uxM7tFCVUbEofKoF,Number of games won
Prepare_Invoices,Due,9NH6D58FmxwPP43nw7uzQK,One month after the issued date if there is one

1 table_id col_id doc_id Description
2 Contacts Send_Email hQHXqAQXceeQBPvRw5sSs1 Link to compose an email, if there is one
3 Contacts No_Notes hQHXqAQXceeQBPvRw5sSs1 Number of notes for this contact
4 Category Contains_archived_project_ hQHXqAQXceeQBPvRw5sSs1 Whether any projects in this category are archived
5 Tasks Today hQHXqAQXceeQBPvRw5sSs1 Needs to be done today (or every day)
6 Tasks Week_Day hQHXqAQXceeQBPvRw5sSs1 Full name of deadline weekday
7 Tasks period hQHXqAQXceeQBPvRw5sSs1 Whether this task was modified between (inclusive) the dates in the single row in Settings
8 Expenses Month 55Q2EtTbFvB1N6iizLh4Rk e.g. 2022-01
9 Payroll Date_Range 5pHLanQNThxkEaEJHKJUf5 The start date, followed by a dash (no spaces) and the end date if there is one. Dates are month/day with no leading zeroes.
10 Payroll Per_Hour 5pHLanQNThxkEaEJHKJUf5 The hourly rate of the latest rate for this role and person that started on or before this date
11 Payroll Payment 5pHLanQNThxkEaEJHKJUf5 Total payment amount for hours worked, rounded to the nearest cent.
12 Payroll_summary_Pay_Period_Person Dates 5pHLanQNThxkEaEJHKJUf5 All date ranges in the group, separated by a comma and a space
13 People Full_Name 5pHLanQNThxkEaEJHKJUf5 e.g. Doe, John
15 General_Ledger Year 2YwYBWpREY2a1N2NV7cb55 Just the year of the date, as a string
16 Time_Calculator Time_Worked np7TVHmuvFcHmo1K8h7Ur4 Formatted as hours:minutes. No leading zeroes for hours.
17 Time_Calculator Seconds_Worked np7TVHmuvFcHmo1K8h7Ur4 Number of seconds between start/end times, if they're both there
18 Funding_Source Percentage qprycQa2TVwajAe6Hb3bUZ Ratio of the amount to the total across all rows
19 Funding_Source_summary Debt_to_Equity qprycQa2TVwajAe6Hb3bUZ Ratio of the total amounts in the group where the type is Debt vs Equity
20 Invoices Client bReAxyLmzmEQfHF5L5Sc1e Client's name followed by their address on the next line
21 Invoices Hours bReAxyLmzmEQfHF5L5Sc1e Total duration in hours across all time logs for this invoice
22 Invoices Due bReAxyLmzmEQfHF5L5Sc1e 30 days after the invoice date
23 Invoices Invoice_ID bReAxyLmzmEQfHF5L5Sc1e Invoice date followed by the client's name in brackets
24 Projects Project_Name bReAxyLmzmEQfHF5L5Sc1e Client name and project name, e.g. John Doe: Big project
36 Cap_Table Fully_Diluted iXggjrCPHut9u2BuhJxJkk The granted amount, minus the total pool used if the class is Option Pool
37 Cap_Table Fully_Diluted_ iXggjrCPHut9u2BuhJxJkk Fully diluted as a fraction of the total
38 Classes Spots_Left swLvb3Fic22gVzrdczcAoZ or Full
39 Classes Count swLvb3Fic22gVzrdczcAoZ Number of enrollments for this class where the status is Confirmed
40 All_Survey_Responses Product_Experience_Score 4ktYzGV1mUipSiQFtkLGqm A number based on the experience: Very Dissatisfied: 1 Somewhat Dissatisfied: 2 Neutral: 3 Somewhat Satisfied: 4 Very Satisfied: 5
41 Time_Sheet_Entries_summary_Account_Employee_Month Total_Spend oGxD8EnzeVs6vSQK3QBrUv Total hours worked times hourly rate
42 Time_Sheets Title oGxD8EnzeVs6vSQK3QBrUv Month number and employee full name separated by a space
46 Theaters Incoming_Order_Line_Items Latitude2 Received_Qty dKztiPYamcCpttT1LT1FnU sXsBGDTKau1F3fvxkCyoaJ Coordinate before the comma The quantity, but only if the order is received
47 Theaters Longitude Latitude2 dKztiPYamcCpttT1LT1FnU Coordinate after the comma and space Coordinate before the comma
48 Families Theaters Amount_Due Longitude cJcSKdUC3nLNAv4wTjAxA6 dKztiPYamcCpttT1LT1FnU Total charged minus total paid, capped at 0 Coordinate after the comma and space
49 Families Amount_Due cJcSKdUC3nLNAv4wTjAxA6 Total charged minus total paid, capped at 0
50 Gifts_summary_Occasion_Who_Year Families Over_Budget_ Total_Applied dr6epxpXUcy9rsFVUoXTEe cJcSKdUC3nLNAv4wTjAxA6 Did we spend more than the budget for this person? Total charge for all paid sessions for this family
51 Apartments Gifts_summary_Occasion_Who_Year Have_Picture Over_Budget_ 5iMYwmESm33JpEECSqdZk2 dr6epxpXUcy9rsFVUoXTEe Yes or No depending on if there's a picture Did we spend more than the budget for this person?
52 Leases Gifts_summary_Year Lease_End_Date Total_Budget 5iMYwmESm33JpEECSqdZk2 dr6epxpXUcy9rsFVUoXTEe Start date plus the lease term in years minus one day Total budget for all important dates this year
54 Game_Schedule Apartments Loser Have_Picture 1xJAp2uxM7tFCVUbEofKoF 5iMYwmESm33JpEECSqdZk2 The team that won fewer sets Yes or No depending on if there's a picture
55 Standings Apartments Win_Rate Current_Lease 1xJAp2uxM7tFCVUbEofKoF 5iMYwmESm33JpEECSqdZk2 Ratio of wins to total games The lease for this apartment whose current status is Active
56 Prepare_Invoices Current_Signers Due Lease_Start_Date 9NH6D58FmxwPP43nw7uzQK 5iMYwmESm33JpEECSqdZk2 One month after the issued date if there is one The start date of the lease for this apartment whose current status is Active
57 Leases Lease_End_Date 5iMYwmESm33JpEECSqdZk2 Start date plus the lease term in years minus one day
58 Tenancies Minor 5iMYwmESm33JpEECSqdZk2 1 if the age is less than 18, otherwise 0
59 Game_Schedule Loser 1xJAp2uxM7tFCVUbEofKoF The team that won fewer sets
60 Standings Win_Rate 1xJAp2uxM7tFCVUbEofKoF Ratio of wins to total games
61 Standings Wins 1xJAp2uxM7tFCVUbEofKoF Number of games won
62 Prepare_Invoices Due 9NH6D58FmxwPP43nw7uzQK One month after the issued date if there is one
63
64
65
66
67
68
69
Loading…
Cancel
Save