Datasets:

Modalities:
Text
Formats:
parquet
Languages:
English
ArXiv:
License:
Dataset Viewer
Auto-converted to Parquet Duplicate
articles
listlengths
4
10
sample_level
stringclasses
6 values
sql_type
stringclasses
6 values
focus
stringclasses
7 values
sql
stringlengths
30
258
template
stringclasses
356 values
question
stringlengths
37
277
answer
stringlengths
1
1.3k
label
stringclasses
1 value
prompt_full
dict
prompt_meta
dict
[ "29badecb02edb67248f0060f464f521be740f62b", "bb4d1beed701e7560030e0a5d30cf676f89afe92", "b50cb2b35281fcb0ca717069f65e3e1c49e3dcd3", "661dc6fefab7f3a0a3d065e85606a0b0a2152ded" ]
multi_ran_64
multi_ran_filtering_foo
author_list
SELECT author_name FROM article_author WHERE author_position % 2 = 0 ORDER BY author_name DESC;
SELECT author_name FROM article_author WHERE author_position % 2 = 0 ORDER BY author_name DESC;
List the names of authors who are in even positions in their respective author lists, sorted in descending order.
Yan Wang, Luke McNally, Louis M. Pecora, Ginestra Bianconi, Andrew L. Jackson, Ana P. Millán
training
{ "question": "List the names of authors who are in even positions in their respective author lists, sorted in descending order.", "context": "# Synchronization in Network Geometries with Finite Spectral Dimension\n\nAna P. Millán and Joaquín J. Torres\nDepartamento de Electromagnetismo y Física de la Materia and I...
{ "question": "List the names of authors who are in even positions in their respective author lists, sorted in descending order.", "table_articles_text": "article_id, article_title, title_word_count, author_count, reference_count\narticle_0, Synchronization in Network Geometries with Finite Spectral Dimension, 8, 3...
["150e4d981b9f2a374e526948267ca1c363b3b842","eca131416bf2434020f0c5766f6243fc5176edd2","639d67e83ce5(...TRUNCATED)
multi_bfs_64
multi_graph_filtering
citation_relationship
"SELECT article_title FROM articles WHERE article_id IN (SELECT article_id_cited FROM citing_cited G(...TRUNCATED)
"SELECT article_title FROM articles WHERE article_id IN (SELECT article_id_cited FROM citing_cited G(...TRUNCATED)
What is the title of the article that has the most citations?
Degenerate n-Doping of Few-Layer Transition Metal Dichalcogenides by Potassium
training
{"question":"What is the title of the article that has the most citations?","context":"# Low Resista(...TRUNCATED)
{"question":"What is the title of the article that has the most citations?","table_articles_text":"a(...TRUNCATED)
["b1174da5be87881b0d2f89eb1b512d3932be4dbb","80376bdec5f534be78ba82821f540590ebce5559","6be83aa328b6(...TRUNCATED)
multi_ran_64
multi_ran_filtering_ofo
title_entire
SELECT article_title FROM articles WHERE reference_count <> 41;
SELECT article_title FROM articles WHERE reference_count <> {reference-count};
What are the titles of articles that do not have exactly 41 references?
"Multi-terminal transport measurements of MoS2 using a van der Waals heterostructure device platform(...TRUNCATED)
training
{"question":"What are the titles of articles that do not have exactly 41 references?","context":"# M(...TRUNCATED)
{"question":"What are the titles of articles that do not have exactly 41 references?","table_article(...TRUNCATED)
["5324abe759a5abaacdbc6cddc40025196400ede9","c18c53446cd73ffbbd3efa0f3157fd8ba530d5ce","7d9c0a136034(...TRUNCATED)
multi_bfs_64
multi_graph_filtering
citation_relationship
"SELECT reference_count FROM articles WHERE article_id IN (SELECT article_id_cited FROM citing_cited(...TRUNCATED)
"SELECT reference_count FROM articles WHERE article_id IN (SELECT article_id_cited FROM citing_cited(...TRUNCATED)
What is the reference count of the article that has been cited the most number of times?
42
training
{"question":"What is the reference count of the article that has been cited the most number of times(...TRUNCATED)
{"question":"What is the reference count of the article that has been cited the most number of times(...TRUNCATED)
["bd87b2fe1250f2e59f33b63df209c7376b4d1a5c","79ed9142e0a503055b5c4a4c4b77d1b5983eba6e","639d67e83ce5(...TRUNCATED)
multi_bfs_64
multi_graph_filtering
citation_relationship
"SELECT author_count FROM articles WHERE article_id IN (SELECT article_id_cited FROM citing_cited GR(...TRUNCATED)
"SELECT author_count FROM articles WHERE article_id IN (SELECT article_id_cited FROM citing_cited GR(...TRUNCATED)
How many authors wrote the most-cited article?
7
training
{"question":"How many authors wrote the most-cited article?","context":"# Graphene-assisted metal tr(...TRUNCATED)
{"question":"How many authors wrote the most-cited article?","table_articles_text":"article_id, arti(...TRUNCATED)
["ce7955be003a942b11e381fcc0dfac2ee161f56e","4941e56b145a3b7719766916cc9a65940cdb55b2","8a44a59ec87b(...TRUNCATED)
multi_bfs_64
multi_graph_filtering
author_relationship
"SELECT MAX(reference_count) FROM articles WHERE article_id IN (SELECT DISTINCT article_id FROM arti(...TRUNCATED)
"SELECT MAX(reference_count) FROM articles WHERE article_id IN (SELECT DISTINCT article_id FROM arti(...TRUNCATED)
What is the highest number of references cited in any article written by Andre Mkhoyan?
48
training
{"question":"What is the highest number of references cited in any article written by Andre Mkhoyan?(...TRUNCATED)
{"question":"What is the highest number of references cited in any article written by Andre Mkhoyan?(...TRUNCATED)
["10885036a5ade094ad54fcbb1b1c50e67f3af9db","10e1053f038910aa2b84f974928a69458f5dfbd4","e68cf52268b4(...TRUNCATED)
multi_ran_64
multi_ran_filtering_foa
title_entire
SELECT COUNT(article_title) FROM articles WHERE title_word_count < 11;
SELECT COUNT(article_title) FROM articles WHERE title_word_count < {title-word-count};
How many articles have titles with fewer than 11 words?
2
training
{"question":"How many articles have titles with fewer than 11 words?","context":"# Complex-amplitude(...TRUNCATED)
{"question":"How many articles have titles with fewer than 11 words?","table_articles_text":"article(...TRUNCATED)
["ffbec5d34fcd1cabd0d3d3b225a50357c9ae05b1","15ff202be9f44e88594544a7f40335bc23bae4a3","dfa1802dfddb(...TRUNCATED)
multi_dfs_64
multi_graph_filtering
author_relationship
"SELECT DISTINCT author_name FROM article_author WHERE article_id IN (SELECT DISTINCT article_id FRO(...TRUNCATED)
"SELECT DISTINCT author_name FROM article_author WHERE article_id IN (SELECT DISTINCT article_id FRO(...TRUNCATED)
"What are the distinct names of authors who have contributed to articles with titles containing exac(...TRUNCATED)
John A. Hodge, Kumar Vijay Mishra, Amir I. Zaghloul
training
{"question":"What are the distinct names of authors who have contributed to articles with titles con(...TRUNCATED)
{"question":"What are the distinct names of authors who have contributed to articles with titles con(...TRUNCATED)
["a6d3dd9b1f5302658913751507c772e112b0b37e","6c8a8aca59863f735c1c99cad6c36823b1712420","73fee46459f4(...TRUNCATED)
multi_ran_64
multi_ran_filtering_foo
title_word_count
"SELECT title_word_count FROM articles WHERE author_count BETWEEN 2 AND 5 ORDER BY author_count DESC(...TRUNCATED)
"SELECT title_word_count FROM articles WHERE author_count BETWEEN 2 AND 5 ORDER BY author_count DESC(...TRUNCATED)
"What are the word counts of the titles of articles that have between 2 and 5 authors, sorted by the(...TRUNCATED)
3, 6
training
{"question":"What are the word counts of the titles of articles that have between 2 and 5 authors, s(...TRUNCATED)
{"question":"What are the word counts of the titles of articles that have between 2 and 5 authors, s(...TRUNCATED)
["a2e0740b160f40ec79e0531552de36d64b754bcb","655ae2cdf23d90b04bf594331b30ec6c78bae9dc","e23f0eeb8282(...TRUNCATED)
multi_ran_64
multi_ran_filtering_ofo
title_entire
SELECT article_title FROM articles WHERE reference_count = 26;
SELECT article_title FROM articles WHERE reference_count = {reference-count};
What are the titles of articles that cite exactly 26 references?
Controlling interdependent meso-nanosecond dynamics and defect generation in metal 3D printing
training
{"question":"What are the titles of articles that cite exactly 26 references?","context":"# Controll(...TRUNCATED)
{"question":"What are the titles of articles that cite exactly 26 references?","table_articles_text"(...TRUNCATED)
End of preview. Expand in Data Studio

The SciTrek dataset for long-context numerical reasoning over scientific articles.

For more details, refer to our paper (https://arxiv.org/abs/2509.21028) and the code repo (https://github.com/oaimli/SciTrek/).

If you have any problems when using the dataset, feel free to contact us at miao.li@ed.ac.uk.

How to use the dataset?

from datasets import load_dataset

dataset = load_dataset("oaimli/scitrek")
train_dataset = dataset["train"]
dev_dataset = dataset["val"]
test_dataset = dataset["test"]
print(len(train_dataset), len(dev_dataset), len(test_dataset))

# full-text contexts, direct answer generation
for sample in test_dataset:
    prompt_full = sample["prompt_full"]
    question = prompt_full["question"]
    answer = prompt_full["answer"]
    context = prompt_full["context"]
    instruction = prompt_full["instruction_direct"]
    instruction = instruction.replace("<question>", question)
    prompt_content = instruction.replace("<articles>", context)
    conversation = [{"role": "user", "content": prompt_content}]

# full-text contexts, chain-of-thought prompting
for sample in test_dataset:
    prompt_full = sample["prompt_full"]
    question = prompt_full["question"]
    answer = prompt_full["answer"]
    context = prompt_full["context"]
    instruction = prompt_full["instruction_reasoning"]
    instruction = instruction.replace("<question>", question)
    prompt_content = instruction.replace("<articles>", context)
    conversation = [{"role": "user", "content": prompt_content}]

# metadata contexts, direct answer generation
for sample in test_dataset:
    prompt_meta = sample["prompt_meta"]
    question = prompt_meta["question"]
    answer = prompt_meta["answer"]
    table_articles_text = prompt_meta["table_articles_text"]
    table_article_author_text = prompt_meta["table_article_author_text"]
    table_citing_cited_text = prompt_meta["table_citing_cited_text"]

    instruction = prompt_meta["instruction_direct"]
    instruction = instruction.replace("<question>", question)
    instruction = instruction.replace("<table-articles>", table_articles_text)
    instruction = instruction.replace("<table-article_author>", table_article_author_text)
    instruction = instruction.replace("<table-citing_cited>", table_citing_cited_text)
    prompt_content = instruction
    conversation = [{"role": "user", "content": prompt_content}]

# metadata contexts, chain-of-thought prompting
for sample in test_dataset:
    prompt_meta = sample["prompt_meta"]
    question = prompt_meta["question"]
    answer = prompt_meta["answer"]
    table_articles_text = prompt_meta["table_articles_text"]
    table_article_author_text = prompt_meta["table_article_author_text"]
    table_citing_cited_text = prompt_meta["table_citing_cited_text"]

    instruction = prompt_meta["instruction_reasoning"]
    instruction = instruction.replace("<question>", question)
    instruction = instruction.replace("<table-articles>", table_articles_text)
    instruction = instruction.replace("<table-article_author>", table_article_author_text)
    instruction = instruction.replace("<table-citing_cited>", table_citing_cited_text)
    prompt_content = instruction
    conversation = [{"role": "user", "content": prompt_content}]
Downloads last month
3

Paper for oaimli/SciTrek