Datasets:
File size: 6,314 Bytes
34ff9ad ee5b518 34ff9ad ee5b518 3eae523 ee5b518 3eae523 ee5b518 3eae523 ee5b518 bc6fb3c ee5b518 925d02b ee5b518 34ff9ad ee5b518 34ff9ad ee5b518 34ff9ad ee5b518 34ff9ad ee5b518 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | ---
license: cc-by-4.0
task_categories:
- question-answering
language:
- en
tags:
- personal-data
- temporal-reasoning
- synthetic
size_categories:
- 10K<n<100K
configs:
- config_name: questions
data_files:
- split: train
path: questions/train.parquet
- split: validation
path: questions/validation.parquet
- split: test
path: questions/test.parquet
- config_name: personas
data_files:
- split: train
path: personas/data.parquet
- config_name: canonicalized_events
data_files:
- split: train
path: canonicalized_events/train.parquet
- split: validation
path: canonicalized_events/validation.parquet
- split: test
path: canonicalized_events/test.parquet
- config_name: observable_events
data_files:
- split: train
path: observable_events/train.parquet
- split: validation
path: observable_events/validation.parquet
- split: test
path: observable_events/test.parquet
pretty_name: PerQA
---
# PerQA
PerQA is a benchmark for question answering (QA) over personal data, which appears in heterogeneous form.
Each **persona** has demographic profile data, a canonicalized event log (structured events loadable via DBs), a corresponding **observable event** log (verbalized and thus realistic events, in natural surface forms), and natural-language questions answerable with SQL over those events.
Observable events stem from different source types: social media posts, calendar data, mails, workout history, streaming behavior (movies, tv series, music), and online purchases.
The QA system has to tap into those different personal data sources for answering questions that involve complexities such as joins, grouping, or temporal filters.
Please find further information, a demo and code for our ReQAP QA system on our project webpage: [https://reqap.mpi-inf.mpg.de](https://reqap.mpi-inf.mpg.de).
## Splits
The data is split at the persona and question level (personas and questions are unique within splits):
| Split | Personas | Questions (approx.) |
|-------|----------|---------------------|
| train | 12 | 14,300 |
| validation | 2 | 275 |
| test | 6 | 3,000 |
## Dataset configs
The dataset consists of four parts:
| Name | Description |
|--------|-------------|
| `questions` | NL questions with SQL queries and gold answers |
| `personas` | One row per persona; `profile` is a JSON string of the full profile object |
| `canonicalized_events` | Canonicalized events (for deriving the ground-truth) |
| `observable_events` | Derived observable events (realistic events in natural surface forms), linked via `canonicalized_event_id` |
## Loading
```python
from datasets import load_dataset
questions = load_dataset("pchristm/PerQA", "questions")
personas = load_dataset("pchristm/PerQA", "personas")
canonicalized = load_dataset("pchristm/PerQA", "canonicalized_events", split="train")
observable = load_dataset("pchristm/PerQA", "observable_events", split="test")
```
Filter events or questions for one persona:
```python
pid = "train_persona_0"
q = questions["train"].filter(lambda row: row["persona_id"] == pid)
events = canonicalized.filter(lambda row: row["persona_id"] == pid)
persona = json.loads(personas.filter(lambda row: row["persona_id"] == pid)[0]["profile"])
```
JSON columns (`answers`, `profile`, `event_data`, `properties_mentioned`) are stored as JSON strings in Parquet for schema stability. Parse them after loading:
```python
import json
row = questions["train"][0]
answers = json.loads(row["answers"]) if row["answers"] else None
```
## Questions schema
| Field | Type | Description |
|-------|------|-------------|
| `id` | string | Unique id, e.g. `train_persona_0-question_0` |
| `q_id` | int | Index within persona |
| `persona_id` | string | Split-local persona id |
| `original_persona` | string | Source pool id, e.g. `persona_22` |
| `split` | string | `train`, `validation`, or `test` |
| `question` | string | First-person natural-language question |
| `sql_query` | string | PostgreSQL query over event tables |
| `answers` | string (JSON) | Gold answer(s) as JSON array, or null; parse with `json.loads` |
| `reference_date` | string | Fixed eval date for `CURRENT_DATE` in SQL (`2024-11-25`) |
## Events schema
**Canonicalized events** (`canonicalized_events`):
| Field | Description |
|-------|-------------|
| `id` | Event id |
| `start_date`, `start_time`, `end_date`, `end_time` | Timestamps |
| `event_type` | e.g. `music_stream`, `meet_up`, `trip` |
| `event_data` | Parsed JSON payload (stored as JSON string in Parquet) |
| `persona_id`, `split` | Persona and split |
**Observable events** (`observable_events`): same columns plus `canonicalized_event_id` (links to canonicalized `id`) and `properties_mentioned` (list of canonicalized fields surfaced in this observation).
Canonicalized event types include `music_stream`, `movie_stream`, `meet_up`, `workout`, `online_purchase`, `tvseries_stream`, `trip`, `trip_highlight`, `annual_celebration`, `annual_doctor_appointment`, `oneoff_event`.
Observable types add derived channels such as `calendar`, `mail`, and `social_media`.
## Deriving ground-truth answers
SQL queries use PostgreSQL syntax and `CURRENT_DATE`. For reproducible evaluation, treat `reference_date` (`2024-11-25`) as the current date when executing queries.
Those SQL queries can be utilized to derive ground-truth answers based on the canonicalized events.
The canonicalized events should not be used during inference.
## Related Papers
```bibtex
@inproceedings{christmann2026perqa,
title = {PerQA: A Benchmark for Temporally Sensitive Questions on Heterogeneous Personal Data},
author = {Christmann, Philipp and Weikum, Gerhard},
booktitle = {Companion Proceedings of the ACM Web Conference 2026},
url = {https://dl.acm.org/doi/abs/10.1145/3774905.3795448},
pages = {1100--1106},
year = {2026}
}
@inproceedings{christmann2025recursive,
title = {Recursive Question Understanding for Complex Question Answering over Heterogeneous Personal Data},
author = {Christmann, Philipp and Weikum, Gerhard},
booktitle = {Findings of the Association for Computational Linguistics: ACL 2025},
url = {https://aclanthology.org/2025.findings-acl.939/},
pages = {18269--18288},
year = {2025}
}
``` |