Datasets:
Questions
stringlengths 12
172
| Queries
stringlengths 41
313
|
---|---|
What is the IMDB rating of the movie Come and Get It ? | db.movies.find({"title": "Come and Get It"}, { "imdb.rating": 1}) |
What is the text description of the movie The Black Cat awards? | db.movies.find({"title":"The Black Cat"}, {"awards.text":1}) |
Was the movie Smilin' Through well received by audiences and critics? | db.movies.find({"title":"Smilin' Through"}, {"tomatoes.viewer": 1,"tomatoes.critic":1}) |
What is the language of the film A Free Soul? | db.movies.find({"title":"A Free Soul"}, {"languages":1}) |
Has Miss Lulu Bett won any awards? If so, which ones? | db.movies.find({"title":"Miss Lulu Bett","awards.wins": {"$gt": 0}}, {"awards.text": 1}) |
What is the MPAA rating of Pandora's Box? | db.movies.find({"title":"Pandora's Box"}, {"rated":1}) |
who stars in the movie Captains Courageous? | db.movies.find({"title": "Captains Courageous"}, {"cast": 1}) |
How many nominations did the movie The Life of Emile Zola receive? | db.movies.find({"title":"The Life of Emile Zola"}, {"awards.nominations":1}) |
What is the box office revenue for the movie 'Alice Adams'? | db.movies.find({"title": "Alice Adams"}, {"tomatoes.boxOffice": 1}) |
How did the audience and critics receive the movie Bride of Frankenstein? | db.movies.find({"title":"Bride of Frankenstein"}, {"tomatoes.viewer": 1,"tomatoes.critic":1}) |
What type of movie is She ? | db.movies.find({"title":"She"}, {"genres":1}) |
How many reviews did the movie The Iron Horse receive on Rotten Tomatoes? | db.movies.find({"title":"The Iron Horse"}, {"tomatoes.viewer.numReviews": 1,"tomatoes.critic.numReviews":1}) |
What are the countries associated with the movie Freaks ? | db.movies.find({"title": "Freaks"}, {"countries": 1}) |
what was the release date of the film Applause? | db.movies.find({"title": "Applause"}, {"released": 1}) |
who was the film The Docks of New York written by? | db.movies.find({"title": "The Docks of New York"}, {"writers": 1}) |
who are the actors in the film Freaks? | db.movies.find({"title": "Freaks"}, {"cast": 1}) |
what is the plot for The Big Trail? | db.movies.find({"title": "The Big Trail"}, {"plot": 1}) |
which company produced 42nd Street? | db.movies.find({"title":"42nd Street"}, {"tomatoes.production":1}) |
Gold Diggers of 1935, is written by who? | db.movies.find({"title": "Gold Diggers of 1935"}, {"writers": 1}) |
What is the Rotten Tomatoes meter rating for the viewer reviews of the movie State Fair ? | db.movies.find({"title":"State Fair"}, {"tomatoes.viewer.meter":1}) |
who wrote I Am a Fugitive from a Chain Gang? | db.movies.find({"title": "I Am a Fugitive from a Chain Gang"}, {"writers": 1}) |
who stars in the film One Hundred Men and a Girl? | db.movies.find({"title": "One Hundred Men and a Girl"}, {"cast": 1}) |
How many audience reviews have been submitted for the movie Battleship Potemkin? | db.movies.find({ "title": "Battleship Potemkin" }, { "tomatoes.viewer.numReviews": 1 }) |
How many audience reviews have been submitted for the movie He Who Gets Slapped? | db.movies.find({ "title": "He Who Gets Slapped" }, { "tomatoes.viewer.numReviews": 1 }) |
How many votes did the movie College receive on IMDB? | db.movies.find({"title": "College"}, { "imdb.votes": 1}) |
What is the website associated with the movie Carnival in Flanders on Rotten Tomatoes? | db.movies.find({"title": "Carnival in Flanders"}, {"tomatoes.website": 1}) |
What is the production company of the movie Bride of Frankenstein? | db.movies.find({"title":"Bride of Frankenstein"}, {"tomatoes.production":1}) |
what is the movie Romance description ? | db.movies.find({"title": "Romance"}, {"plot": 1}) |
what is the movie Cops imdb rating? | db.movies.find({"title": "Cops"}, {"imdb.rating": 1}) |
which person directed The Awful Truth? | db.movies.find({"title": "The Awful Truth"}, {"directors": 1}) |
What is the movie Scarface rating? | db.movies.find({"title":"Scarface"}, {"rated":1}) |
What is the text representation of the awards won and nominations received by the movie Westfront 1918? | db.movies.find({"title": "Westfront 1918"}, { "awards.text": 1}) |
who directed è Nous la Libertè? | db.movies.find({"title": "è Nous la Libertè"}, {"directors": 1}) |
who directed the movie Blacksmith Scene? | db.movies.find({"title": "Blacksmith Scene"}, {"directors": 1}) |
What is the MongoDB document ID of the movie Topaze? | db.movies.find({"title": "Topaze"}, {"_id": 1}) |
what is the movie Disraeli description ? | db.movies.find({"title": "Disraeli"}, {"plot": 1}) |
what kind of movie is Becky Sharp? | db.movies.find({"title": "Becky Sharp"}, {"genres": 1}) |
What is the imdbID and year of release for the movie with a title of 'Les Misèrables'? | db.movies.find({"title": "Les Misèrables"}, {"imdb.id": 1, "year": 1, "_id": 0}) |
what was the release date of The Perils of Pauline? | db.movies.find({"title": "The Perils of Pauline"}, {"released": 1}) |
What is the production company behind the movie Secret Agent ? | db.movies.find({"title": "Secret Agent"}, {"tomatoes.production": 1}) |
What is the website associated with the movie The Land Beyond the Sunset on Rotten Tomatoes? | db.movies.find({"title": "The Land Beyond the Sunset"}, {"tomatoes.website": 1}) |
who wrote the screenplay for the movie Zero for Conduct? | db.movies.aggregate([ { "$match": { "title":"Zero for Conduct"} }, { "$project": { "_id": 0, "writers": {"$filter": { "input": "$writers", "as": "writer", "cond": { "$regexMatch": { "input": "$$writer", "regex": "screenplay", "options":"i" } } } } } }]) |
San Francisco, was written by who? | db.movies.find({"title": "San Francisco"}, {"writers": 1}) |
what was the release date of the film The Green Pastures? | db.movies.find({"title": "The Green Pastures"}, {"released": 1}) |
What is the MongoDB document ID of the movie King Solomon's Mines? | db.movies.find({"title": "King Solomon's Mines"}, {"_id": 1}) |
What is the production company behind the movie The Circus ? | db.movies.find({"title": "The Circus"}, {"tomatoes.production": 1}) |
what is the film David Copperfield about in details? | db.movies.find({"title": "David Copperfield"}, {"fullplot": 1}) |
In what language was the movie Twentieth Century released? | db.movies.find({ "title": "Twentieth Century" }, { "languages": 1}) |
Little Women, was written by who? | db.movies.find({"title": "Little Women"}, {"writers": 1}) |
What is the IMDb rating for The Chechahcos? | db.movies.find({"title": "The Chechahcos"}, {"imdb.rating": 1}) |
What languages are spoken in the movie A Damsel in Distress? | db.movies.find({"title":"A Damsel in Distress"}, {"languages":1}) |
What are the genres this movie Gold Diggers of 1933 belongs to? | db.movies.find({"title":"Gold Diggers of 1933"}, {"genres":1}) |
What is the name of the director and cast for the movie 'The Kid Brother'? | db.movies.find({"title": "The Kid Brother"}, {"directors": 1, "cast": 1, "_id": 0}) |
What are the genres associated with the movie Curly Top ? | db.movies.find({ "title": "Curly Top" }, { "genres": 1}) |
what year was the movie Metropolis released? | db.movies.find({"title": "Metropolis"}, {"year": 1}) |
How many comments have been posted by users on the movie The Gold Rush's page on the Mflix platform? | db.movies.find({ "title": "The Gold Rush" }, { "num_mflix_comments": 1 }) |
What is the MPAA rating of the film The Lost Patrol? | db.movies.find({"title":"The Lost Patrol"}, {"rated":1}) |
What are the names of all the actors who starred in the movie 'The Prisoner of Shark Island'? | db.movies.find({"title": "The Prisoner of Shark Island"}, {"cast": 1}) |
what is the film Cimarron about in details? | db.movies.find({"title": "Cimarron"}, {"fullplot": 1}) |
What is the language of the movie For Heaven's Sake? | db.movies.find({"title":"For Heaven's Sake"}, {"languages":1}) |
what is the full plot for The Private Life of Don Juan? | db.movies.find({"title": "The Private Life of Don Juan"}, {"fullplot": 1}) |
what is the genre for the film Three Little Pigs? | db.movies.find({"title": "Three Little Pigs"}, {"genres": 1}) |
what is Robin Hood about? | db.movies.find({"title": "Robin Hood"}, {"plot": 1}) |
who directed Scarface? | db.movies.find({"title": "Scarface"}, {"directors": 1}) |
What is the imdbID and year of release for the movie with a title of 'Dante's Inferno'? | db.movies.find({"title": "Dante's Inferno"}, {"imdb.id": 1, "year": 1, "_id": 0}) |
What is the MPAA rating of the movie Swedenhielms Family? | db.movies.find({"title":"Swedenhielms Family"}, {"rated":1}) |
What is the production company of The Guardsman? | db.movies.find({"title":"The Guardsman"}, {"tomatoes.production":1}) |
What is the imdbID and genre of the movie 'Little Miss Marker'? | db.movies.find({"title": "Little Miss Marker"}, {"imdb.id": 1, "genres": 1, "_id": 0}) |
what is the plot for The Blue Light? | db.movies.find({"title": "The Blue Light"}, {"plot": 1}) |
What are the countries associated with the movie The Hurricane ? | db.movies.find({"title": "The Hurricane"}, {"countries": 1}) |
Can you provide a detailed summary of the movie Elephant Boy plot? | db.movies.find({ "title": "Elephant Boy" }, { "fullplot": 1}) |
Can you provide me with a list of Terrence Malick-directed movies with the highest ratings? | db.movies.find({"directors": 'Terrence Malick', "imdb.rating": {"$gt": 8.5}}) |
What is the running time of the film Harvest? | db.movies.find({"title":"Harvest"}, {"runtime":1}) |
How many votes did the movie The Land Beyond the Sunset receive on IMDB? | db.movies.find({"title": "The Land Beyond the Sunset"}, { "imdb.votes": 1}) |
who stars in the film Payment Deferred? | db.movies.find({"title": "Payment Deferred"}, {"cast": 1}) |
what is the full plot for the movie Naughty Marietta? | db.movies.find({"title": "Naughty Marietta"}, {"fullplot": 1}) |
what is the film The Beloved Vagabond description ? | db.movies.find({"title": "The Beloved Vagabond"}, {"plot": 1}) |
what genre is Broken Lullaby? | db.movies.find({"title": "Broken Lullaby"}, {"genres": 1}) |
who stars in Man with a Movie Camera? | db.movies.find({"title": "Man with a Movie Camera"}, {"cast": 1}) |
How many wins did the movie Where Are My Children? receive? | db.movies.find({"title":"Where Are My Children?"}, {"awards.wins":1}) |
When was the Tomatometer score and other Tomato-related information last updated for the movie Our Hospitality? | db.movies.find({"title": "Our Hospitality"}, { "tomatoes.lastUpdated": 1}) |
who is the director that directed The Sin of Madelon Claudet? | db.movies.find({"title": "The Sin of Madelon Claudet"}, {"directors": 1}) |
Who is the lead actor of the movie Little Women ? | db.movies.find({"title": "Little Women"}, {"cast":{"$slice": 1},"title":1}) |
who produced The Story of Louis Pasteur? | db.movies.find({"title":"The Story of Louis Pasteur"}, {"tomatoes.production":1}) |
what type of film is Make Way for Tomorrow? | db.movies.find({"title": "Make Way for Tomorrow"}, {"genres": 1}) |
what type of film is The Broadway Melody? | db.movies.find({"title": "The Broadway Melody"}, {"genres": 1}) |
What is the consensus among critics about the movie The Birth of a Nation? | db.movies.find({"title": "The Birth of a Nation"}, { "tomatoes.consensus": 1}) |
what genre is the film Flesh and the Devil? | db.movies.find({"title": "Flesh and the Devil"}, {"genres": 1}) |
Who are the actors in the movie The 39 Steps? | db.movies.find({"title":"The 39 Steps"}, {"cast":1}) |
Has the film L'opèra de quat'sous won any awards? If so, which ones? | db.movies.find({"title":"L'opèra de quat'sous","awards.wins": {"$gt": 0}}, {"awards.text": 1}) |
what is the plot for the movie Make Way for Tomorrow? | db.movies.find({"title": "Make Way for Tomorrow"}, {"plot": 1}) |
What are the genres associated with the movie Regeneration ? | db.movies.find({ "title": "Regeneration" }, { "genres": 1}) |
What are the highest-rated War movies in the database? | db.movies.find({"genres": "War"}).sort({"imdb.rating": -1}).limit(10) |
What is the freshness score of the movie The Italian on Rotten Tomatoes? | db.movies.find({"title": "The Italian"}, {"tomatoes.fresh": 1}) |
How many awards did the movie win Grass: A Nation's Battle for Life ? | db.movies.find({ "title": "Grass: A Nation's Battle for Life" },{ "awards.wins": 1 }) |
How many reviews have been submitted for the movie Tarzan and His Mate on Rotten Tomatoes? | db.movies.find({ "title": "Tarzan and His Mate" },{ "tomatoes.viewer.numReviews": 1 }) |
what is The New Gulliver imdb rating? | db.movies.find({"title": "The New Gulliver"}, {"imdb.rating": 1}) |
How many audience reviews have been submitted for the movie Swedenhielms Family ? | db.movies.find({ "title": "Swedenhielms Family" },{ "tomatoes.viewer.numReviews": 1 }) |
which person wrote the movie The Private Life of Don Juan? | db.movies.find({"title": "The Private Life of Don Juan"}, {"writers": 1}) |
What is the imdbID and genre of the movie 'The Crusades'? | db.movies.find({"title": "The Crusades"}, {"imdb.id": 1, "genres": 1, "_id": 0}) |
Dataset Card for M2Q2+
M2Q2+ is a dataset designed for question answering and information retrieval tasks related to MongoDB, a popular NoSQL database. It contains pairs of natural language questions and corresponding MongoDB fetch queries, making it ideal for training models to translate natural language into database queries.
This dataset is intended to support research and development in natural language processing (NLP), question answering (QA), and database management systems (DBMS).
Dataset Details
Uses
Direct Use
This dataset is suitable for:
- Training models to translate natural language questions into MongoDB queries.
- Research in natural language processing (NLP) and database management systems (DBMS).
- Building question-answering systems for MongoDB.
Out-of-Scope Use
- This dataset is not intended for tasks unrelated to MongoDB or database querying.
- It should not be used for malicious purposes, such as generating harmful or unauthorized queries.
Dataset Structure
The dataset is provided in CSV format with the following columns:
question
: A natural language question about MongoDB.query
: The corresponding MongoDB fetch query that answers the question.
Example rows:
question | query |
---|---|
How many nominations did the movie The Life of Emile Zola receive? | db.movies.find({"title":"The Life of Emile Zola"}, {"awards.nominations":1}) |
Who stars in Broken Blossoms or The Yellow Man and the Girl? | db.movies.find({"title": "Broken Blossoms or The Yellow Man and the Girl"}, {"cast": 1}) |
Can you tell me which film genres Yasujiro Ozu has directed? | db.movies.distinct("genres", { "directors": "Yasujiro Ozu" }) |
Splits
- Train: ~60,000 question-query pairs.
- Validation: 10,000 question-query pairs.
- Test: 10,000 question-query pairs.
- Total Size: ~80,000 question-query pairs.
Dataset Creation
Curation Rationale
This dataset was created to address the absence of a NoSQL (MongoDB) version of WikiSQL. It aims to bridge the gap between natural language and database querying, making databases more accessible to non-technical users.
Source Data
Data Collection and Processing
- Questions: Collected from real-world scenarios and common MongoDB use cases.
- Queries: Manually crafted to ensure accuracy and relevance to the questions.
- Augmentation: A multi-step pipeline was used to augment the dataset.
- Execution: Queries were executed on a real MongoDB database (the
movies
collection from the Mflix database). - Formatting: Structured into CSV format for ease of use.
Who are the source data producers?
- Questions: Curated by Aicha Aggoune, Zakaria Mihoubi.
- Queries: Written by Aicha Aggoune, Zakaria Mihoubi with expertise in MongoDB.
- Mflix Database: The
movies
collection from the Mflix database was used as a resource. Credit to MongoDB Atlas for providing the sample data.
Annotations
- Annotation process: Questions and queries were manually paired and validated for accuracy.
- Annotation guidelines: Queries were written to match the intent of the questions precisely.
Bias, Risks, and Limitations
- Bias: The dataset may reflect biases in the types of questions and queries included.
- Risks: Misuse of the dataset could lead to the generation of harmful or unauthorized queries.
- Limitations: The dataset is limited to fetch operations in MongoDB and does not cover other database operations.
Future Improvements
- Improve Question Quality: Enhance the diversity and complexity of natural language questions.
- Diversify Query Types: Increase the number of queries utilizing other fetch operation types: countDocuments() and aggregate().
- Downloads last month
- 5