Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated database #12

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
153 changes: 152 additions & 1 deletion datasets/spotify.json
Original file line number Diff line number Diff line change
Expand Up @@ -429,5 +429,156 @@
"solution": [
"PUT /me/player/pause"
]
},
{
"query": "Play a song from Taylor Swift's newest album",
"solution": [
"GET /search",
"GET /artists/{id}/albums",
"PUT /me/player/play"
]
},
{
"query": "play me some quiet songs",
"solution": [
"GET /search",
"PUT /me/player/play"
]
},
{
"query": "Follow the artist of the first song recently played",
"solution": [
"GET /me/player/currently-playing",
"GET /tracks/{id}",
"PUT /me/following"
]
},
{
"query": "Switch to the next song and set the single track repeat mode",
"solution": [
"POST /me/player/next",
"PUT /me/player/repeat"
]
},
{
"query": "Save Jay Chou's album Mojito",
"solution": [
"GET /search",
"PUT /me/albums"
]
},
{
"query": "Rename my first playlist to \"My First\"",
"solution": [
"GET /me/playlists",
"PUT /playlists/{playlist_id}"
]
},
{
"query": "Remove following from the artist of the currently playing music",
"solution": [
"GET /me/player/currently-playing",
"GET /tracks/{id}",
"DELETE /me/following"
]
},
{
"query": "Pause playback, turn down the volume and resume playing",
"solution": [
"PUT /me/player/pause",
"PUT /me/player/volume",
"PUT /me/player/play"
]
},
{
"query": "Add songs from the current playing queue to a new playlist called \"Current\"",
"solution": [
"GET /me/player/queue",
"GET /me",
"POST /users/{user_id}/playlists",
"PUT /playlists/{playlist_id}"
]
},
{
"query": "What is the name of the song I playing right now?",
"solution": [
"GET /me/player/currently-playing"
]
},
{
"query": "Play the top tracks of my favorite genre.",
"solution": [
"GET /me/top/{type}",
"GET /search",
"PUT /me/player/play"
]
},
{
"query": "Create a collaborative playlist named 'Party Vibes' and invite my friend to it.",
"solution": [
"GET /me",
"POST /users/{user_id}/playlists",
"POST /playlists/{playlist_id}/followers"
]
},
{
"query": "Shuffle my 'Workout' playlist.",
"solution": [
"GET /me/playlists",
"PUT /playlists/{playlist_id}/shuffle"
]
},
{
"query": "Add the latest track from Ed Sheeran to my 'Favorites' playlist.",
"solution": [
"GET /search",
"GET /artists/{id}/albums",
"GET /albums/{id}/tracks",
"POST /playlists/{playlist_id}/tracks"
]
},
{
"query": "Remove duplicate songs from my 'Chill Mix' playlist.",
"solution": [
"GET /me/playlists",
"GET /playlists/{playlist_id}/tracks",
"DELETE /playlists/{playlist_id}/remove-duplicates"
]
},
{
"query": "Show me my most played songs of the month.",
"solution": [
"GET /me/top/{type}?time_range=month"
]
},
{
"query": "Add a song from the 'Discover Weekly' playlist to my library.",
"solution": [
"GET /me/playlists",
"GET /playlists/{playlist_id}/tracks",
"POST /me/tracks"
]
},
{
"query": "Play a random song from my 'Oldies but Goodies' playlist.",
"solution": [
"GET /me/playlists",
"GET /playlists/{playlist_id}/tracks",
"POST /me/player/play?shuffle=true"
]
},
{
"query": "Set a sleep timer for 30 minutes and fade out the music.",
"solution": [
"PUT /me/player/sleep-timer",
"PUT /me/player/fade-out"
]
},
{
"query": "Show me the lyrics of the currently playing song.",
"solution": [
"GET /me/player/currently-playing",
"GET /tracks/{id}/lyrics"
]
}
]
]
215 changes: 214 additions & 1 deletion datasets/tmdb.json
Original file line number Diff line number Diff line change
Expand Up @@ -724,5 +724,218 @@
"GET /search/movie",
"GET /movie/{movie_id}/images"
]
},
{
"query": "Who composed the music for the movie Inception?",
"solution": [
"GET /search/movie",
"GET /movie/{movie_id}/credits"
]
},
{
"query": "Give me the runtime of the longest movie directed by Quentin Tarantino.",
"solution": [
"GET /search/person",
"GET /person/{person_id}/movie_credits",
"GET /movie/{movie_id}"
]
},
{
"query": "What is the plot summary of the movie Pulp Fiction?",
"solution": [
"GET /search/movie",
"GET /movie/{movie_id}"
]
},
{
"query": "Find me documentaries released in the last year.",
"solution": [
"GET /discover/movie",
"GET /discover/tv"
]
},
{
"query": "Who played the main character in the TV series Sherlock?",
"solution": [
"GET /search/tv",
"GET /tv/{tv_id}/credits"
]
},
{
"query": "Give me the release date of the latest Marvel Cinematic Universe movie.",
"solution": [
"GET /search/company",
"GET /company/{company_id}/movies"
]
},
{
"query": "What are the top-rated TV shows in the drama genre?",
"solution": [
"GET /discover/tv",
"GET /discover/tv?with_genres=18&sort_by=vote_average.desc"
]
},
{
"query": "Find me movies starring both Robert De Niro and Al Pacino.",
"solution": [
"GET /search/person",
"GET /person/{person_id}/movie_credits"
]
},
{
"query": "Give me a list of animated movies released in the past two years.",
"solution": [
"GET /discover/movie",
"GET /discover/movie?with_genres=16&sort_by=release_date.desc"
]
},
{
"query": "Who directed the first episode of the TV series Stranger Things?",
"solution": [
"GET /search/tv",
"GET /tv/{tv_id}/season/{season_number}/episode/{episode_number}/credits"
]
},
{
"query": "Give me the list of movies featuring Tom Hanks and directed by Steven Spielberg.",
"solution": [
"GET /search/person",
"GET /person/{person_id}/movie_credits"
]
},
{
"query": "What are the genres of the top-rated comedy movies?",
"solution": [
"GET /movie/top_rated",
"GET /discover/movie?with_genres=35&sort_by=vote_average.desc"
]
},
{
"query": "Tell me about the production companies involved in the making of The Lord of the Rings trilogy.",
"solution": [
"GET /search/movie",
"GET /movie/{movie_id}/production_companies"
]
},
{
"query": "Find TV shows with a supernatural theme.",
"solution": [
"GET /discover/tv",
"GET /discover/tv?with_genres=14"
]
},
{
"query": "Who wrote the screenplay for the movie The Social Network?",
"solution": [
"GET /search/movie",
"GET /movie/{movie_id}/credits"
]
},
{
"query": "Give me the latest episode of the TV show Black Mirror.",
"solution": [
"GET /search/tv",
"GET /tv/{tv_id}/season/{season_number}/episode/latest"
]
},
{
"query": "Find movies with a time travel theme.",
"solution": [
"GET /discover/movie",
"GET /discover/movie?with_genres=14&sort_by=popularity.desc"
]
},
{
"query": "Who played the lead role in the movie La La Land?",
"solution": [
"GET /search/movie",
"GET /movie/{movie_id}/credits"
]
},
{
"query": "Give me the list of movies directed by Quentin Tarantino.",
"solution": [
"GET /search/person",
"GET /person/{person_id}/movie_credits"
]
},
{
"query": "Find me documentaries narrated by David Attenborough.",
"solution": [
"GET /search/person",
"GET /person/{person_id}/movie_credits"
]
},
{
"query": "What is the average rating of Christopher Nolan's movies?",
"solution": [
"GET /search/person",
"GET /person/{person_id}/movie_credits",
"GET /movie/{movie_id}"
]
},
{
"query": "Give me the release date of the latest James Cameron movie.",
"solution": [
"GET /search/person",
"GET /person/{person_id}/movie_credits",
"GET /movie/{movie_id}/release_dates"
]
},
{
"query": "Who are the main cast members of the TV series Friends?",
"solution": [
"GET /search/tv",
"GET /tv/{tv_id}/credits"
]
},
{
"query": "Find me movies with a mystery genre released in the 21st century.",
"solution": [
"GET /discover/movie",
"GET /discover/movie?with_genres=9648&primary_release_date.gte=2000-01-01"
]
},
{
"query": "Give me the top-rated animated movies.",
"solution": [
"GET /movie/top_rated",
"GET /discover/movie?with_genres=16&sort_by=vote_average.desc"
]
},
{
"query": "Find TV shows with female leads.",
"solution": [
"GET /discover/tv",
"GET /discover/tv?with_genres=18&sort_by=popularity.desc"
]
},
{
"query": "Tell me about the cinematographers of the Harry Potter film series.",
"solution": [
"GET /search/movie",
"GET /collection/{collection_id}/credits"
]
},
{
"query": "Give me reviews of the TV series Breaking Bad.",
"solution": [
"GET /search/tv",
"GET /tv/{tv_id}/reviews"
]
},
{
"query": "Find me movies with time loop or time travel themes.",
"solution": [
"GET /discover/movie",
"GET /discover/movie?with_genres=878&sort_by=popularity.desc"
]
},
{
"query": "Who is the composer of the soundtrack for the movie Interstellar?",
"solution": [
"GET /search/movie",
"GET /movie/{movie_id}/credits"
]
}
]
]