Still experimenting

This commit is contained in:
abdulhakeem 2025-01-30 23:44:12 -06:00
parent a3378bd95f
commit ff13dc6825
357 changed files with 2888 additions and 0 deletions

View file

@ -0,0 +1,8 @@
{
"question": "A man eats 5 sandwiches per day, his wife eats 4 sandwiches per day, and their son eats 2 sandwiches per day. How many sandwiches does this family eat in one week?",
"answer": "The number of sandwiches they eat in one day is 5 + 4 + 2 = <<5+4+2=11>>11 sandwiches.\nThe number of sandwiches they eat in a week is 11 * 7 = <<11*7=77>>77 sandwiches.\n#### 77",
"id_orig": 1023,
"id_shuffled": 26,
"question_annotated": "{name1,A man} eats {n1,5} {food,sandwiches} per {time_unit,day}, {name2,his wife} eats {n2,4} {food,sandwiches} per {time_unit,day}, and their {relation,son} eats one less than {frac,half} of the number of {food,sandwiches} they eat combined per {time_unit,day}. How many {food,sandwiches} does this family eat in one {time_period,week}?\n\n#init:\n- name1 = sample([\"A father\", \"A grandfather\", \"An uncle\"])\n- name2 = sample([\"his wife\", \"his partner\", \"his spouse\"])\n- relation = sample([\"daughter\", \"son\", \"grandchild\"])\n- food = sample([\"pizzas\", \"burritos\", \"tacos\", \"sushi rolls\", \"hamburgers\"])\n- time_unit = sample([\"day\"])\n- time_period = sample([\"week\", \"month\"])\n- $frac = sample(fraction_alph)\n- $n1 = range(2, 8)\n- $n2 = range(2, 8)\n- $n3 = range(2, 8)\n\n#conditions:\n- (n1 + n2) * frac > 2\n- is_int((n1 + n2) * frac)\n\n#answer: ((n1 + n2) * (1+frac) - 1) * (7 if time_period == \"week\" else 30)",
"answer_annotated": "The number of {food} the first two eat in one {time_unit} is {n1} + {n2} = <<{n1}+{n2}={n1+n2}>>{n1+n2} {food}. The {relation} eats {n1+n2} * {frac} - 1= <<{n1+n2}*{frac}-1={-1+int((n1+n2)*frac)}>>{-1+int((n1+n2)*frac)} {food}.So, combined, they eat {n1+n2} + {-1+int((n1+n2)*frac)} = {n1+n2-1+int((n1+n2)*frac)} {food} each {time_unit}.\nThe number of {food} they eat in a {time_period} is {n1+n2-1+int((n1+n2)*frac)} * {7 if time_period == \"week\" else 30} = <<{n1+n2-1+int((n1+n2)*frac)}*{7 if time_period == \"week\" else 30}={(n1-1+n2+int((n1+n2)*frac))*(7 if time_period == \"week\" else 30)}>>{(n1-1+n2+int((n1+n2)*frac))*(7 if time_period == \"week\" else 30)} {food}.\n#### {(n1+n2+int((n1+n2)*frac)-1)*(7 if time_period == \"week\" else 30)}"
}