Datasets:

Modalities:
Text
Formats:
parquet
License:
Dataset Viewer
Auto-converted to Parquet Duplicate
id
int64
540
1.04M
query
stringlengths
6
800
label
stringclasses
9 values
2,772
Jazakallah khair for the help!
greeting
12,767
آية الدين
quran_retrieval
4,519
How many days are in the month of Rajab this year?
islamic_calendar
9,051
What are the primary differences between the four main schools of Sunni jurisprudence (Madhabs)?
general_islamic
6,736
What were the main contributions of Al-Andalus to Islamic civilization?
general_islamic
79,924
ما هو الدعاء الذي يقال عند رؤية الهلال في بداية الشهر الهجري؟
dua_lookup
3,597
Salam, hope you're having a blessed day.
greeting
7,341
Does microblading eyebrows count as the forbidden type of tattooing in Islam?
fiqh_ruling
30,363
هل أذن العصر في الرياض؟
prayer_times
7,399
I feel a lot of anxiety and chest tightness, what should I recite to feel better?
dua_lookup
46,463
ما هي السور التي تبدأ بـ 'سبح' أو 'يسبح'؟
quran_retrieval
43,171
السلام عليكم ورحمة الله وبركاته
greeting
83,123
ما هو نصيب الأخت الشقيقة مع وجود ابنتين للمتوفى؟ هل تعتبر عصبة؟
inheritance_calculation
83,399
عندي ذهب عياره 21 بوزن 150 جرام، كم الزكاة المطلوبة عليه وكيف أحسبها؟
zakat_calculation
87,957
مات شخص وترك جده من جهة الأب وأخ شقيق، كيف يتم تقسيم الميراث بينهما؟
inheritance_calculation
8,267
I'm on a flight from London to Sydney; how do I determine the Qibla direction while moving?
general_islamic
8,672
Explain the significance of the migration (Hijrah) to Madinah for the early Muslim community.
general_islamic
5,445
Who was Bilal ibn Rabah and what was his role in early Islam?
general_islamic
70,311
هل التاتو المؤقت الذي يدوم لستة أشهر يمنع صحة الوضوء؟
fiqh_ruling
5,382
Full prayer schedule for Toronto for the month of Ramadan
prayer_times
81,526
كم نصاب زكاة الفضة بالريال السعودي اليوم؟ وهل يختلف عن الذهب؟
zakat_calculation
10,702
Is it haram to work as a software developer for a bank that deals with interest if I am not directly handling loans?
fiqh_ruling
32,191
متى يصادف عيد الفطر سنة 2026؟
islamic_calendar
122,919
الأرض اللي زرعتها قمح وسقيتها بماء المطر، كم أطلع منها زكاة؟ وهل أحسب تكاليف البذور والسماد؟
zakat_calculation
49,500
دعاء لشخص مريض تعبان جداً في المستشفى
dua_lookup
4,698
What's the exact time for Maghrib in New York today?
prayer_times
70,175
ما حكم استخدام بخاخ الربو أثناء الصيام في نهار رمضان؟
fiqh_ruling
67,113
ماذا يقول المسلم إذا رأى شيئاً أعجبه وخشي أن يحسده؟
dua_lookup
11,225
I missed several years of prayer in my youth, do I have to make them all up individually or is sincere repentance enough?
fiqh_ruling
86,078
كيف أحسب زكاة الراتب الشهري إذا كنت أصرف جزء وأدخر جزء بشكل مستمر؟
zakat_calculation
38,440
تفسير الآية 'ووجدك ضالاً فهدى'
general_islamic
78,367
كيفية حساب مواقيت الصلاة في المناطق التي لا تغيب فيها الشمس
prayer_times
47,997
من هو الإمام البخاري وكيف جمع صحيحه؟
general_islamic
7,246
Find me the verse that mentions the expansion of the heavens or the universe.
quran_retrieval
19,212
بارك الله فيكم
greeting
9,151
What is the specific dua mentioned in the sunnah for when someone is facing a very difficult task?
dua_lookup
10,048
My father died and left a wife, a daughter, and a brother. Does the brother get anything if there is a daughter?
inheritance_calculation
5,921
I need the verse regarding the obligation of fasting in Ramadan.
quran_retrieval
32,108
ما معنى اسم الله 'اللطيف'؟
general_islamic
94,404
توفى والدي وترك خلفه زوجة و3 أبناء و5 بنات وبيت واحد، كيف نوزع الإرث شرعاً؟
inheritance_calculation
65,540
هل يجوز بيع وشراء العملات الرقمية مثل البيتكوين؟
fiqh_ruling
13,230
My crypto portfolio is down 40% but still above the Nisab. Do I calculate Zakat based on the initial investment or the current low market value?
zakat_calculation
5,964
Is the concept of the 'Mahdi' agreed upon by both Sunnis and Shias?
general_islamic
43,233
اكتب الآية رقم ١٠٠ من سورة النساء
quran_retrieval
6,465
What is the concept of 'Tawakkul' and how does it differ from fatalism?
general_islamic
51,110
أريد اتجاه القبلة من موقعي الحالي بدقة
prayer_times
7,312
How does Islam view the prophets of the People of the Book, like Moses and Jesus?
general_islamic
46,345
متى أذان الفجر في مكة المكرمة غداً؟
prayer_times
9,378
Calculate the inheritance for a woman who passed away leaving a husband, a mother, and a full brother.
inheritance_calculation
37,252
تحويل من هجري لميلادي: 14 شعبان 1410
islamic_calendar
47,870
ما هي أركان الإيمان الستة بالتفصيل؟
general_islamic
9,011
If I accidentally ate something during a voluntary fast, do I have to make it up or just continue?
fiqh_ruling
8,154
What is the Shariah ruling on dropshipping where I don't own the inventory physically?
fiqh_ruling
7,490
Is it permissible to use gelatin-based medicine if no halal alternative exists?
fiqh_ruling
9,558
Can I combine Dhuhr and Asr prayers because I have back-to-back lectures at university and cannot leave?
fiqh_ruling
33,614
هل اليوم من الأيام البيض؟
islamic_calendar
150,653
عندي محل ملابس والبضاعة الموجودة قيمتها 100 ألف، بس علي ديون للموردين 30 ألف. أحسب الزكاة على المبلغ كامل ولا أخصم الدين؟
zakat_calculation
8,397
Is Zakat due on gold jewelry that is worn regularly or only on gold kept as an investment?
zakat_calculation
9,787
How do we split the money if the deceased left only a wife and a grandmother? Does the rest go to the state?
inheritance_calculation
12,286
I lent my brother $2,000 three years ago and I'm not sure if he'll ever pay it back. Do I include this in my Zakat calculation for this year?
zakat_calculation
3,576
Is it time to pray Dhuhr yet in Chicago?
prayer_times
6,534
Why does the date of Ramadan change every year in the Western calendar?
islamic_calendar
6,548
Is there a special phrase to say if I lose my keys and want to find them?
dua_lookup
10,484
Inheritance calculation for a man who died leaving a pregnant wife and his parents. Should we wait for the birth?
inheritance_calculation
5,904
How many times does the word 'Rahman' appear in the entire Quran?
quran_retrieval
118,418
هل يرث القاتل من مقتوله إذا كان القتل خطأ؟ وكيف يؤثر ذلك على تقسيم الميراث على بقية الورثة؟
inheritance_calculation
6,588
I am about to board a flight, is there a prayer specifically for travel?
dua_lookup
5,157
What is the meaning of the word 'Samad' in Surah Al-Ikhlas?
general_islamic
4,681
Is it true that tomorrow is the first of Muharram?
islamic_calendar
5,497
Provide the translation for the 255th verse of the 2nd Surah.
quran_retrieval
4,223
Which Hijri year corresponds to the year 622 AD?
islamic_calendar
35,176
ما هو سبب نزول سورة الكوثر؟
general_islamic
3,747
Give me the text of Surah Al-Imran, ayah 190.
quran_retrieval
105,724
ما حكم العمل في مطعم يقدم لحم الخنزير لكنني أعمل في المحاسبة فقط ولا ألمس الطعام؟
fiqh_ruling
79,924
حكم الصلاة خلف إمام يلحن في قراءة الفاتحة لحناً يغير المعنى؟
fiqh_ruling
9,524
A man died leaving a wife, two daughters, and a paternal uncle. How is the 100,000 USD distributed among them?
inheritance_calculation
6,550
Can you give me a list of the authentic morning adhkar for protection?
dua_lookup
11,182
What's the Zakat on a house I bought for investment purposes but haven't sold or rented out yet? It's just sitting there.
zakat_calculation
64,000
هل يجوز للمرأة السفر للحج بدون محرم في رفقة آمنة؟
fiqh_ruling
4,330
Show me the last two verses of Surah Al-Baqarah.
quran_retrieval
6,502
I have $5,000 in my savings account for over a year. How much Zakat do I owe?
zakat_calculation
7,017
How did Islamic ethics influence trade and commerce in the medieval period?
general_islamic
73,349
أريد الأذكار التي تقال بعد الانتهاء من الصلاة المفروضة
dua_lookup
62,472
هل يوجد ذكر معين يقال عند سماع صوت الريح القوية؟
dua_lookup
5,126
How many verses are in the shortest surah of the Quran?
quran_retrieval
59,141
متى ينتهي وقت صلاة العشاء الليلة في القاهرة؟
prayer_times
71,769
هل يقع الطلاق عبر رسائل الواتساب إذا كان الزوج غاضباً؟
fiqh_ruling
62,401
توفيت امرأة عن زوج وأم وأب، كم نصيب كل واحد منهم؟
inheritance_calculation
46,317
ما هي قصة أصحاب الكهف والعبرة منها؟
general_islamic
21,000
متى ليلة القدر 2025؟
islamic_calendar
31,955
سورة الملك كاملة مكتوبة
quran_retrieval
44,666
لماذا سمي عمر بن الخطاب بالفاروق؟
general_islamic
11,824
I own stocks worth $20k for long-term dividends, not for active trading. Do I pay on the total market value or just the dividends?
zakat_calculation
35,119
كم التاريخ اليوم بالهجري؟
islamic_calendar
30,342
كم عدد آيات سورة الكهف؟
general_islamic
92,855
ما الفرق بين المكي والمدني في القرآن الكريم من حيث الأسلوب والمواضيع؟
general_islamic
62,383
هل التصوف يعتبر جزءاً من السنة أم هو مذهب مستقل؟
general_islamic
55,801
صباح الخير، هل أنت متاح للرد على استفساري؟
greeting
4,982
How many minutes are left until the sunrise in Paris?
prayer_times
5,019
What is the Hijri equivalent of my birthday, June 15, 1992?
islamic_calendar
End of preview. Expand in Data Studio

Fanar-Sadiq Classifier Datasets

Fanar-Sadiq Classifier Datasets is a bilingual Arabic/English collection of query-classification datasets released with the paper “Fanar-Sadiq: A Multi-Agent Architecture for Grounded Islamic QA.”

The datasets support the routing components of Fanar-Sadiq, a multi-agent Islamic question-answering system that routes user queries to specialized modules such as retrieval-grounded Islamic QA, Quran retrieval, du'a lookup, prayer-time computation, Islamic calendar tools, zakat calculators, and inheritance calculators.

This repository contains two classifier datasets:

  1. Prompt classifier: a binary dataset for deciding whether a user query is Islamic or non-Islamic.
  2. Intent classifier: a fine-grained Islamic intent dataset for routing Islamic queries to the appropriate specialized component.

Dataset Summary

Subset Rows Task Labels
prompt classifier ~1.72k Binary Islamic query detection islamic, non_islamic
intent classifier 700 Fine-grained Islamic intent classification 9 Islamic intent labels

The data includes both Arabic and English queries, including naturally phrased, code-switched, short, long, factual, jurisprudential, conversational, and tool-oriented user requests.

Intended Use

This dataset is intended for research and development on:

  • Islamic query classification
  • Arabic/English text classification
  • Query routing for multi-agent or tool-augmented QA systems
  • Intent classification for religious-domain assistants
  • Evaluation of bilingual Islamic QA routing pipelines

Typical use cases include training or evaluating models that decide:

  • whether an incoming query should be handled by an Islamic QA system;
  • which specialized Islamic QA module should answer the query;
  • whether a query requires retrieval, deterministic computation, or structured tool use.

Dataset Subsets

1. Prompt Classifier

The prompt classifier subset is a binary classification dataset used to determine whether a query is related to Islamic content.

Schema

Field Type Description
id string Unique example identifier
query string User query in Arabic or English
label string Binary label: islamic or non_islamic

Labels

Label Description
islamic Query is related to Islam, Islamic knowledge, Quran, Hadith, fiqh, Islamic history, worship, religious practice, or Islamic-domain reasoning
non_islamic Query is general-purpose, unrelated to Islamic QA, or should be routed to a general assistant

Example

{
  "id": "268fe685",
  "query": "قارن بين تنظيم الحياة العامة وفق الشريعة الإسلامية والثقافة الغربية .",
  "label": "islamic"
}
{
  "id": "9c5eae33",
  "query": "لدي بنطالاً أبيض، ما لون القميص الذي يليق عليه؟",
  "label": "non_islamic"
}

2. Intent Classifier

The intent classifier subset is a fine-grained Islamic intent classification dataset used to route Islamic queries to specialized components in Fanar-Sadiq.

The dataset was created from real user queries, anonymized and filtered to remove personally identifying information. Each query was annotated by three independent annotators, and the final label was determined by majority vote.

Schema

Field Type Description
id string Unique example identifier
query string User query in Arabic or English
label string Final intent label selected by majority vote

Intent Labels

Label Description
fiqh_ruling Questions about Islamic legal rulings, permissibility, obligations, halal/haram, or jurisprudence
quran_retrieval Requests for Quranic verses, ayahs, surahs, Quran text, or Quran-related retrieval
general_islamic General Islamic knowledge, history, concepts, beliefs, personalities, events, or explanations
greeting Greetings, pleasantries, and short conversational openings
zakat_calculation Questions requiring zakat computation or zakat-related financial reasoning
inheritance_calculation Islamic inheritance/faraid questions requiring structured calculation
dua_lookup Requests for supplications, adhkar, or du'a for specific occasions
islamic_calendar Hijri/Gregorian conversion, Islamic dates, Ramadan/Eid dates, or Islamic events
prayer_times Prayer times, Qibla direction, sunrise/sunset, or location/time-based worship queries

Example

{
  "id": "2772",
  "query": "Jazakallah khair for the help!",
  "label": "greeting",
}
{
  "id": "83123",
  "query": "ما هو نصيب الأخت الشقيقة مع وجود ابنتين للمتوفى؟ هل تعتبر عصبة؟",
  "label": "inheritance_calculation",
}

Loading the Dataset

You can load the dataset with the Hugging Face datasets library.

from datasets import load_dataset

# List available configurations
# from datasets import get_dataset_config_names
# print(get_dataset_config_names("QCRI/Fanar-Sadiq-Classifier-Datasets"))

intent_ds = load_dataset(
    "QCRI/Fanar-Sadiq-Classifier-Datasets",
    name="intent classifier"
)

prompt_ds = load_dataset(
    "QCRI/Fanar-Sadiq-Classifier-Datasets",
    name="prompt classifier"
)

print(intent_ds)
print(prompt_ds)

Each subset currently contains a test split.

print(intent_ds["test"][0])
print(prompt_ds["test"][0])

Baseline Task Formulations

Binary Classification

For the prompt classifier subset:

Input: query
Output: islamic | non_islamic

Example:

Query: ما حكم الزكاة في الإسلام؟
Label: islamic

Multi-Class Intent Classification

For the intent classifier subset:

Input: query
Output: one of the 9 Islamic intent labels

Example:

Query: متى أذان الفجر في مكة المكرمة غداً؟
Label: prayer_times

Relationship to Fanar-Sadiq

Fanar-Sadiq is a bilingual Arabic/English multi-agent Islamic QA architecture. Instead of sending every query through a single retrieve-then-generate pipeline, Fanar-Sadiq first classifies the query and routes it to specialized components.

Examples of routes include:

  • retrieval-grounded fiqh and Islamic knowledge QA;
  • exact Quran verse lookup and Quran-related routing;
  • deterministic zakat and inheritance calculators;
  • prayer-time and Qibla tools;
  • Islamic calendar conversion and event lookup;
  • du'a lookup and greeting handling.

These datasets are designed to evaluate and support the routing layer of that architecture.

Annotation

Intent Classifier

The intent-classification dataset was developed from anonymized real user queries. Each query was labeled by three independent annotators into one of nine intent categories. The final label was selected by majority vote, and examples without majority agreement were discarded.

The released intent subset includes 700 examples with majority labels.

Prompt Classifier

The binary prompt-classifier dataset supports the orchestrator that decides whether a query should be routed to Fanar-Sadiq or to a general-purpose assistant. Queries labeled as Islamic are routed to the Islamic QA system; other queries are handled by a general assistant.

Ethical Considerations and Limitations

This dataset is intended for classifier training and evaluation, not for issuing religious rulings.

Important limitations:

  • The dataset contains user-style queries and may include sensitive religious, legal, social, or ethical topics.
  • Labels reflect the routing schema used by Fanar-Sadiq and should not be interpreted as religious judgments.
  • A query labeled fiqh_ruling means that the query asks about jurisprudence; it does not imply any answer or ruling.
  • Models trained on this dataset may make routing errors, especially for ambiguous, multi-intent, or code-switched queries.
  • Islamic legal questions may involve scholarly disagreement, madhhab-specific assumptions, local practice, and contextual details not present in the query.
  • This dataset should not be used as a replacement for qualified scholarly expertise.

Citation

If you use this dataset, please cite the Fanar-Sadiq paper:

@inproceedings{abbas2026fanarsadiq,
  title     = {{Fanar-Sadiq}: A Multi-Agent Architecture for Grounded Islamic QA},
  author    = {Abbas, Ummar and Ouzzani, Mourad and Eltabakh, Mohamed Y. and Sinan, Omar and Bhatia, Gagan and Mubarak, Hamdy and Hawasly, Majd and Hashim, Mohammed Qusay and Darwish, Kareem and Alam, Firoj},
  booktitle = {Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics},
  month     = jul,
  year      = {2026},
  address   = {San Diego, California, United States},
  publisher = {Association for Computational Linguistics},
  note      = {Accepted to ACL 2026}
}

License

This dataset is released under the Apache License 2.0.

Downloads last month
19

Collection including QCRI/Fanar-Sadiq-Bench