Dataset Viewer
Auto-converted to Parquet Duplicate
input
stringclasses
94 values
output
stringclasses
94 values
Show all leads.
db.leads.find({})
Show all clients.
db.clients.find({})
How many properties are available?
db.properties.countDocuments({})
List all opportunities.
db.opportunities.find({})
Show all leads in Mumbai.
db.leads.find({{ city: 'Ahmedabad' }})
How many clients were converted by Priya?
db.clients.countDocuments({{ whoConverted: 'Priya' }})
Which properties are linked to Sunil?
db.properties.find({{ linkedClients: 'Rahul' }})
Show all opportunities in 'Win' status.
db.opportunities.find({{ status: 'Pending' }})
Show all high-priority leads in Ahmedabad.
db.leads.find({{ city: 'Delhi', priority: 'High' }})
Find all leads assigned to Rahul that were converted.
db.leads.find({{ assignedTo: 'Nishant', isConverted: true }})
List all Land properties linked to clients in Mumbai.
db.properties.find({{ type: 'Warehouse', linkedClients: {{ $in: db.clients.find({{ city: 'Ahmedabad' }}).map(c => c._id) }} }})
Show opportunities in 'Loss' status assigned by Nishant.
db.opportunities.find({{ whoLinkthis: 'Rahul', status: 'Win' }})
Which employee has converted the most leads?
db.leads.aggregate([{{ $group: {{ _id: '$whoConverted', count: {{ $sum: 1 }} }} }}, {{ $sort: {{ count: -1 }} }}, {{ $limit: 1 }}]])
Find all properties in Bangalore with a rental above 50,000.
db.properties.find({{ city: 'Surat', expectedRent: {{ $gte: 50000 }} }})
Which manager assigned the most leads in Surat?
db.leads.aggregate([{{ $match: {{ city: 'Delhi' }} }}, {{ $group: {{ _id: '$whoassign', count: {{ $sum: 1 }} }} }}, {{ $sort: {{ count: -1 }} }}, {{ $limit: 1 }}]])
Show all employees who have not been assigned any leads in the last 3 months.
db.users.find({{ _id: {{ $nin: db.leads.find({{ createdAt: {{ $gte: new Date(Date.now() - 90*24*60*60*1000) }} }}).map(l => l.assignedTo) }} }})
Find all properties that have been listed for more than 2 years without being linked to any client.
db.properties.find({{ createdAt: {{ $lte: new Date(Date.now() - 730*24*60*60*1000) }}, linkedClients: {{ $size: 0 }} }})
Which clients have linked properties but no active opportunities?
db.clients.find({{ linkedProperties: {{ $not: {{ $size: 0 }} }}, opportunities: {{ $size: 0 }} }})
Show all employees with overdue tasks.
db.tasks.find({{ status: 'Pending', dueDate: {{ $lte: new Date() }} }})
Find the most common city for lead conversion.
db.leads.aggregate([{{ $group: {{ _id: '$city', count: {{ $sum: 1 }} }} }}, {{ $sort: {{ count: -1 }} }}, {{ $limit: 1 }}]])
Show all leads.
db.leads.find({})
Show all clients.
db.clients.find({})
How many properties are available?
db.properties.countDocuments({})
List all opportunities.
db.opportunities.find({})
Show all leads in Mumbai.
db.leads.find({{ city: 'Mumbai' }})
How many clients were converted by Rahul?
db.clients.countDocuments({{ whoConverted: 'Nishant' }})
Which properties are linked to Priya?
db.properties.find({{ linkedClients: 'Sunil' }})
Show all opportunities in 'Loss' status.
db.opportunities.find({{ status: 'Pending' }})
Show all high-priority leads in Bangalore.
db.leads.find({{ city: 'Surat', priority: 'High' }})
Find all leads assigned to Rahul that were converted.
db.leads.find({{ assignedTo: 'Ramesh', isConverted: true }})
List all Office Space properties linked to clients in Ahmedabad.
db.properties.find({{ type: 'Warehouse', linkedClients: {{ $in: db.clients.find({{ city: 'Mumbai' }}).map(c => c._id) }} }})
Show opportunities in 'Win' status assigned by Rahul.
db.opportunities.find({{ whoLinkthis: 'Ramesh', status: 'Win' }})
Which employee has converted the most leads?
db.leads.aggregate([{{ $group: {{ _id: '$whoConverted', count: {{ $sum: 1 }} }} }}, {{ $sort: {{ count: -1 }} }}, {{ $limit: 1 }}]])
Find all properties in Surat with a rental above 50,000.
db.properties.find({{ city: 'Delhi', expectedRent: {{ $gte: 50000 }} }})
Which manager assigned the most leads in Surat?
db.leads.aggregate([{{ $match: {{ city: 'Delhi' }} }}, {{ $group: {{ _id: '$whoassign', count: {{ $sum: 1 }} }} }}, {{ $sort: {{ count: -1 }} }}, {{ $limit: 1 }}]])
Show all employees who have not been assigned any leads in the last 3 months.
db.users.find({{ _id: {{ $nin: db.leads.find({{ createdAt: {{ $gte: new Date(Date.now() - 90*24*60*60*1000) }} }}).map(l => l.assignedTo) }} }})
Find all properties that have been listed for more than 2 years without being linked to any client.
db.properties.find({{ createdAt: {{ $lte: new Date(Date.now() - 730*24*60*60*1000) }}, linkedClients: {{ $size: 0 }} }})
Which clients have linked properties but no active opportunities?
db.clients.find({{ linkedProperties: {{ $not: {{ $size: 0 }} }}, opportunities: {{ $size: 0 }} }})
Show all employees with overdue tasks.
db.tasks.find({{ status: 'Pending', dueDate: {{ $lte: new Date() }} }})
Find the most common city for lead conversion.
db.leads.aggregate([{{ $group: {{ _id: '$city', count: {{ $sum: 1 }} }} }}, {{ $sort: {{ count: -1 }} }}, {{ $limit: 1 }}]])
Show all leads.
db.leads.find({})
Show all clients.
db.clients.find({})
How many properties are available?
db.properties.countDocuments({})
List all opportunities.
db.opportunities.find({})
Show all leads in Ahmedabad.
db.leads.find({{ city: 'Mumbai' }})
How many clients were converted by Rahul?
db.clients.countDocuments({{ whoConverted: 'Sunil' }})
Which properties are linked to Nishant?
db.properties.find({{ linkedClients: 'Priya' }})
Show all opportunities in 'Win' status.
db.opportunities.find({{ status: 'Approved' }})
Show all high-priority leads in Mumbai.
db.leads.find({{ city: 'Bangalore', priority: 'High' }})
Find all leads assigned to Sunil that were converted.
db.leads.find({{ assignedTo: 'Nishant', isConverted: true }})
List all Land properties linked to clients in Ahmedabad.
db.properties.find({{ type: 'Warehouse', linkedClients: {{ $in: db.clients.find({{ city: 'Mumbai' }}).map(c => c._id) }} }})
Show opportunities in 'Pending' status assigned by Priya.
db.opportunities.find({{ whoLinkthis: 'Rahul', status: 'Loss' }})
Which employee has converted the most leads?
db.leads.aggregate([{{ $group: {{ _id: '$whoConverted', count: {{ $sum: 1 }} }} }}, {{ $sort: {{ count: -1 }} }}, {{ $limit: 1 }}]])
Find all properties in Surat with a rental above 50,000.
db.properties.find({{ city: 'Ahmedabad', expectedRent: {{ $gte: 50000 }} }})
Which manager assigned the most leads in Bangalore?
db.leads.aggregate([{{ $match: {{ city: 'Bangalore' }} }}, {{ $group: {{ _id: '$whoassign', count: {{ $sum: 1 }} }} }}, {{ $sort: {{ count: -1 }} }}, {{ $limit: 1 }}]])
Show all employees who have not been assigned any leads in the last 3 months.
db.users.find({{ _id: {{ $nin: db.leads.find({{ createdAt: {{ $gte: new Date(Date.now() - 90*24*60*60*1000) }} }}).map(l => l.assignedTo) }} }})
Find all properties that have been listed for more than 2 years without being linked to any client.
db.properties.find({{ createdAt: {{ $lte: new Date(Date.now() - 730*24*60*60*1000) }}, linkedClients: {{ $size: 0 }} }})
Which clients have linked properties but no active opportunities?
db.clients.find({{ linkedProperties: {{ $not: {{ $size: 0 }} }}, opportunities: {{ $size: 0 }} }})
Show all employees with overdue tasks.
db.tasks.find({{ status: 'Pending', dueDate: {{ $lte: new Date() }} }})
Find the most common city for lead conversion.
db.leads.aggregate([{{ $group: {{ _id: '$city', count: {{ $sum: 1 }} }} }}, {{ $sort: {{ count: -1 }} }}, {{ $limit: 1 }}]])
Show all leads.
db.leads.find({})
Show all clients.
db.clients.find({})
How many properties are available?
db.properties.countDocuments({})
List all opportunities.
db.opportunities.find({})
Show all leads in Bangalore.
db.leads.find({{ city: 'Mumbai' }})
How many clients were converted by Nishant?
db.clients.countDocuments({{ whoConverted: 'Ramesh' }})
Which properties are linked to Sunil?
db.properties.find({{ linkedClients: 'Ramesh' }})
Show all opportunities in 'Loss' status.
db.opportunities.find({{ status: 'Approved' }})
Show all high-priority leads in Mumbai.
db.leads.find({{ city: 'Mumbai', priority: 'High' }})
Find all leads assigned to Sunil that were converted.
db.leads.find({{ assignedTo: 'Ramesh', isConverted: true }})
List all Showroom properties linked to clients in Surat.
db.properties.find({{ type: 'Land', linkedClients: {{ $in: db.clients.find({{ city: 'Mumbai' }}).map(c => c._id) }} }})
Show opportunities in 'Approved' status assigned by Rahul.
db.opportunities.find({{ whoLinkthis: 'Ramesh', status: 'Win' }})
Which employee has converted the most leads?
db.leads.aggregate([{{ $group: {{ _id: '$whoConverted', count: {{ $sum: 1 }} }} }}, {{ $sort: {{ count: -1 }} }}, {{ $limit: 1 }}]])
Find all properties in Delhi with a rental above 50,000.
db.properties.find({{ city: 'Mumbai', expectedRent: {{ $gte: 50000 }} }})
Which manager assigned the most leads in Delhi?
db.leads.aggregate([{{ $match: {{ city: 'Ahmedabad' }} }}, {{ $group: {{ _id: '$whoassign', count: {{ $sum: 1 }} }} }}, {{ $sort: {{ count: -1 }} }}, {{ $limit: 1 }}]])
Show all employees who have not been assigned any leads in the last 3 months.
db.users.find({{ _id: {{ $nin: db.leads.find({{ createdAt: {{ $gte: new Date(Date.now() - 90*24*60*60*1000) }} }}).map(l => l.assignedTo) }} }})
Find all properties that have been listed for more than 2 years without being linked to any client.
db.properties.find({{ createdAt: {{ $lte: new Date(Date.now() - 730*24*60*60*1000) }}, linkedClients: {{ $size: 0 }} }})
Which clients have linked properties but no active opportunities?
db.clients.find({{ linkedProperties: {{ $not: {{ $size: 0 }} }}, opportunities: {{ $size: 0 }} }})
Show all employees with overdue tasks.
db.tasks.find({{ status: 'Pending', dueDate: {{ $lte: new Date() }} }})
Find the most common city for lead conversion.
db.leads.aggregate([{{ $group: {{ _id: '$city', count: {{ $sum: 1 }} }} }}, {{ $sort: {{ count: -1 }} }}, {{ $limit: 1 }}]])
Show all leads.
db.leads.find({})
Show all clients.
db.clients.find({})
How many properties are available?
db.properties.countDocuments({})
List all opportunities.
db.opportunities.find({})
Show all leads in Delhi.
db.leads.find({{ city: 'Mumbai' }})
How many clients were converted by Nishant?
db.clients.countDocuments({{ whoConverted: 'Rahul' }})
Which properties are linked to Rahul?
db.properties.find({{ linkedClients: 'Sunil' }})
Show all opportunities in 'Pending' status.
db.opportunities.find({{ status: 'Loss' }})
Show all high-priority leads in Ahmedabad.
db.leads.find({{ city: 'Mumbai', priority: 'High' }})
Find all leads assigned to Nishant that were converted.
db.leads.find({{ assignedTo: 'Sunil', isConverted: true }})
List all Warehouse properties linked to clients in Ahmedabad.
db.properties.find({{ type: 'Retail', linkedClients: {{ $in: db.clients.find({{ city: 'Mumbai' }}).map(c => c._id) }} }})
Show opportunities in 'Loss' status assigned by Nishant.
db.opportunities.find({{ whoLinkthis: 'Nishant', status: 'Win' }})
Which employee has converted the most leads?
db.leads.aggregate([{{ $group: {{ _id: '$whoConverted', count: {{ $sum: 1 }} }} }}, {{ $sort: {{ count: -1 }} }}, {{ $limit: 1 }}]])
Find all properties in Ahmedabad with a rental above 50,000.
db.properties.find({{ city: 'Surat', expectedRent: {{ $gte: 50000 }} }})
Which manager assigned the most leads in Ahmedabad?
db.leads.aggregate([{{ $match: {{ city: 'Surat' }} }}, {{ $group: {{ _id: '$whoassign', count: {{ $sum: 1 }} }} }}, {{ $sort: {{ count: -1 }} }}, {{ $limit: 1 }}]])
Show all employees who have not been assigned any leads in the last 3 months.
db.users.find({{ _id: {{ $nin: db.leads.find({{ createdAt: {{ $gte: new Date(Date.now() - 90*24*60*60*1000) }} }}).map(l => l.assignedTo) }} }})
Find all properties that have been listed for more than 2 years without being linked to any client.
db.properties.find({{ createdAt: {{ $lte: new Date(Date.now() - 730*24*60*60*1000) }}, linkedClients: {{ $size: 0 }} }})
Which clients have linked properties but no active opportunities?
db.clients.find({{ linkedProperties: {{ $not: {{ $size: 0 }} }}, opportunities: {{ $size: 0 }} }})
Show all employees with overdue tasks.
db.tasks.find({{ status: 'Pending', dueDate: {{ $lte: new Date() }} }})
Find the most common city for lead conversion.
db.leads.aggregate([{{ $group: {{ _id: '$city', count: {{ $sum: 1 }} }} }}, {{ $sort: {{ count: -1 }} }}, {{ $limit: 1 }}]])
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
3