Dataset Viewer
Auto-converted to Parquet
question
stringlengths
3
504
steps
sequencelengths
1
7
answer
float64
-99,997.96
100k
53/59+30
[ "30.89831" ]
30.9
75+88
[ "163" ]
163
(95/10)-(43-61)
[ "9.5--18", "9.5+18", "27.5" ]
27.5
28.35/9.61
[ "2.95005" ]
2.95
88.08/32.33
[ "2.7244" ]
2.72
12.79/88.26/93.45-43.18
[ "-43.17845" ]
-43.18
96.23/89.57-93.12*27.61
[ "-2569.96884" ]
-2,569.97
86+55
[ "141" ]
141
(89-83+18*49)/((10.93/46.46-20.69+70.15)/((9.73*95.65+10.65)/(81.55+47.9-88.03)-(52.42+37.36/55.7))+((48.31*18.33)-(36*12)*(31.48*99.61+80.22-82.04)/(29.94*22.87/51.32))-(65+69/63))
[ "888/(49.69526/(941.3245/41.42-53.09074)+(885.5223-432*3133.9028/13.34232)-66.09524)", "888/(49.69526/-30.36441+-100584.5376-66.09524)", "888/-100652.26947", "-0.00882" ]
-0.01
8*56
[ "448" ]
448
(((14-18+19*36)/(94.2*63.44)/(65/71-58)+(87+35))+(89-78+90)+((36/10/21/8)-(32+40)))/(27-35)-(77.54*97.38/54.08-97.0)+((46.89*92.16)+((82-82+17)/(61.95*77.97-37.43)))
[ "((680/5976.048/-57.08451+122)+101+(0.02143-72))/-8-42.62362+(4321.3824+(17/4792.8115))", "(121.99801+101+-71.97857)/-8-42.62362+(4321.3824+0.00355)", "151.01944/-8-42.62362+4321.38595", "4259.8849" ]
4,259.88
35.07+32.81-32.17/2.58
[ "55.41101" ]
55.41
32.64+92.41*43.61
[ "4062.6401" ]
4,062.64
50.24/52.73+25.1+49.56
[ "75.61278" ]
75.61
8-96
[ "-88" ]
-88
4/3
[ "1.33333" ]
1.33
(80.06*2.99)+(33+74*37)+(57.89+34.71+33.59)*(5.85+52.17)
[ "239.3794+2771+126.19*58.02", "10331.9232" ]
10,331.92
10.74*58.88*65.87+91.14
[ "41745.43094" ]
41,745.43
44.5+93.02*93.49
[ "8740.9398" ]
8,740.94
69*60
[ "4140" ]
4,140
87-60
[ "27" ]
27
76.16-7.83/97.92/16.31
[ "76.1551" ]
76.16
28.18-97.13
[ "-68.95" ]
-68.95
(82.27-10.19)-(26.14/84.24)+(38*44)
[ "72.08-0.3103+1672", "1743.7697" ]
1,743.77
66.9*32.31-31.46
[ "2130.079" ]
2,130.08
75.25/90.78*98.24+37.02
[ "118.4538" ]
118.45
52.04+65.98
[ "118.02" ]
118.02
13.34*95.62*61.97/16.94
[ "4666.30003" ]
4,666.3
82/81/74*74
[ "1.01235" ]
1.01
14.37*34.59+74.16/15.09
[ "501.97281" ]
501.97
69.36/84.99
[ "0.8161" ]
0.82
66/28
[ "2.35714" ]
2.36
39.71*15.58-93.13
[ "525.5518" ]
525.55
51.58*66.18/37.68
[ "90.59354" ]
90.59
32.64*56.05
[ "1829.472" ]
1,829.47
(((38-43)+(16.21/72.31/10.97*29.06))+((71+52+14)/(98.82*49.28)+(34-95/68)))*(12+63)
[ "((-5+0.59385)+(137/4869.8496+32.60294))*75", "(-4.40615+32.63107)*75", "28.22492*75", "2116.869" ]
2,116.87
61.82*39.02
[ "2412.2164" ]
2,412.22
79/47
[ "1.68085" ]
1.68
99-46
[ "53" ]
53
8+11
[ "19" ]
19
(72.68/66.72)*((18.75+6.52+26.9*34.61)/(15.61/22.95))
[ "1.08933*(956.279/0.68017)", "1.08933*1405.94116", "1531.53388" ]
1,531.53
15/49-86
[ "-85.69388" ]
-85.69
(82.51+69.78)-(88.23-3.13*74.48)
[ "152.29--144.8924", "152.29+144.8924", "297.1824" ]
297.18
(50.83/16.04-10.62+10.27)*((84/7+6)/(4.85-5.3)+(40/89/87-31))+(87.33*19.48/62.5)+(((60.53-34.01-53.46)/(78-29)-(10*39))+((57/31)*(22/3+44-71)-(24/69)+(74.59*53.53-94.44)))
[ "2.81895*(18.0/-0.45+-30.99483)+27.21901+((-26.94/49-390)+(1.83871*-19.66667-0.34783+3898.3627))", "2.81895*-70.99483+27.21901+(-390.5498+3861.85357)", "2.81895*-70.99483+27.21901+3471.30377", "3298.3919" ]
3,298.39
58.68/38.71+66.28+4.5
[ "72.29589" ]
72.3
6.98/66.43+24.12+88.35
[ "112.57507" ]
112.58
26+54*95-56
[ "5100" ]
5,100
30.99/82.95/78.77+71.96
[ "71.96474" ]
71.96
72.61-69.52*47.32
[ "-3217.0764" ]
-3,217.08
20.55-15.72*23.16
[ "-343.5252" ]
-343.53
66*30
[ "1980" ]
1,980
47/30
[ "1.56667" ]
1.57
61.97/82.45
[ "0.75161" ]
0.75
(30.62*22.42*16.91-88.39)-((1.29*54.23)+((56.25*77.88+7.54-76.57)/(25.6/68.22))/(83.39*31.2)-((31.46/43.91-10.8+35.55)*(78.26-39.64+70.73)*(7.31-53.9-8.63)/(48*8+83+62)))+(((12-33)+(75.9*34.08)+(34-66-31))-((43+98*58)-(41.43+66.97/90.72)*(76.71+60.58)*(41-59))/(83.78-94.43+28.94)/(74/31+28))
[ "11520.33176-(69.9567+(4311.72/0.37526)/2601.768-(25.46647*109.35*-55.22/529))+((-21+2586.672+-63)-(5727-42.16821*137.29*-18)/18.29/30.3871)", "11520.33176-(69.9567+11489.95363/2601.768--290.68878)+(2502.672-109933.92392/18.29/30.3871)", "11520.33176-(69.9567+11489.95363/2601.768+290.68878)+(2502.672-109933.92392/18.29/30.3871)", "11520.33176-365.06169+2304.87087", "13460.14094" ]
13,460.14
51+14/21
[ "51.66667" ]
51.67
23.56-86.47/64.95
[ "22.22867" ]
22.23
23.75+17.55+88.84
[ "130.14" ]
130.14
2.52*28.82
[ "72.6264" ]
72.63
7-81
[ "-74" ]
-74
97+3
[ "100" ]
100
14*55/27*76
[ "2167.40741" ]
2,167.41
32*33+67*7
[ "1525" ]
1,525
13*88-36
[ "1108" ]
1,108
38.55*96.88-13.68
[ "3721.044" ]
3,721.04
42+89*41
[ "3691" ]
3,691
18.0-98.7
[ "-80.7" ]
-80.7
68.99*22.13*61.82+30.4
[ "94414.00463" ]
94,414
57.43-56.75/9.46
[ "51.43106" ]
51.43
93.77*51.77
[ "4854.4729" ]
4,854.47
51.7/90.13/8.43
[ "0.06804" ]
0.07
(57.62+18.19+49.31)+(16.44-9.03/40.91)-(90.39+93.07+71.94-48.04)
[ "125.12+16.21927-207.36", "-66.02073" ]
-66.02
85/69
[ "1.23188" ]
1.23
81.99/36.47
[ "2.24815" ]
2.25
62-27*4/55
[ "60.03636" ]
60.04
69.38*71.71+31.3
[ "5006.5398" ]
5,006.54
(32.47+18.0*34.75/37.93)-(60+43-64-97)
[ "48.9609--58", "48.9609+58", "106.9609" ]
106.96
26.95/30.63-26.94
[ "-26.06014" ]
-26.06
(5.45-99.84)-(67.68/75.77)-(28-90-45)
[ "-94.39-0.89323--107", "-94.39-0.89323+107", "11.71677" ]
11.72
12.13-81.24/61.05+54.72
[ "65.51929" ]
65.52
52*52
[ "2704" ]
2,704
(53*66/78)+(16*74/55)+(28.17+79.43)
[ "44.84615+21.52727+107.6", "173.97342" ]
173.97
62/8
[ "7.75" ]
7.75
38+49
[ "87" ]
87
81.89+13.51-11.41
[ "83.99" ]
83.99
6+35
[ "41" ]
41
(65+9*16)+(63/6+79)+(53.43-31.4)+(23/2)
[ "209+89.5+22.03+11.5", "332.03" ]
332.03
88-4/92-8
[ "79.95652" ]
79.96
84-8/5/52
[ "83.96923" ]
83.97
72.09*40.93
[ "2950.6437" ]
2,950.64
17.54+76.99
[ "94.53" ]
94.53
59*81+53
[ "4832" ]
4,832
26.23/15.67-90.25
[ "-88.5761" ]
-88.58
81-99/42
[ "78.64286" ]
78.64
76.65/49.18
[ "1.55856" ]
1.56
41*66
[ "2706" ]
2,706
49.65-76.72*76.96
[ "-5854.7212" ]
-5,854.72
(6-17*38+73)-(80.92/10.7)/(49*30+88+62)
[ "-567-7.56262/1620", "-567.00467" ]
-567
44.37/42.07*15.97
[ "16.84309" ]
16.84
21.57*12.18-73.67-36.79
[ "152.2626" ]
152.26
19.69*42.06
[ "828.1614" ]
828.16
End of preview. Expand in Data Studio
YAML Metadata Warning: The task_categories "text2text-generation" is not in the official list: text-classification, token-classification, table-question-answering, question-answering, zero-shot-classification, translation, summarization, feature-extraction, text-generation, fill-mask, sentence-similarity, text-to-speech, text-to-audio, automatic-speech-recognition, audio-to-audio, audio-classification, audio-text-to-text, voice-activity-detection, depth-estimation, image-classification, object-detection, image-segmentation, text-to-image, image-to-text, image-to-image, image-to-video, unconditional-image-generation, video-classification, reinforcement-learning, robotics, tabular-classification, tabular-regression, tabular-to-text, table-to-text, multiple-choice, text-ranking, text-retrieval, time-series-forecasting, text-to-video, image-text-to-text, visual-question-answering, document-question-answering, zero-shot-image-classification, graph-ml, mask-generation, zero-shot-object-detection, text-to-3d, image-to-3d, image-feature-extraction, video-text-to-text, keypoint-detection, visual-document-retrieval, any-to-any, video-to-video, other

Primary School Maths-500k Dataset

This repository contains a synthetic dataset of arithmetic expressions designed for fifth-grade level practice. The dataset is formatted in JSON and includes both the step-by-step intermediate results and the final rounded answer.


Dataset Overview

  • Purpose: Provide a collection of basic arithmetic problems (addition, subtraction, multiplication, and division) that any fifth grader could solve.
  • Data Type: JSON file containing a list of problem instances.
  • Split: 90% training, 10% testing.

Data Format

Each entry in the JSON list has the following structure:

{
  "question": "<expression>",
  "steps": [
    "<intermediate step 1>",
    "<intermediate step 2>",
    ...
  ],
  "answer": <float or null>
}
  • question: A string containing the arithmetic expression, using Python syntax. Only the operators +, -, *, and / are used. Nested operations follow standard precedence rules, and chained division x/y/z is parsed as (x/y)/z.
  • steps: A list of strings capturing each major intermediate calculation (up to five decimal places). If a division by zero occurs at any step, the final step records an error message (e.g., "Division by Zero is not possible").
  • answer: The final result rounded to two decimal places, or null if the expression could not be evaluated (e.g., due to division by zero).

Numerical Precision

  • Intermediate results are computed and recorded with five decimal digits of precision.
  • Final answers are rounded to two decimal digits.
  • All absolute answers satisfy 0.005 < |answer| < 100000.

Value Range

  • All numeric values in the questions range from 1 to 100.
  • The final answer for each valid expression lies outside the interval [-0.005, 0.005] and within (-100000, 100000).

Train/Test Split

  • The dataset is split into 90% training and 10% testing subsets.

  • Filenames:

    • train.json — 90% of the data.
    • test.json — 10% of the data.

Examples

Valid expression:

{
  "question": "87*38",
  "steps": ["3306"],
  "answer": 3306
}

Expression with step-by-step precision:

{
  "question": "(61/48/90)/((17-38)+((83.34-14.71*41.33)-(10.36*1.72*36.11)-(56*53*98))+(23.72*49.97/77.8))+(43.88*30.28)",
  "steps": [
    "0.01412/(-21+(-524.6243-643.45131-290864)+15.23507)+1328.6864",
    "0.01412/(-21+-292032.07561+15.23507)+1328.6864",
    "0.01412/-292037.84054+1328.6864",
    "1328.6864"
  ],
  "answer": 1328.69
}

Division by zero:

{
  "question": "(36-27)/(98-98)",
  "steps": ["9/0" , "Division by Zero is not possible"],
  "answer": null
}

Licensing and Attribution

This dataset is released under the MIT license.


Downloads last month
16