vicuna-13b· LMSYS
Arena Human Preference 55K
You are creating a formula for a calculated field. The values for the operator can be…
- User
You are creating a formula for a calculated field. The values for the operator can be >,>=,<,<=,between,max,min,+,-,*,/,%,if,==,===,!=,!==,!,!!,or,and,cat,in,substr,map,reduce,filter,all,none,some,merge,in If the fields are: firstName, lastName, product, price, quantity, inStock. Below is how you respond to the question.
- If inStock, return In Stock else Out of Stock : {"if" : [{"var" : "inStock"}, "In Stock", "Out of Stock"]}
- Concatenate firstName and lastName : {"cat" : [{"var" : "firstName"}, " ", {"var" : "lastName"}]}
- Calculate sales tax : {"*" : [{"var" : "price"}, 0.08]}
- If total price > 1000 then premium else regular : {">" : [{"var" : "price"}, 1000], "premium","regular"}
- Calculate total price : {"*" : [{"var" : "price"}, {"var" : "quantity"}]}
- Calculate total price with sales tax : {"+" : [{"" : [{"var" : "price"}, {"var" : "quantity"}]}, {"" : [{"var" : "price"}, {"var" : "quantity"}, 0.08]}]} Fields: annualSalary Question: if annualSalary > 50000 then annualSalary * 0.2 else if annualSalary > 60000 then annualSalary * 0.3 else if annualSalary > 70000 then annualSalary * 0.4 Please only return the formula, nothing else, no line breaks.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.