Skip to content
Back to skills

Tempqa Wd Eval

ASecurity

Probes a system's ability to perform temporal question answering over knowledge bases by generating correct answers or SPARQL queries. It specifically evaluates generalization across different knowledge bases (Wikidata vs. Freebase) and interpretability through fine-grained intermediate annotations like entity/relation linking and λ-expressions. Use when the user wants to benchmark on TempQA-WD, or asks about evaluating this task. Reports F1.

  • 3 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 11, 2026
researchpythongoexpressgitperformance

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill tempqa-wd-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tempqa Wd Eval?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Tempqa Wd Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-tempqa-wd-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-tempqa-wd-eval)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: tempqa-wd-eval
description: Probes a system's ability to perform temporal question answering over knowledge bases by generating correct answers or SPARQL queries. It specifically evaluates generalization across different knowledge bases (Wikidata vs. Freebase) and interpretability through fine-grained intermediate annotations like entity/relation linking and λ-expressions. Use when the user wants to benchmark on TempQA-WD, or asks about evaluating this task. Reports F1.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2201.05793
  bibtex_key: [REDACTED]
  confidence: high
---

# tempqa-wd-eval

> A Benchmark for Generalizable and Interpretable Temporal Question Answering over Knowledge Bases — Neelam et al. (2022) (arXiv:2201.05793, 2022)

## What this evaluates

Probes a system's ability to perform temporal question answering over knowledge bases by generating correct answers or SPARQL queries. It specifically evaluates generalization across different knowledge bases (Wikidata vs. Freebase) and interpretability through fine-grained intermediate annotations like entity/relation linking and λ-expressions.

## Datasets

- **TempQA-WD** — total 510; splits: dev (-1), test (-1); repo https://github.com/IBM/tempqa-wd

## Metrics

- `macro precision` — range: [0, 1]
  - Standard macro-averaged precision computed over gold vs. system-generated answers per question.
- `macro recall` — range: [0, 1]
  - Standard macro-averaged recall computed over gold vs. system-generated answers per question.
- `F1` **(primary)** — range: [0, 1]
  - Harmonic mean of macro precision and macro recall, computed as 2 * (precision * recall) / (precision + recall).

## Input / output format

**Input**: Natural language temporal questions targeting entities/relations in a knowledge base (Wikidata or Freebase).

**Output**: System-generated answers or SPARQL queries for each question.

## Scoring recipe

```python
precisions, recalls = [], []
for q in questions:
    gold = set(gold_answers[q])
    pred = set(system_answers[q])
    if len(gold) == 0: continue
    p = len(gold & pred) / len(pred) if len(pred) > 0 else 0
    r = len(gold & pred) / len(gold)
    precisions.append(p)
    recalls.append(r)
macro_p = sum(precisions) / len(precisions)
macro_r = sum(recalls) / len(recalls)
f1 = 2 * macro_p * macro_r / (macro_p + macro_r) if (macro_p + macro_r) > 0 else 0
```

## Common pitfalls

- The dataset is heavily skewed toward simple questions (471 simple vs. 39 complex), which can mask poor performance on complex temporal reasoning.
- Performance bottlenecks often lie in intermediate steps like entity and relation linking on Wikidata rather than the core temporal reasoning module.

## Evidence (verbatim from paper)

> We use GERBIL (Usbeck et al., 2019) to compute performance metrics from the pairs of gold answers and system generated answers from the pipeline. We use standard performance metrics typically used for KBQA systems, namely macro precision, macro recall and F1.

## Citation

```bibtex
@misc{neelam2022tempqa,
  title={A Benchmark for Generalizable and Interpretable Temporal Question Answering over Knowledge Bases},
  author={Neelam et al. (2022)},
  year={2022},
  note={arXiv:2201.05793}
}
```

- arXiv: 2201.05793

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.