Dataset Viewer
Auto-converted to Parquet Duplicate
instruction
float64
input
stringlengths
42
134
output
stringlengths
27
631
Unnamed: 3
stringclasses
1 value
null
How many potential clients found us through organic search results last month?
[{$match:{"medium":"organic","created_date":{$gte:ISODate("2025-04-01T00:00:00.000Z"),$lt:ISODate("2025-05-01T00:00:00.000Z")}}},{$count:"total_organic_leads_last_month"}]
null
null
Top 3 landing pages that generated the most Deals.
[{$match:{"landing_page":{$exists:true,$ne:null,$ne:""},"contact_status":"closed_won"}},{$group:{_id:"$landing_page",deal_count:{$sum:1}}},{$sort:{"deal_count":-1}},{$limit:3},{$project:{_id:0,landing_page:"$_id",deal_count:1}}]
null
null
Top 3 landing pages that generated the most MQLs.
[{$match:{"landing_page":{$exists:true,$ne:null,$ne:""},$or:[{"manual_qualified":"Lead"},{"manual_qualified":{$nin:["Lead","Not lead"]},"lead_status":"mql"}]}},{$group:{_id:"$landing_page",mql_count:{$sum:1}}},{$sort:{"mql_count":-1}},{$limit:3},{$project:{_id:0,landing_page:"$_id",mql_count:1}}]
[{$match:{lead_status:'mql',landing_page:{$ne:''}}},{$group:{_id:'$landing_page',mql_count:{$sum:1}}},{$sort:{mql_count:-1}},{$limit:3},{$project:{_id:0,landing_page:'$_id',mql_count:1}}]
null
Are more contacts created during working hours (e.g., from 9:00 AM to 5:00 PM) or outside of working hours?
[{$addFields:{creation_hour:{$hour:{date:"$created_date"}}}},{$addFields:{work_period:{$cond:{if:{$and:[{$gte:["$creation_hour",9]},{$lt:["$creation_hour",17]}]},then:"work_hours",else:"off_hours"}}}},{$group:{_id:"$work_period",count:{$sum:1}}},{$project:{_id:0,period:"$_id",contact_count:"$count"}}]
null
null
What are the top 5 campaigns by the number of generated contacts?
[{$match:{campaign:{$exists:true,$ne:null,$ne:""}}},{$group:{_id:"$campaign",contact_count:{$sum:1}}},{$sort:{contact_count:-1}},{$limit:5},{$project:{_id:0,campaign_name:"$_id",number_of_contacts:"$contact_count"}}]
null
null
What is the conversion rate (to MQL) for contacts from the 'Facebook Ads' channel?
[{$match:{channel:'Facebook Ads'}},{$addFields:{isMQL:{$cond:[{$eq:['$lead_status','mql']},true,{$cond:[{$eq:['$lead_status','not_mql']},false,{$cond:[{$in:['$manual_qualified',['AI Qualified','Lead']]},true,{$cond:[{$eq:['$manual_qualified','Not lead']},false,{$cond:[{$in:['$ai_qualified',['Qualified','Repeat Customer...
null
null
Is there a correlation between the length of a contact's message and their final status (e.g., 'deal won' or 'deal lost')?
[{$match:{contact_status:{$in:['closed_won','closed_lost']},message:{$exists:true,$type:'string'}}},{$addFields:{messageLength:{$strLenCP:'$message'}}},{$group:{_id:'$contact_status',count:{$sum:1},averageMessageLength:{$avg:'$messageLength'},stdDevMessageLength:{$stdDevPop:'$messageLength'},minMessageLength:{$min:'$me...
null
null
Is there a relationship between the specified traffic source and the average deal value?
[{$match:{source:{$exists:true,$ne:null,$ne:""},'case_value.value':{$exists:true,$type:"number"},contact_status:'closed_won'}},{$group:{_id:'$source',averageCaseValue:{$avg:'$case_value.value'},numberOfDeals:{$sum:1}}},{$project:{_id:0,source:'$_id',averageCaseValue:{$round:['$averageCaseValue',2]},numberOfDeals:'$numb...
null
null
How many total contact records do we have?
[{$count:"total_contacts"}]
null
null
How many contacts have an email address recorded?
[{$match:{email:{$exists:true,$ne:null,$ne:""}}},{$count:"contacts_with_email"}]
null
null
How many contacts have a phone number recorded?
[{$match:{phone:{$exists:true,$ne:null,$ne:""}}},{$count:"contacts_with_phone"}]
null
null
What is the total number of messages received from contacts?
[{$match:{message:{$exists:true,$ne:null,$ne:""}}},{$count:"total_messages_received"}]
null
null
From how many different platforms have contacts come?
[{$match:{platform:{$exists:true,$ne:null}}},{$group:{_id:"$platform"}},{$count:"distinct_platform_count"}]
null
null
In what different ways have contacts interacted with us (e.g., call, chat), and how many interactions of each type have been recorded?
[{$match:{type:{$exists:true,$ne:null,$ne:""}}},{$group:{_id:"$type",count:{$sum:1}}},{$project:{_id:0,interaction_type:"$_id",count:"$count"}},{$sort:{count:-1}}]
null
null
What are the top 5 services that contacts are most often interested in?
[{$match:{service:{$exists:true,$ne:null,$ne:""}}},{$group:{_id:"$service",count:{$sum:1}}},{$sort:{count:-1}},{$limit:5},{$project:{_id:0,service:"$_id",interest_count:"$count"}}]
null
null
What are the top 10 most common geographical locations of our contacts?
[{$match:{location:{$exists:true,$ne:null,$ne:""}}},{$group:{_id:"$location",count:{$sum:1}}},{$sort:{count:-1}},{$limit:10},{$project:{_id:0,location:"$_id",contact_count:"$count"}}]
null
null
What is the distribution of contacts by their AI-determined qualification status?
[{$match:{ai_qualified:{$exists:true,$ne:null,$ne:""}}},{$group:{_id:"$ai_qualified",count:{$sum:1}}},{$project:{_id:0,ai_qualification_status:"$_id",number_of_contacts:"$count"}},{$sort:{number_of_contacts:-1}}]
null
null
What is the distribution of contacts by their manually assigned qualification status?
[{"$match":{"lead_status":{"$nin":[null,""]}}},{"$group":{"_id":"$lead_status","count":{"$sum":1}}},{"$project":{"_id":0,"manual_qualification_status":"$_id","count":1}}]
null
null
What are the most common general methods of attracting contacts (e.g., advertising, organic search)?
[{"$group":{"_id":{"$cond":{"if":{"$in":["$medium",[null,""]]},"then":"Unknown","else":"$medium"}},"count":{"$sum":1}}},{"$project":{"_id":0,"medium":"$_id","count":1}},{"$sort":{"count":-1}}]
null
null
What are the most common specific traffic sources for contacts (e.g., Google, Facebook, a specific website)?
[{"$group":{"_id":{"$cond":{"if":{"$in":["$source",[null,""]]},"then":"Unknown","else":"$source"}},"count":{"$sum":1}}},{"$project":{"_id":0,"source":"$_id","count":1}},{"$sort":{"count":-1}}]
null
null
What are the most common broad marketing channels that attract contacts (e.g., Google Ads, organic search, social media advertising)?
[{"$group":{"_id":{"$cond":{"if":{"$in":["$channel",[null,""]]},"then":"Unknown","else":"$channel"}},"count":{"$sum":1}}},{"$project":{"_id":0,"channel":"$_id","count":1}},{"$sort":{"count":-1}}]
null
null
How many contacts first interacted with us via a specific web address?
[{"$group":{"_id":{"$cond":{"if":{"$in":["$landing_page",[null,""]]},"then":"Unknown","else":"$landing_page"}},"count":{"$sum":1}}},{"$project":{"_id":0,"landing_page":"$_id","count":1}},{"$sort":{"count":-1}}]
null
null
How many different initial web pages have attracted contacts to us?
[{"$group":{"_id":null,"distinct_landing_pages_set":{"$addToSet":{"$cond":{"if":{"$and":[{"$ne":["$landing_page",null]},{"$ne":["$landing_page",""]}]},"then":"$landing_page","else":"$$REMOVE"}}}}},{"$project":{"_id":0,"distinct_landing_pages_count":{"$size":"$distinct_landing_pages_set"}}}]
null
null
How many contacts have sent us messages with any content?
[{"$group":{"_id":null,"contacts_with_message_content":{"$sum":{"$cond":{"if":{"$and":[{"$ne":["$message",null]},{"$ne":["$message",""]}]},"then":1,"else":0}}}}},{"$project":{"_id":0,"contacts_with_message_content":1}}]
null
null
How many new contacts were registered last month?
[{"$group":{"_id":null,"new_contacts_last_month":{"$sum":{"$cond":{"if":{"$and":[{"$gte":["$created_date",{"$toDate":"2025-04-01T00:00:00.000Z"}]},{"$lt":["$created_date",{"$toDate":"2025-05-01T00:00:00.000Z"}]}]},"then":1,"else":0}}}}},{"$project":{"_id":0,"new_contacts_last_month":1}}]
null
null
How many contact records were modified yesterday?
[{"$group":{"_id":null,"contacts_updated_yesterday":{"$sum":{"$cond":{"if":{"$and":[{"$gte":["$updated_date",{"$toDate":"2025-05-25T00:00:00.000Z"}]},{"$lt":["$updated_date",{"$toDate":"2025-05-26T00:00:00.000Z"}]}]},"then":1,"else":0}}}}},{"$project":{"_id":0,"contacts_updated_yesterday":1}}]
null

No dataset card yet

Downloads last month
3