database stringclasses 139
values | target stringlengths 16 773 | Query stringlengths 16 128 |
|---|---|---|
restaurant_1 | db.Restaurant.findOne({ResName: 'Subway'}, {Rating: 1, _id: 0}) | اعرض رتبة أو تقييم مطعم Subway. |
formula_1 | db.races.aggregate([ { $match: { year: 2008, name: "Monaco Grand Prix" } }, { $lookup: { from: "results", localField: "raceId", foreignField: "raceId", as: "race_results" } }, { $unwind: "$race_results" }, { $group: { _id: null, max_fastestlapspeed: { $max: "$race_results.fastestLapSpeed" } } } , { $project: { _id: 0, ... | كم بلغت أعلى سرعة لأسرع لفة في سباق موناكو عام 2008؟ |
voter_2 | db.Student.find({Age: {$gt: 22}}, {Fname: 1, _id: 0}) | أدرج الاسم الأول لكل طالب يزيد عمره عن اثنين وعشرين عاماً. |
entrepreneur | db.entrepreneur.aggregate([ { $match: { $or: [ { Money_Requested: { $gt: 140000 } }, { Money_Requested: { $lt: 120000 } } ] } }, { $group: { _id: "$Investor", count: { $sum: 1 } } }, { $match: { count: { $gt: 1 } } }, { $project: { _id: 0, Investor: "$_id" } } ]) | من هم المستثمرون المشتركين بين رواد الأعمال الذين طلبوا أكثر من 140000 وأولئك الذين طلبوا أقل من 120000؟ |
machine_repair | db.technician.find({ technician_id: { $nin: db.repair_assignment.distinct("technician_id") } }, { Name: 1, _id: 0 }) | اعرض أسماء الفنيين الذين لم يتم تعيينهم لإصلاح أي آلات. |
bike_1 | db.station.find({}, {name: 1, lat: 1, city: 1}).sort({lat: 1}).limit(1) | حدد اسم وخط العرض والمدينة للمحطة التي تقع عند أدنى نقطة من خطوط العرض. |
store_1 | db.employees.aggregate([ { $lookup: { from: "customers", localField: "id", foreignField: "support_rep_id", as: "support_customers" } }, { $project: { _id: 0, first_name: 1, last_name: 1} }, { $sort: { support_customer_count: -1 } }, { $limit: 1 } ]) | من هو الموظف الذي له أكبر عدد من العملاء؟ قدم اسمه الكامل. |
movie_1 | db.Rating.aggregate([ { $group: { _id: "$mID", avgRating: { $avg: "$stars" } } }, { $sort: { avgRating: -1 } }, { $limit: 1 }, { $lookup: { from: "Movie", localField: "_id", foreignField: "mID", as: "movieDetails" } }, { $unwind: "$movieDetails" }, { $project: { _id: 0, title: "$movieDetails.title", avgRating: 1 } } ]) | اعرض أسماء الأفلام مع أعلى متوسط تقييم لها. |
election | db.party.aggregate([ { $group: { _id: "$Governor", count: { $sum: 1 } } }, { $sort: { count: -1 } }, { $limit: 1 }, { $project: { _id: 0, Governor: "$_id" } } ]) | من هو الشخص الذي تولى منصب الحاكم أكثر من غيره؟ |
customers_card_transactions | db.Accounts.findOne({account_name: '338'}, {other_account_details: 1, _id: 0}) | حدد التفاصيل الأخرى لهذا الحساب. |
party_host | db.party.aggregate([ { $lookup: { from: "party_host", localField: "Party_ID", foreignField: "Party_ID", as: "party_host_info" } }, { $project: { Party_Theme: 1, Location: 1, _id: 0 } } ]) | ما هو ثيم ومكان كل حفلة؟ |
loan_1 | db.bank.find({}, {bname: 1, _id: 0}).sort({no_of_customers: -1}).limit(1) | أعد اسم البنك الذي يملك أكبر قاعدة عملاء. |
epinions_1 | db.item.aggregate([ { $lookup: { from: "review", localField: "i_id", foreignField: "i_id", as: "reviews" } }, { $project: { title: 1, i_id: 1} }, { $sort: { avgRating: -1 } }, { $limit: 1 } ]) | اعرض العنصر الأعلى تقييماً من حيث المتوسط، مع رقمه. |
chinook_1 | db.Track.aggregate([ { $group: { _id: null, maxDuration: { $max: "$Milliseconds" }, minDuration: { $min: "$Milliseconds" } } }, { $project: { _id: 0, maxDuration: 1, minDuration: 1 } } ]) | أوجد الحد الأقصى والأدنى لمدة المقاطع الموسيقية بالمللي ثانية. |
allergy_1 | db.Student.find({Age: {$gt: 20}}, {StuID: 1, _id: 0}) | ما هي أرقام الطلاب الذين تزيد أعمارهم عن 20 سنة؟ |
e_learning | db.Course_Authors_and_Tutors.find({}, {login_name: 1, family_name: 1, _id: 0}) | أدرج جميع أسماء الدخول وأسماء العائلات لمؤلفي الدورات والمعلمين. |
music_1 | db.song.find({}, {_id: 0, song_name: 1}).sort({resolution: 1}) | عرض كافة عناوين الأغاني مع ترتيبها من الأقل إلى الأعلى دقة. |
film_rank | db.film_market_estimation.find({Year: 1995}, {_id: 0, Type: 1}) | ما هي أنواع تقديرات سوق الأفلام في عام 1995؟ |
soccer_2 | db.College.find({ enr: { $gt: 10000 }, state: 'LA' }, { cName: 1, enr: 1, _id: 0 }) | ما هي الكليات في ولاية LA التي يتجاوز عدد المسجلين فيها عشرة آلاف طالب؟ |
hospital_1 | db.On_Call.find({BlockFloor: 1, BlockCode: 1}, {Nurse: 1, _id: 0}) | ما هي هوية طاقم التمريض المناوب (On Call) في الجناح 1، الطابق 1؟ |
loan_1 | db.customer.find( { no_of_loans: 0 }, { _id: 0, state: 1, acc_type: 1, credit_score: 1 } ) | حدد بيانات الدولة ونوع الحساب والـ credit score للعملاء الذين لم يقترضوا. |
bike_1 | db.trip.find({}, {id: 1, _id: 0}).sort({duration: 1}).limit(1) | حدد معرف الرحلة ذات المدة الأقصر. |
epinions_1 | db.useracct.aggregate([ { $lookup: { from: "review", localField: "u_id", foreignField: "u_id", as: "reviews" } }, { $unwind: "$reviews" }, { $group: { _id: "$u_id", name: { $first: "$name" }, averageRating: { $avg: "$reviews.rating" } } }, { $project: { _id: 0, name: 1, averageRating: 1 } } ]) | أظهر اسم المستخدم مع متوسط تقييم مراجعاته. |
csu_1 | db.degrees.aggregate([ { $group: { _id: "$Year", totalDegrees: { $sum: "$Degrees" } } }, { $sort: { totalDegrees: -1 } }, { $limit: 1 }, { $project: { _id: 0, Year: "$_id" } } ]) | اذكر السنة التي تم فيها إصدار أعلى عدد من الدرجات العلمية. |
movie_1 | db.Movie.aggregate([ { $sort: { year: 1 } }, { $limit: 1 }, { $lookup: { from: "Rating", localField: "mID", foreignField: "mID", as: "ratings" } }, { $project: { _id: 0, title: 1, averageStars: { $avg: "$ratings.stars" } } } ]) | ما هو متوسط تقييم النجوم وعنوان أقدم فيلم؟ |
cre_Doc_Tracking_DB | db.Roles.find({}, { Role_Code: 1, Role_Name: 1, Role_Description: 1, _id: 0 }) | أدرج جميع رموز الأدوار وأسماء الأدوار وأوصاف الأدوار. |
entrepreneur | db.entrepreneur.aggregate([ { $lookup: { from: "people", localField: "People_ID", foreignField: "People_ID", as: "entrepreneur_info" } }, { $unwind: "$entrepreneur_info" }, { $sort: { "entrepreneur_info.Weight": -1 } }, { $limit: 1 }, { $project: { _id: 0, Name: "$entrepreneur_info.Name" } } ]) | ما اسم رائد الأعمال الذي يملك أكبر وزن؟ |
college_1 | db.STUDENT.aggregate([ { $match: { STU_LNAME: { $regex: /^S/ } } }, { $lookup: { from: "ENROLL", localField: "STU_NUM", foreignField: "STU_NUM", as: "enrollment" } }, { $unwind: "$enrollment" }, { $lookup: { from: "CLASS", localField: "enrollment.CLASS_CODE", foreignField: "CLASS_CODE", as: "class" } }, { $unwind: "$cl... | أوجد اسم الطالب الذي يبدأ اسمه الأخير بـ S ويحضر فصل المحاسبة 211. |
decoration_competition | db.college.aggregate([ { $lookup: { from: "member", localField: "College_ID", foreignField: "College_ID", as: "members" } }, { $unwind: "$members" }, { $match: { "members.Country": "Canada" } }, { $group: { _id: "$Leader_Name" } }, { $project: { _id: 0, Leader_Name: "$_id" } } ]) | عرض أسماء القادة المميزين للكليات المرتبطة بأعضاء من دولة 'كندا'. |
document_management | db.Documents.aggregate([ { $group: { _id: null, averageAccessCount: { $avg: "$access_count" } } }, { $project: { _id: 0, averageAccessCount: 1 } } ]) | ما هو متوسط عدد مرات الوصول للمستندات؟ |
student_1 | db.list.find({ Classroom: 111 }, { LastName: 1, _id: 0 }) | أوجد ألقاب (أسماء العائلة) للطلاب الذين يدرسون في الغرفة 111. |
county_public_safety | db.city.find({}, {Name: 1, _id: 0}).sort({Name: 1}) | رتب أسماء المدن وفق الحروف الأبجدية. |
music_1 | db.song.aggregate([ { $lookup: { from: "files", localField: "f_id", foreignField: "f_id", as: "files_data" } }, { $match: { "files_data.formats": "mp3", resolution: { $lt: 1000 } } }, { $project: { _id: 0, song_name: 1 } } ]) | ما هي أسماء جميع الأغاني التي تتوفر بصيغة mp3 وبدقة أقل من 1000؟ |
game_injury | db.game.aggregate([ { $lookup: { from: "injury_accident", localField: "id", foreignField: "game_id", as: "injury_info" } }, { $match: { "injury_info.Player": "Walter Samuel" } }, { $project: { Season: 1, _id: 0 } } ]) | استرجع الموسم المرتبط بالمباراة التي حدثت فيها إصابة للاعب Walter Samuel. |
customers_card_transactions | db.Customers.find({}, {customer_id: 1, customer_first_name: 1, customer_last_name: 1, customer_phone: 1}) | اعرض المعرفات، الأسماء الأولى، الأسماء الأخيرة، وأرقام الهواتف لجميع العملاء. |
assets_maintenance | db.Maintenance_Engineers.aggregate([ { $lookup: { from: "Engineer_Visits", localField: "engineer_id", foreignField: "engineer_id", as: "visits" } }, { $match: { "visits": { $size: 0 } } }, { $project: { _id: 0, first_name: 1, last_name: 1 } } ]) | اعرض أسماء المهندسين الذين ليس لديهم أي زيارات مسجلة. |
university_basketball | db.university.aggregate([ { $lookup: { from: "basketball_match", localField: "School_ID", foreignField: "School_ID", as: "basketball_match" } }, { $unwind: "$basketball_match" }, { $sort: { "basketball_match.ACC_Percent": 1 } }, { $limit: 1 }, { $project: { _id: 0, Primary_conference: 1 } } ]) | اعرض المؤتمر الأساسي للمدرسة ذات أدنى نسبة ACC. |
musical | db.actor.find({age: {$ne: 20}}, {_id: 0, Name: 1}) | حدد أسماء الممثلين الذين ليسوا بعمر 20 سنة. |
customers_card_transactions | db.Customers.aggregate([ { $lookup: { from: "Accounts", localField: "customer_id", foreignField: "customer_id", as: "accounts" } }, { $match: { "accounts": { $eq: [] } } }, { $project: { _id: 0, customer_first_name: 1, customer_last_name: 1 } } ]) | حدد أسماء العملاء الذين لا يمتلكون أي حساب. |
manufactory_1 | db.Products.find({ Price: { $gte: 180 } }, { Name: 1, Price: 1, _id: 0 }).sort({ Price: -1, Name: 1 }) | استعرض المنتجات التي تكلفتها 180 أو أكثر بترتيب السعر التنازلي والاسم التصاعدي. |
chinook_1 | db.Album.aggregate([ { $lookup: { from: "Track", localField: "AlbumId", foreignField: "AlbumId", as: "tracks" } }, { $unwind: "$tracks" }, { $lookup: { from: "Genre", localField: "tracks.GenreId", foreignField: "GenreId", as: "genres" } }, { $unwind: "$genres" }, { $group: { _id: "$AlbumId", Title: { $first: "$Title" }... | ما هي الألبومات التي تحتوي على مقاطع من كلا النوعين Reggae وRock؟ |
customers_card_transactions | db.Customers_Cards.aggregate([ { $lookup: { from: "Customers", localField: "customer_id", foreignField: "customer_id", as: "customer_info" } }, { $unwind: "$customer_info" }, { $group: { _id: "$customer_id", firstName: { $first: "$customer_info.customer_first_name" }, lastName: { $first: "$customer_info.customer_last_n... | أظهر معرف واسم العميل الأول والأخير لجميع العملاء الذين لديهم بطاقتين أو أكثر. |
cre_Doc_Control_Systems | db.Documents.find({document_id: 2}, {document_type_code: 1, _id: 0}) | اعرض رمز نوع المستند للمستند ذو المعرف 2. |
cre_Doc_Tracking_DB | db.Employees.aggregate([ { $group: { _id: "$Role_Code", count: { $sum: 1 } } }, { $match: { count: { $gte: 3 } } }, { $project: { _id: 0, Role_Code: "$_id" } } ]) | اعرض جميع رموز الأدوار التي تضم 3 موظفين على الأقل. |
customers_card_transactions | db.Customers_Cards.aggregate([ { $group: { _id: "$customer_id", count: { $sum: 1 } } }, { $sort: { count: -1 } }, { $limit: 1 } ]) | أي عميل يمتلك أكثر البطاقات وعددها؟ |
medicine_enzyme_interaction | db.enzyme.find({Location: 'Cytosol'}, {_id: 0, Product: 1, Chromosome: 1, Porphyria: 1}) | اعرض Product وChromosome وPorphyria للإنزيمات المؤثرة في Cytosol. |
company_office | db.Companies.aggregate([ { $group: { _id: null, averageProfits: { $avg: "$Profits_billion" } } }, { $project: { _id: 0, averageProfits: 1} } ]) | ما هو متوسط أرباح الشركات؟ |
insurance_policies | db.Claims.aggregate([ { $group: { _id: null, averageAmountClaimed: { $avg: "$Amount_Claimed" } } }, { $lookup: { from: "Claims", let: { averageAmountClaimed: "$averageAmountClaimed" }, pipeline: [ { $match: { $expr: { $gt: ["$Amount_Claimed", "$$averageAmountClaimed"] } } }, { $project: { _id: 0, Date_Claim_Made: 1, Da... | استخرج قائمة بالمطالبات الأعلى من المتوسط، موضحاً تواريخ التقديم والإغلاق. |
hr_1 | db.employees.aggregate([ { $lookup: { from: "departments", localField: "DEPARTMENT_ID", foreignField: "DEPARTMENT_ID", as: "department_info" } }, { $unwind: "$department_info" }, { $group: { _id: "$department_info.DEPARTMENT_NAME", numEmployees: { $sum: 1 } } }, { $project: { _id: 0, department_name: "$_id", numEmploye... | استخرج قائمة بأسماء كافة الأقسام مع إجمالي عدد الموظفين لكل قسم. |
protein_institute | db.Institution.find( { $and: [ { Founded: { $gt: 1990 } }, { Enrollment: { $gte: 1000 } } ] }, { _id: 0, Type: 1 } ) | ما نوع المؤسسة التي تأسست بعد عام 1990 ولديها 1000 طالب أو أكثر؟ |
icfp_1 | db.Authorship.aggregate([ { $match: { authOrder: 1 } }, { $lookup: { from: "Authors", localField: "authID", foreignField: "authID", as: "authorInfo" } }, { $unwind: "$authorInfo" }, { $match: { "authorInfo.lname": "Ohori" } }, { $lookup: { from: "Inst", localField: "instID", foreignField: "instID", as: "instInfo" } }, ... | حدد الأوراق التي يكون المؤلف الأول تابعًا لمؤسسة في اليابان ولقبه Ohori. |
film_rank | db.film.aggregate([ { $group: { _id: "$Studio", count: { $sum: 1 } } }, { $sort: { count: -1 } }, { $limit: 1 }, { $project: { _id: 0, Studio: "$_id" } } ]) | ما هو الاستوديو الأكثر إنتاجاً للأعمال السينمائية؟ |
formula_1 | db.circuits.find({country: {$in: ['UK', 'Malaysia']}}, {_id: 0, name: 1}) | اعرض قائمة الحلبات الواقعة في UK أو Malaysia. |
climbing | db.climber.aggregate([ { $lookup: { from: "mountain", localField: "Mountain_ID", foreignField: "Mountain_ID", as: "mountain_info" } }, { $unwind: "$mountain_info" }, { $project: { _id: 0, "Name": "$Name", "Height": "$mountain_info.Height" } } ]) | استرجع أسماء المتسلقين مع ارتفاع الجبال المرتبطة بكل منهم. |
chinook_1 | db.Employee.aggregate([ { $group: { _id: "$City" } }, { $count: "distinct_cities_count" } ]) | ما هو مجموع المدن الفريدة التي يسكنها الموظفون؟ |
machine_repair | db.technician.aggregate([ { $group: { _id: "$Team", count: { $sum: 1 } } }, { $project: { _id: 0, Team: "$_id", count: 1 } } ]) | ما هي فرق الفنيين وعدد الأعضاء في كل فريق؟ |
apartment_rentals | db.Guests.find({}, {guest_first_name: 1, guest_last_name: 1, _id: 0}) | استرجع أسماء وألقاب جميع الضيوف. |
store_1 | db.albums.aggregate([ { $lookup: { from: "artists", localField: "artist_id", foreignField: "id", as: "artist_info" } }, { $unwind: "$artist_info" }, { $match: { "artist_info.name": "Aerosmith" } }, { $project: { _id: 0, title: 1 } } ]) | اعرض ألبومات فرقة Aerosmith. |
company_1 | db.dependent.find({ Relationship: 'Spouse' }, { Dependent_name: 1, _id: 0 }) | ما هي أسماء المعالين الذين علاقتهم زوج أو زوجة؟ |
voter_2 | db.Student.aggregate([ { $match: { Sex: 'F' } }, { $group: { _id: '$Major', count: { $sum: 1 } } }, { $sort: { count: -1 } }, { $limit: 1 } , { $project: { _id: 0, Major: "$_id" } }]) | أي قسم جامعي يحتوي على أعلى عدد من الطالبات؟ |
allergy_1 | db.Has_Allergy.aggregate([ { $group: { _id: "$StuID", count: { $sum: 1 } } }, { $match: { count: { $gte: 2 } } }, { $project: { _id: 0, StuID: "$_id" } } ]) | حدد الطلاب الذين لديهم على الأقل حساسية واحدة إضافية. |
allergy_1 | db.Student.findOne({LName: 'Kim'}, {city_code: 1, _id: 0}) | أين يسكن الطالب ذو الاسم العائلي Kim؟ |
college_2 | db.instructor.aggregate([ { $lookup: { from: "teaches", localField: "ID", foreignField: "ID", as: "teaching" } }, { $match: { teaching: { $size: 0 } } }, { $project: { _id: 0, ID: 1 } } ]) | من هم المدرسون الذين لم يقدموا أي محاضرة؟ أعطني أرقامهم. |
body_builder | db.body_builder.aggregate([ { $lookup: { from: "people", localField: "People_ID", foreignField: "People_ID", as: "builder_info" } }, { $replaceRoot: { newRoot: { $mergeObjects: [ { $arrayElemAt: ["$builder_info", 0] }, "$$ROOT" ] } } }, { $project: { _id: 0, builder_info: 0 } } ]) | استرجع كافة تفاصيل لاعبي كمال الأجسام. |
customer_deliveries | db.Customer_Addresses.aggregate([ { $lookup: { from: "Addresses", localField: "address_id", foreignField: "address_id", as: "address_info" } }, { $unwind: "$address_info" }, { $group: { _id: "$address_info.state_province_county", customerCount: { $sum: 1 } } }, { $project: { _id: 0, state: "$_id", numberOfCustomers: "$... | حدد عدد العملاء حسب الولاية مع ذكر اسم كل ولاية. |
driving_school | db.Vehicles.find({vehicle_id: 1}, {vehicle_details: 1, _id: 0}) | استعلم عن المعلومات التفصيلية للمركبة رقم 1. |
loan_1 | db.bank.aggregate([ { $match: { state: 'Utah' } }, { $group: { _id: null, avgNoOfCustomers: { $avg: "$no_of_customers" } } }, { $project: { _id: 0, avgNoOfCustomers: 1 } } ]) | أعد متوسط العملاء عبر كل البنوك في ولاية يوتا. |
loan_1 | db.customer.aggregate([ { $lookup: { from: "loan", localField: "cust_ID", foreignField: "cust_ID", as: "loan_info" } }, { $unwind: "$loan_info" }, { $match: { "loan_info.amount": { $gt: 3000 } } }, { $project: { _id: 0, cust_name: 1 } } ]) | حدد العملاء الذين اقترضوا أكثر من 3000. |
county_public_safety | db.city.aggregate([ { $match: { Black: { $gt: 10 } } }, { $project: { _id: 0, Hispanic: 1 } } ]) | أظهر نسبة السكان الهسبان للمدن التي فيها أكثر من 10% من السود. |
cre_Doc_Tracking_DB | db.Ref_Locations.find({Location_Name: 'Canada'}, {Location_Code: 1, _id: 0}) | أوجد كود الموقع لبلد 'Canada'. |
college_1 | db.STUDENT.aggregate([ { $group: { _id: "$DEPT_CODE", maxGPA: { $max: "$STU_GPA" }, avgGPA: { $avg: "$STU_GPA" }, minGPA: { $min: "$STU_GPA" } } }, { $project: { _id: 0, dept_code: "$_id", maxGPA: 1, avgGPA: 1, minGPA: 1 } } ]) | اعرض أقصى، أدنى ومتوسط GPA لكل قسم أكاديمي. |
voter_2 | db.Student.aggregate([ { $lookup: { from: "Voting_record", localField: "StuID", foreignField: "President_Vote", as: "PresidentVotes" } }, { $match: { "PresidentVotes": {$ne: []}, "Advisor": {$ne: '2192'} } }, { $group: { _id: "$LName" } }, { $project: { _id: 0, LName: "$_id" } } ]) | أوجد أسماء العائلة الفريدة لجميع الطلاب الذين لديهم أصوات للرئيس ومشرفهم ليس 2192. |
customers_and_invoices | db.Financial_Transactions.aggregate([ { $group: { _id: "$account_id", count: { $sum: 1 } } }, { $match: { count: { $gte: 4 } } }, { $lookup: { from: "Accounts", localField: "_id", foreignField: "account_id", as: "account" } }, { $project: { _id: 0, account_id: "$_id", account_name: { $arrayElemAt: ["$account.account_na... | ما هي الحسابات التي تحتوي على أربعة معاملات فأكثر؟ استرجع id واسم كل حساب. |
formula_1 | db.circuits.find( { country: { $in: ["France", "Belgium"] } }, { _id: 0, circuitId: 1, location: 1 } ) | اعرض أرقام الحلبات ومواقعها الموجودة في فرنسا أو بلجيكا. |
network_2 | db.Person.find({}, {name: 1, job: 1, _id: 0}).sort({name: 1}) | أدرج أسماء ووظائف جميع الأشخاص مرتبة حسب أسمائهم. |
sakila_1 | db.customer.aggregate([ { $lookup: { from: "rental", localField: "customer_id", foreignField: "customer_id", as: "rental_info" } }, { $unwind: "$rental_info" }, { $sort: { "rental_info.rental_date": 1 } }, { $limit: 1 }, { $project: { _id: 0, first_name: 1, last_name: 1 } } ]) | ما الاسم الأول والاسم الأخير للعميل الذي قام بأقدم عملية إيجار؟ |
hr_1 | db.jobs.find({ MIN_SALARY: { $gt: 9000 }}, { JOB_TITLE: 1, _id: 0 }) | أوجد قائمة بأسماء الوظائف التي يكون فيها الراتب الأدنى أكبر من 9000. |
college_2 | db.instructor.aggregate([ { $lookup: { from: "teaches", localField: "ID", foreignField: "ID", as: "teaching" } }, { $match: { teaching: { $size: 0 } } }, { $project: { _id: 0, ID: 1 } } ]) | اعرض معرفات الأساتذة الذين لم يقوموا بالتدريس. |
tracking_grants_for_research | db.Grants.aggregate([ { $match: { grant_amount: { $gt: 6000 } } }, { $group: { _id: "$organisation_id", total_grant_amount: { $sum: "$grant_amount" } } }, { $match: { total_grant_amount: { $gt: 6000 } } }, { $lookup: { from: "Organisations", localField: "_id", foreignField: "organisation_id", as: "organisation_details"... | ما هي المعرفات والتفاصيل لجميع المنظمات التي لديها منح تزيد عن 6000 دولار؟ |
sakila_1 | db.actor.aggregate([ { $group: { _id: { first_name: "$first_name", last_name: "$last_name" }, count: { $sum: 1 } } }, { $sort: { count: -1 } }, { $limit: 1 }, { $project: { _id: 0, first_name: "$_id.first_name", last_name: "$_id.last_name" } } ]) | ما الاسم الكامل الأكثر شيوعًا بين الممثلين؟ |
college_3 | db.Department.find({ Room: "268" }, { DPhone: 1, _id: 0 }) | أوجد أرقام تواصل الإدارات أو الأقسام في الـ Room 268. |
inn_1 | db.Rooms.find({ bedType: { $in: ['King', 'Queen'] } }, { roomName: 1, _id: 0 }) | ما هي أسماء الغرف ذات سرير كينغ أو كوين؟ |
company_1 | db.department.aggregate([ { $lookup: { from: "dept_locations", localField: "Dnumber", foreignField: "Dnumber", as: "locations" } }, { $match: { "locations.Dlocation": "Houston" } }, { $project: { Dname: 1, _id: 0 } } ]) | اعرض أسماء الأقسام الموجودة في مدينة هيوستن. |
network_2 | db.Person.find({ name: { $nin: db.PersonFriend.distinct("name") } }, { name: 1, _id: 0 }) | من هو الشخص الذي ليس لديه أي أصدقاء؟ |
soccer_2 | db.College.find({}, { _id: 0, cName: 1 }).sort({ enr: -1 }).limit(3) | استعرض قائمة بالثلاث مدارس الأعلى كثافة طلابية. |
flight_1 | db.flight.aggregate([ { $group: { _id: "$origin", count: { $sum: 1 } } }, { $sort: { count: -1 } }, { $limit: 1 }, { $project: { _id: 0, origin: "$_id" } } ]) | ما هي المدينة التي تنطلق منها أكبر عدد من الرحلات؟ |
department_store | db.Customer_Orders.find( { order_status_code: 'Cancelled' }, { order_id: 1, customer_id: 1, _id: 0 } ).sort({ order_date: 1 }) | ما هي أرقام الطلبات وهويات العملاء للطلبات التي حالتها 'Cancelled' مع ترتيبها زمنياً؟ |
insurance_fnol | db.Customers.aggregate([ { $lookup: { from: "Customers_Policies", localField: "Customer_ID", foreignField: "Customer_ID", as: "policies" } }, { $addFields: { policiesCount: { $size: "$policies" } } }, { $sort: { policiesCount: -1 } }, { $limit: 1 }, { $lookup: { from: "Available_Policies", localField: "policies.Policy_... | اعرض جميع أنواع البوالص المستخدمة من قبل العميل الذي يمتلك أكبر عدد من البوالص. |
sakila_1 | db.customer.aggregate([ { $lookup: { from: "rental", localField: "customer_id", foreignField: "customer_id", as: "rental_info" } }, { $unwind: "$rental_info" }, { $sort: { "rental_info.rental_date": 1 } }, { $limit: 1 }, { $project: { _id: 0, first_name: 1, last_name: 1 } } ]) | ما هو الاسم الأول والاسم الأخير للعميل الذي قام بأقدم إيجار؟ |
club_1 | db.Club.aggregate([ { $match: { ClubName: "Bootup Baltimore" } }, { $lookup: { from: "Member_of_club", localField: "ClubID", foreignField: "ClubID", as: "club_members" } }, { $unwind: "$club_members" }, { $group: { _id: null, uniqueRoles: { $addToSet: "$club_members.Position" } } }, { $project: { _id: 0, count: { $size... | احسب عدد المسميات الوظيفية (Positions) الفريدة في نادي Bootup Baltimore. |
entertainment_awards | db.nomination.aggregate([ { $lookup: { from: "artwork", localField: "Artwork_ID", foreignField: "Artwork_ID", as: "artwork_info" } }, { $lookup: { from: "festival_detail", localField: "Festival_ID", foreignField: "Festival_ID", as: "festival_info" } }, { $unwind: "$festival_info" }, { $project: { _id: 0, Name: "$artwor... | أظهر أسماء الأعمال الفنية مرتبة تصاعدياً حسب سنة الترشيح. |
allergy_1 | db.Student.find({StuID: 1004}, {Advisor: 1, _id: 0}) | من يشرف على الطالب الذي يحمل الرقم 1004؟ |
entrepreneur | db.people.aggregate([ { $lookup: { from: "entrepreneur", localField: "People_ID", foreignField: "People_ID", as: "entrepreneur_info" } }, { $match: { entrepreneur_info: { $size: 0 } } }, { $project: { _id: 0, Name: 1 } } ]) | ما أسماء الأشخاص الذين ليسوا رواد أعمال؟ |
insurance_and_eClaims | db.Claims_Processing_Stages.findOne({ Claim_Status_Name: 'Open' }, { Claim_Status_Description: 1, _id: 0 }) | ما هي تفاصيل حالة المطالبة المفتوحة 'Open'؟ |
game_1 | db.Video_Games.aggregate([ { $group: { _id: "$GType" }}, { $count: "distinct_game_types" } ]) | أوجد إحصائية لعدد أنواع ألعاب الفيديو المتنوعة. |
insurance_policies | db.Payments.find({}, {Payment_Method_Code: 1, Date_Payment_Made: 1, Amount_Payment: 1, _id: 0}).sort({Date_Payment_Made: 1}) | أدرج طريقة وتاريخ وقيمة جميع المدفوعات، مرتبة تصاعدياً حسب التاريخ. |
race_track | db.race.aggregate([ { $group: { _id: "$Class", count: { $sum: 1 } } }, { $sort: { count: -1 } }, { $limit: 1 }, { $project: { _id: 0, Class: "$_id" } } ]) | أظهر فئة السباقات ذات العدد الأكبر من السباقات. |
riding_club | db.player.aggregate([ { $lookup: { from: "player_coach", localField: "Player_ID", foreignField: "Player_ID", as: "player_coach" } }, { $unwind: "$player_coach" }, { $lookup: { from: "coach", localField: "player_coach.Coach_ID", foreignField: "Coach_ID", as: "coach" } }, { $unwind: "$coach" }, { $project: { _id: 0, Play... | اعرض أسماء اللاعبين وأسماء مدربيهم بترتيب تنازلي حسب أصوات اللاعبين. |
company_employee | db.company.aggregate([ { $group: { _id: "$Headquarters", count: { $sum: 1 } } }, { $sort: { count: -1 } }, { $limit: 1 }, { $project: { _id: 0, Headquarters: "$_id" } } ]) | اعرض المقر الرئيسي الأكثر شيوعاً بين الشركات. |
coffee_shop | db.shop.aggregate([ { $lookup: { from: "happy_hour", localField: "Shop_ID", foreignField: "Shop_ID", as: "happy_hours" } }, { $match: { "happy_hours": { $size: 0 } } }, { $project: { _id: 0, Address: 1, Num_of_staff: 1 } } ]) | ما هي المتاجر التي لا توجد بها happy hour؟ أظهر عنوانها وعدد موظفيها. |
Ar-DocSpider Dataset Description To address the lack of Arabic-language resources in the Text-to-NoSQL domain, we introduce Ar-DocSpider, the first Arabic-language adaptation of the DocSpider benchmark. The original DocSpider dataset represents a significant milestone: it transposes the multi-domain architecture of the renowned Spider benchmark (designed for SQL) into MongoDB’s non-relational formalism. DocSpider is not merely a simple database but a complex environment comprising 166 interconnected databases. It introduces NoSQL-specific challenges, such as managing nested documents, arrays, and aggregation pipelines ($lookup, $group, etc.). Its cross-domain nature allows testing a model’s ability to generate code for database schemas it has never encountered during training.
Methodology In this work, we made the methodological choice to preserve all target queries in MongoDB Query Language (MQL) as well as the original collection schemas (collections.json) to ensure the logical and technical validity of execution. Our contribution focused on translating, semantically verifying, and stylistically enriching the question statements from English to Arabic.
Dataset Splits Once the lexical augmentation and diversification process was completed, the consolidated dataset of 7,596 queries underwent standardized partitioning. We applied a strict 80%/10%/10% split to structure the deep learning phases:
Training Dataset (Train): Contains 6,086 examples (80% of the corpus), dedicated to fine-tuning the models.
Validation Dataset (Dev): Contains 755 examples (10% of the corpus), periodically used to monitor convergence and guide the selection of the best checkpoints.
Test Dataset (Test): Contains 755 examples (10% of the corpus), forming an independent evaluation environment to measure final performance and generalization capability.
Data Structure Each JSON file in these partitions adopts a standardized structure to ensure interoperability with fine-tuning frameworks. Every instance is represented as an object containing three key fields:
Database: The target database identifier, used for schema mapping.
Query: The Arabic question statement.
Target: The corresponding MQL query.
Credits and Acknowledgment This dataset is an Arabic adaptation of the original DocSpider benchmark.
Original Dataset: We acknowledge the work of the original authors who created DocSpider for the Text-to-NoSQL domain. The original benchmark and further details can be found here: https://github.com/arifgorkemozer/docspider/tree/main/docspider_ground_truth_dataset
Data Provenance: We have preserved the original collections.json and the corresponding MQL queries from the original DocSpider to ensure consistency and execution validity across all environments. Our contribution is strictly limited to the translation, semantic verification, and linguistic enrichment of the question statements in Arabic.
- Downloads last month
- 8