Skip to content

Commit fe9ed08

Browse files
author
Dylan Huang
committed
tasks 8-12
1 parent dca946e commit fe9ed08

File tree

10 files changed

+1386
-0
lines changed

10 files changed

+1386
-0
lines changed

tests/chinook/dataset/task_11/ground_truth.md

Lines changed: 575 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Analyze seasonal purchasing trends by customer country and genre preference.
2+
Show country, genre, month, average purchase value, customer count, and seasonal
3+
trend indicator.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
| customer_id | customer_name | genre_diversity_score | avg_track_price | total_spending | diversity_to_spending_ratio |
2+
| ----------- | --------------------- | --------------------- | ---------------------- | -------------- | --------------------------- |
3+
| 57 | Luis Rojas | 12 | 1.2268421052631579 | 46.62 | 0.25740025740025740026 |
4+
| 45 | Ladislav Kovács | 11 | 1.2005263157894737 | 45.62 | 0.24112231477422183253 |
5+
| 14 | Mark Philips | 10 | 0.99000000000000000000 | 37.62 | 0.26581605528973950027 |
6+
| 34 | João Fernandes | 10 | 1.0426315789473684 | 39.62 | 0.25239777889954568400 |
7+
| 3 | François Tremblay | 10 | 1.0426315789473684 | 39.62 | 0.25239777889954568400 |
8+
| 17 | Jack Smith | 10 | 1.0426315789473684 | 39.62 | 0.25239777889954568400 |
9+
| 37 | Fynn Zimmermann | 10 | 1.1478947368421053 | 43.62 | 0.22925263640531866116 |
10+
| 24 | Frank Ralston | 10 | 1.1478947368421053 | 43.62 | 0.22925263640531866116 |
11+
| 27 | Patrick Gray | 9 | 0.99000000000000000000 | 37.62 | 0.23923444976076555024 |
12+
| 23 | John Gordon | 9 | 0.99000000000000000000 | 37.62 | 0.23923444976076555024 |
13+
| 21 | Kathy Chase | 9 | 0.99000000000000000000 | 37.62 | 0.23923444976076555024 |
14+
| 41 | Marc Dubois | 9 | 0.99000000000000000000 | 37.62 | 0.23923444976076555024 |
15+
| 19 | Tim Goyer | 9 | 1.01631578947368421053 | 38.62 | 0.23303987571206628690 |
16+
| 43 | Isabelle Mercier | 9 | 1.0689473684210526 | 40.62 | 0.22156573116691285081 |
17+
| 7 | Astrid Gruber | 9 | 1.1215789473684211 | 42.62 | 0.21116846550915063351 |
18+
| 6 | Helena Holý | 9 | 1.3057894736842105 | 49.62 | 0.18137847642079806530 |
19+
| 54 | Steve Murray | 8 | 0.99000000000000000000 | 37.62 | 0.21265284423179160021 |
20+
| 15 | Jennifer Peterson | 8 | 1.01631578947368421053 | 38.62 | 0.20714655618850336613 |
21+
| 58 | Manoj Pareek | 8 | 1.01631578947368421053 | 38.62 | 0.20714655618850336613 |
22+
| 1 | Luís Gonçalves | 8 | 1.0426315789473684 | 39.62 | 0.20191822311963654720 |
23+
| 4 | Bjørn Hansen | 8 | 1.0426315789473684 | 39.62 | 0.20191822311963654720 |
24+
| 22 | Heather Leacock | 8 | 1.0426315789473684 | 39.62 | 0.20191822311963654720 |
25+
| 5 | František Wichterlová | 8 | 1.0689473684210526 | 40.62 | 0.19694731659281142294 |
26+
| 25 | Victor Stevens | 8 | 1.1215789473684211 | 42.62 | 0.18770530267480056312 |
27+
| 46 | Hugh O'Reilly | 8 | 1.2005263157894737 | 45.62 | 0.17536168347216133275 |
28+
| 59 | Puja Srivastava | 7 | 1.01777777777777777778 | 36.64 | 0.19104803493449781659 |
29+
| 56 | Diego Gutiérrez | 7 | 0.99000000000000000000 | 37.62 | 0.18607123870281765019 |
30+
| 50 | Enrique Muñoz | 7 | 0.99000000000000000000 | 37.62 | 0.18607123870281765019 |
31+
| 32 | Aaron Mitchell | 7 | 0.99000000000000000000 | 37.62 | 0.18607123870281765019 |
32+
| 10 | Eduardo Martins | 7 | 0.99000000000000000000 | 37.62 | 0.18607123870281765019 |
33+
| 13 | Fernanda Ramos | 7 | 0.99000000000000000000 | 37.62 | 0.18607123870281765019 |
34+
| 38 | Niklas Schröder | 7 | 0.99000000000000000000 | 37.62 | 0.18607123870281765019 |
35+
| 2 | Leonie Köhler | 7 | 0.99000000000000000000 | 37.62 | 0.18607123870281765019 |
36+
| 16 | Frank Harris | 7 | 0.99000000000000000000 | 37.62 | 0.18607123870281765019 |
37+
| 39 | Camille Bernard | 7 | 1.01631578947368421053 | 38.62 | 0.18125323666494044537 |
38+
| 51 | Joakim Johansson | 7 | 1.01631578947368421053 | 38.62 | 0.18125323666494044537 |
39+
| 40 | Dominique Lefebvre | 7 | 1.01631578947368421053 | 38.62 | 0.18125323666494044537 |
40+
| 20 | Dan Miller | 7 | 1.0426315789473684 | 39.62 | 0.17667844522968197880 |
41+
| 42 | Wyatt Girard | 7 | 1.0426315789473684 | 39.62 | 0.17667844522968197880 |
42+
| 48 | Johannes Van der Berg | 7 | 1.0689473684210526 | 40.62 | 0.17232890201870999508 |
43+
| 44 | Terhi Hämäläinen | 7 | 1.0952631578947368 | 41.62 | 0.16818837097549255166 |
44+
| 26 | Richard Cunningham | 7 | 1.2531578947368421 | 47.62 | 0.14699706005879882402 |
45+
| 35 | Madalena Sampaio | 6 | 0.99000000000000000000 | 37.62 | 0.15948963317384370016 |
46+
| 33 | Ellie Sullivan | 6 | 0.99000000000000000000 | 37.62 | 0.15948963317384370016 |
47+
| 47 | Lucas Mancini | 6 | 0.99000000000000000000 | 37.62 | 0.15948963317384370016 |
48+
| 36 | Hannah Schneider | 6 | 0.99000000000000000000 | 37.62 | 0.15948963317384370016 |
49+
| 11 | Alexandre Rocha | 6 | 0.99000000000000000000 | 37.62 | 0.15948963317384370016 |
50+
| 18 | Michelle Brooks | 6 | 0.99000000000000000000 | 37.62 | 0.15948963317384370016 |
51+
| 31 | Martha Silk | 6 | 0.99000000000000000000 | 37.62 | 0.15948963317384370016 |
52+
| 30 | Edward Francis | 6 | 0.99000000000000000000 | 37.62 | 0.15948963317384370016 |
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Find customers with the most diverse music taste and their spending correlation.
2+
Calculate genre diversity score, average track price, total spending, and
3+
diversity-to-spending ratio.

0 commit comments

Comments
 (0)