Chinastark/bird_dataset huggingface dataset:
Database: movies_4
Note: language refers to language_name; movie "C'era una volta il West" refers to title = 'C''era una volta il West';
Question: Tell the language of the movie "C'era una volta il West".
SQL: SELECT LANGUAGE.language_name FROM movie INNER JOIN movie_languages ON movie.movie_id = movie_languages.movie_id INNER JOIN LANGUAGE ON movie_languages.language_id = LANGUAGE.language_id WHERE movie.title LIKE 'C%era una volta il West'
Database: movies_4
Note: post-production movies refers to movie_status = 'Post Production'; Nederlands refers to language_name = 'Nederlands';
Question: Are there any post-production movies in Nederlands?
SQL: SELECT DISTINCT CASE WHEN movie.movie_status = 'Post Production' THEN 'YES' ELSE 'NO' END AS yorn FROM movie INNER JOIN movie_languages ON movie.movie_id = movie_languages.movie_id INNER JOIN LANGUAGE ON movie_languages.language_id = LANGUAGE.language_id WHERE LANGUAGE.language_name = 'Nederlands'
Database: movies_4
Note: Polski movies refers to language_name = 'Polski';
Question: List down the tagline of the Polski movies.
SQL: SELECT DISTINCT movie.tagline FROM movie INNER JOIN movie_languages ON movie.movie_id = movie_languages.movie_id INNER JOIN LANGUAGE ON movie_languages.language_id = LANGUAGE.language_id WHERE LANGUAGE.language_name = 'Polski'
Database: movies_4
Note: Bahasa Indonesia movies refers to language_name = 'Bahasa indonesia';
Question: Provide the homepage of the Bahasa Indonesia movies.
SQL: SELECT DISTINCT movie.homepage FROM movie INNER JOIN movie_languages ON movie.movie_id = movie_languages.movie_id INNER JOIN LANGUAGE ON movie_languages.language_id = LANGUAGE.language_id WHERE LANGUAGE.language_name = 'Bahasa indonesia'
Database: movies_4
Note: English refers to language_name = 'English'; Latin refers to language_name = 'Latin'; difference in revenues = subtract(sum(movie_id) when language_name = 'English', sum(movie_id) when language_name = 'Latin');
Question: Work out the difference in revenues made between the English and Latin movies.
SQL: SELECT sum(CASE WHEN LANGUAGE.language_name = 'English' THEN movie.revenue ELSE 0 END) - sum(CASE WHEN LANGUAGE.language_name = 'Latin' THEN movie.revenue ELSE 0 END) AS difference FROM movie INNER JOIN movie_languages ON movie.movie_id = movie_languages.movie_id INNER JOIN LANGUAGE ON movie_languages.language_id = LANGUAGE.language_id
Database: movies_4
Note: made by Fantasy Films refers to company_name = 'Fantasy Films'; Live Entertainment refers to company_name = 'Live Entertainment';
Question: Calculate the revenues made by Fantasy Films and Live Entertainment.
SQL: SELECT sum(movie.revenue) FROM production_company INNER JOIN movie_company ON production_company.company_id = movie_company.company_id INNER JOIN movie ON movie_company.movie_id = movie.movie_id WHERE production_company.company_name IN ('Fantasy Films', 'Live Entertainment')
Database: movies_4
Note: Latin movies refers to language_name = 'Latin'; average revenue = AVG(revenue);
Question: What is the average revenue made by Latin movies?
SQL: SELECT avg(movie.revenue) FROM movie INNER JOIN movie_languages ON movie.movie_id = movie_languages.movie_id INNER JOIN LANGUAGE ON movie_languages.language_id = LANGUAGE.language_id WHERE LANGUAGE.language_name = 'Latin'
Database: movies_4
Note: most common first name refers to max(count(person_name));
Question: What is the most common first name?
SQL: SELECT person_name FROM person GROUP BY person_name ORDER BY count(person_name) DESC LIMIT 1
Database: movies_4
Note: average number of crews = divide(count(person_id), COUNT(movie_id));
Question: What is the average number of crews for a movie?
SQL: SELECT cast(sum(cd) AS REAL) / count(movie_id) FROM ( SELECT movie_id, count(person_id) AS cd FROM movie_crew GROUP BY movie_id )
Database: movies_4
Note: keywords with "christmas" in them refers to keyword_name LIKE '%christmas%';
Question: List all the keywords with "christmas" in them.
SQL: SELECT keyword_name FROM keyword WHERE keyword_name LIKE '%christmas%'
Database: movies_4
Note: longest runtime refers to max(runtime);
Question: What is the longest runtime of all movies?
SQL: SELECT max(runtime) FROM movie
Database: movies_4
Note: iso code refers to country_iso_code; "Kyrgyz Republic" refers to country_name = 'Kyrgyz Republic';
Question: What is the iso code of "Kyrgyz Republic"?
SQL: SELECT country_iso_code FROM country WHERE country_name = 'Kyrgyz Republic'
Database: movies_4
Note: movie "The Pacifier" refers to title = 'The Pacifier';
Question: Provide the overview for the movie "The Pacifier".
SQL: SELECT overview FROM movie WHERE title = 'The Pacifier'
Database: movies_4
Note: produced by "Eddie Murphy Productions" refers to company_name = 'Eddie Murphy Productions';
Question: How many movies were produced by "Eddie Murphy Productions"?
SQL: SELECT count(movie_company.movie_id) FROM movie_company INNER JOIN production_company ON movie_company.company_id = production_company.company_id WHERE production_company.company_name = 'Eddie Murphy Productions'
Database: movies_4
Note: List all the actors refers to person_name; characters with "captain" in their names refers to character_name LIKE '%captain%';
Question: List all the actors who have played characters with "captain" in their names.
SQL: SELECT DISTINCT person.person_name FROM person INNER JOIN movie_cast ON person.person_id = movie_cast.person_id WHERE movie_cast.character_name LIKE '%captain%'
Database: movies_4
Note: most common keyword refers to max(count(keyword_name)); movies released in 2006 refers to release_date LIKE '%2006%';
Question: What is the most common keyword among all the movies released in 2006?
SQL: SELECT keyword.keyword_name FROM movie INNER JOIN movie_keywords ON movie.movie_id = movie_keywords.movie_id INNER JOIN keyword ON movie_keywords.keyword_id = keyword.keyword_id WHERE movie.release_date LIKE '2006%' GROUP BY keyword.keyword_name ORDER BY count(keyword.keyword_name) DESC LIMIT 1
Database: movies_4
Note: "vi" as their language code refers to language_code = 'vi';
Question: How many movies have "vi" as their language code?
SQL: SELECT count(movie_languages.movie_id) FROM movie_languages INNER JOIN LANGUAGE ON movie_languages.language_id = LANGUAGE.language_id WHERE LANGUAGE.language_code = 'vi'
Database: movies_4
Note: least common genre refers to min(count(genre_name));
Question: What is the third least common genre?
SQL: SELECT genre.genre_name FROM movie_genres INNER JOIN genre ON movie_genres.genre_id = genre.genre_id GROUP BY genre.genre_id ORDER BY count(movie_genres.movie_id) LIMIT 2, 1
Database: movies_4
Note: language refers to language_name; original language refers to language_role = 'Original';
Question: What is the original language of the movie with the tagline "An offer you can't refuse."?
SQL: SELECT LANGUAGE.language_name FROM movie INNER JOIN movie_languages ON movie.movie_id = movie_languages.movie_id INNER JOIN LANGUAGE ON movie_languages.language_id = LANGUAGE.language_id INNER JOIN language_role ON movie_languages.language_role_id = language_role.role_id WHERE language_role.language_role = 'Original' AND movie.tagline LIKE 'An offer you can%t refuse.'
Database: movies_4
Note: French movies refers to country_name = 'France'; average revenue = AVG(revenue);
Question: Provide the average revenue of all the French movies.
SQL: SELECT avg(movie.revenue) FROM movie INNER JOIN production_country ON movie.movie_id = production_country.movie_id INNER JOIN country ON production_country.country_id = country.country_id WHERE country.country_name = 'France'
Database: movies_4
Note: characters refers to character_name; gender = 'Unspecified';
Question: List all the unspecified gender characters.
SQL: SELECT movie_cast.character_name FROM movie_cast INNER JOIN gender ON movie_cast.gender_id = gender.gender_id WHERE gender.gender = 'Unspecified'
Database: movies_4
Note: directors refers to job = 'Director'; most popular refers to max(popularity);
Question: What are the top 5 most popular movie directors?
SQL: SELECT person.person_name FROM movie INNER JOIN movie_crew ON movie.movie_id = movie_crew.movie_id INNER JOIN person ON movie_crew.person_id = person.person_id WHERE movie_crew.job = 'Director' ORDER BY movie.popularity DESC LIMIT 5
Database: movies_4
Note: highest budget refers to max(budget); each genre refers to genre_name; film also means movie; list the film refers to title of movie;
Question: List the film with the highest budget in each genre.
SQL: SELECT genre.genre_name, max(movie.budget) FROM movie INNER JOIN movie_genres ON movie.movie_id = movie_genres.movie_id INNER JOIN genre ON movie_genres.genre_id = genre.genre_id GROUP BY genre.genre_name
Database: movies_4
Note: most keywords refers to max(count(keyword_id));
Question: What is the title of the movie with the most keywords?
SQL: SELECT movie.title FROM movie INNER JOIN movie_keywords ON movie.movie_id = movie_keywords.movie_id GROUP BY movie.title ORDER BY count(movie_keywords.keyword_id) DESC LIMIT 1
Database: movies_4
Note: department refers to department_name; most people refers to max(count(department_id));
Question: Which department has the most people?
SQL: SELECT department.department_name FROM department INNER JOIN movie_crew ON department.department_id = movie_crew.department_id GROUP BY department.department_id ORDER BY count(movie_crew.department_id) DESC LIMIT 1
Database: movies_4
Note: films' and 'movies' are synonyms; made in the US refers to country_iso_code = 'US'; percentage = divide(sum(country_id) when country_iso_code = 'US', count(country_id)) * 100 as percentage;
Question: What percentage of films are made in the US?
SQL: SELECT cast(count(CASE WHEN country.country_iso_code = 'US' THEN movie.movie_id ELSE NULL END) AS REAL) * 100 / count(movie.movie_id) FROM movie INNER JOIN production_country ON movie.movie_id = production_country.movie_id INNER JOIN country ON production_country.country_id = country.country_id
Database: movies_4
Note: female refers to gender = 'Female'；male refers to gender = 'Male'; average ratio = divide(divide(sum(gender_id) when gender = 'Female', sum(gender_id) when gender = 'Male'), count(movie_id)) as percentage;
Question: What is the average ratio between female and male actors in a movie?
SQL: SELECT cast(count(CASE WHEN gender.gender = 'Female' THEN movie_cast.person_id ELSE NULL END) AS REAL) / count(CASE WHEN gender.gender = 'Male' THEN movie_cast.person_id ELSE NULL END) FROM movie_cast INNER JOIN gender ON movie_cast.gender_id = gender.gender_id
Database: movies_4
Note: List the movies refers to title; released in 1945 refers to release_date LIKE '1945%';
Question: List the movies released in 1945.
SQL: SELECT title FROM movie WHERE cast(strftime('%Y', release_date) AS INT) = 1945
Database: movies_4
Note: ID refers to country_id; ISO code refers to country_iso_code; Belgium refers to country_name = 'Belgium';
Question: Provide the ID and ISO code of Belgium.
SQL: SELECT country_id, country_iso_code FROM country WHERE country_name = 'Belgium'
Database: movies_4
Question: List the character names played by Catherine Deneuve.
SQL: SELECT movie_cast.character_name FROM person INNER JOIN movie_cast ON person.person_id = movie_cast.person_id WHERE person.person_name = 'Catherine Deneuve'
Database: movies_4
Note: List the movies refers to title; Somali language refers to language_name = 'Somali';
Question: List the movies in the Somali language.
SQL: SELECT movie.title FROM movie INNER JOIN movie_languages ON movie.movie_id = movie_languages.movie_id INNER JOIN LANGUAGE ON movie_languages.language_id = LANGUAGE.language_id WHERE LANGUAGE.language_name = 'Somali'
Database: movies_4
Note: language refers to langauge_name; most popular movie refers to max(popularity);
Question: Provide the release date and language of the most popular movie.
SQL: SELECT movie.release_date, LANGUAGE.language_name FROM movie INNER JOIN movie_languages ON movie.movie_id = movie_languages.movie_id INNER JOIN LANGUAGE ON movie_languages.language_id = LANGUAGE.language_id ORDER BY movie.popularity DESC LIMIT 1
Database: movies_4
Note: language refers to language_name; original language refers to language_role = 'Original'; "Four Rooms" refers to title = 'Four Rooms';
Question: What is the original language of the "Four Rooms" movie?
SQL: SELECT LANGUAGE.language_name FROM movie INNER JOIN movie_languages ON movie.movie_id = movie_languages.movie_id INNER JOIN LANGUAGE ON movie_languages.language_id = LANGUAGE.language_id INNER JOIN language_role ON movie_languages.language_role_id = language_role.role_id WHERE language_role.language_role = 'Original' AND movie.title = 'Four Rooms'
Database: movies_4
Note: "Open Water" movie refers to title = 'Open Water';
Question: List the character names in the "Open Water" movie.
SQL: SELECT movie_cast.character_name FROM movie INNER JOIN movie_cast ON movie.movie_id = movie_cast.movie_id WHERE movie.title = 'Open Water'
Database: movies_4
Note: main actor refers to person_name where Min(cast_order); "Pirates of the Caribbean: At World's End" refers to title = 'Pirates of the Caribbean: At World''s End';
Question: Who is the main actor in the "Pirates of the Caribbean: At World's End" movie?
SQL: SELECT person.person_name FROM movie INNER JOIN movie_cast ON movie.movie_id = movie_cast.movie_id INNER JOIN person ON movie_cast.person_id = person.person_id WHERE movie.title LIKE 'Pirates of the Caribbean: At World%s End' ORDER BY movie_cast.cast_order LIMIT 1
Database: movies_4
Note: names refers to person_name; camera supervisors refers to job = 'Camera Supervisor';
Question: List the names of camera supervisors in the crew.
SQL: SELECT person.person_name FROM person INNER JOIN movie_crew ON person.person_id = movie_crew.person_id WHERE movie_crew.job = 'Camera Supervisor'
Database: movies_4
Note: job titles refers to job;
Question: List the job titles of Sally Menke in the crew.
SQL: SELECT DISTINCT movie_crew.job FROM person INNER JOIN movie_crew ON person.person_id = movie_crew.person_id WHERE person.person_name = 'Sally Menke'
Database: movies_4
Note: names refers to person_name; departments refers to department_name; worked as a music editor refers to job = 'Music Editor'; "Pirates of the Caribbean: At World's End" refers to title = 'Pirates of the Caribbean: At World''s End';
Question: Provide the names and departments of the person who worked as a music editor in the "Pirates of the Caribbean: At World's End" movie.
SQL: SELECT person.person_name, department.department_name FROM movie INNER JOIN movie_crew ON movie.movie_id = movie_crew.movie_id INNER JOIN person ON movie_crew.person_id = person.person_id INNER JOIN department ON movie_crew.department_id = department.department_id WHERE movie.title LIKE 'Pirates of the Caribbean: At World%s End' AND movie_crew.job = 'Music Editor'
Database: movies_4
Note: produced by the DreamWorks company refers to company_name = 'DreamWorks';
Question: Provide the titles and revenues of the movies produced by the DreamWorks company.
SQL: SELECT movie.title, movie.revenue FROM movie INNER JOIN movie_company ON movie.movie_id = movie_company.movie_id INNER JOIN production_company ON movie_company.company_id = production_company.company_id WHERE production_company.company_name = 'DreamWorks'
Database: movies_4
Note: produced in Canada refers to country_name = 'Canada';
Question: How many movies were produced in Canada?
SQL: SELECT count(production_country.movie_id) FROM country INNER JOIN production_country ON country.country_id = production_country.country_id WHERE country.country_name = 'Canada'
Database: movies_4
Note: genres refers to genre_name; Forrest Gump movie refers to title = 'Forrest Gump';
Question: List the genres of Forrest Gump movie.
SQL: SELECT genre.genre_name FROM movie INNER JOIN movie_genres ON movie.movie_id = movie_genres.movie_id INNER JOIN genre ON movie_genres.genre_id = genre.genre_id WHERE movie.title = 'Forrest Gump'
Database: movies_4
Note: production companies refers to company_name; in 2016 refers to release_date LIKE '2016%'; over 35% average running time per movie refers to divide(subtract(runtime, AVG(runtime)), AVG(runtime)) * 100 as percentage > 35;
Question: Provide the production companies of the movie that has over 35% average running time per movie in 2016.
SQL: SELECT t.company_name FROM ( SELECT DISTINCT production_company.company_name, movie.runtime FROM movie INNER JOIN movie_company ON movie.movie_id = movie_company.movie_id INNER JOIN production_company ON production_company.company_id = movie_company.company_id WHERE movie.release_date LIKE '2016%' ) t WHERE t.runtime * 100 > (0.35 * ( SELECT avg(movie.runtime) FROM movie INNER JOIN movie_company ON movie.movie_id = movie_company.movie_id INNER JOIN production_company ON production_company.company_id = movie_company.company_id WHERE movie.release_date LIKE '2016%' ) + ( SELECT avg(movie.runtime) FROM movie INNER JOIN movie_company ON movie.movie_id = movie_company.movie_id INNER JOIN production_company ON production_company.company_id = movie_company.company_id WHERE movie.release_date LIKE '2016%' )) * 100
Database: movies_4
Note: under keywords of "woman director" and "independent film" refers to keyword_name = 'woman director' and keyword_name = 'independent film'; difference in percentage = divide(subtract(count(movie_id) when keyword_name = 'woman director', count(movie_id) when keyword_name = 'independent film'), count(movie_id)) as percentage;
Question: Find the difference in percentage of the movies under keywords of "woman director" and "independent film".
SQL: SELECT cast((sum(CASE WHEN keyword.keyword_name = 'woman director' THEN 1 ELSE 0 END) - sum(CASE WHEN keyword.keyword_name = 'independent film' THEN 1 ELSE 0 END)) AS REAL) * 100 / sum(CASE WHEN keyword.keyword_name = 'independent film' THEN 1 ELSE 0 END) FROM keyword INNER JOIN movie_keywords ON keyword.keyword_id = movie_keywords.keyword_id
Database: movies_4
Note: genre refers to genre_name; movie Dancer in the Dark refers to title = 'Dancer in the Dark';
Question: Which genre does the movie Dancer in the Dark belong to?
SQL: SELECT genre.genre_name FROM movie INNER JOIN movie_genres ON movie.movie_id = movie_genres.movie_id INNER JOIN genre ON movie_genres.genre_id = genre.genre_id WHERE movie.title = 'Dancer in the Dark'
Database: movies_4
Note: adventure movies refers to genre_name = 'Adventure'; released in 2000 refers to release_date LIKE '2000%';
Question: How many adventure movies are there that were released in 2000?
SQL: SELECT count(movie.movie_id) FROM movie INNER JOIN movie_genres ON movie.movie_id = movie_genres.movie_id INNER JOIN genre ON movie_genres.genre_id = genre.genre_id WHERE genre.genre_name = 'Adventure' AND cast(strftime('%Y', movie.release_date) AS INT) = 2000
Database: movies_4
Note: Which movies refers to title; company Paramount Pictures refers to company_name = 'Paramount Pictures'; in 2000 refers to release_date LIKE '2000%';
Question: Which movies did the company Paramount Pictures produce in 2000?
SQL: SELECT movie.title FROM production_company INNER JOIN movie_company ON production_company.company_id = movie_company.company_id INNER JOIN movie ON movie_company.movie_id = movie.movie_id WHERE production_company.company_name = 'Paramount Pictures' AND cast(strftime('%Y', movie.release_date) AS INT) = 2000
Database: movies_4
Note: What keyword refers to keyword_name; Finding Nemo refers to title = 'Finding Nemo';
Question: What keyword can the user use to search for the movie Finding Nemo?
SQL: SELECT keyword.keyword_name FROM movie INNER JOIN movie_keywords ON movie.movie_id = movie_keywords.movie_id INNER JOIN keyword ON movie_keywords.keyword_id = keyword.keyword_id WHERE movie.title = 'Finding Nemo'
Database: movies_4
Note: Name the horror movies refers to title where genre_name = 'horror'; positive ratings greater than 7 refers to vote_average > 7;
Question: Name the horror movies with positive ratings greater than 7.
SQL: SELECT movie.title FROM movie INNER JOIN movie_genres ON movie.movie_id = movie_genres.movie_id INNER JOIN genre ON movie_genres.genre_id = genre.genre_id WHERE genre.genre_name = 'Horror' AND movie.vote_average > 7
Database: movies_4
Note: more than 150 movies refers to COUNT(company_name) > 150;
Question: How many production companies made more than 150 movies?
SQL: SELECT count(*) FROM ( SELECT production_company.company_name AS cname FROM production_company INNER JOIN movie_company ON production_company.company_id = movie_company.company_id GROUP BY production_company.company_id HAVING count(production_company.company_name) > 150 )
Database: movies_4
Note: role refers to job;
Question: What is the role of Mark Hammel?
SQL: SELECT movie_crew.job FROM person INNER JOIN movie_crew ON person.person_id = movie_crew.person_id WHERE person.person_name = 'Mark Hammel'
Database: movies_4
Note: main actors refers to gender = 'male' and min(cast_order); Pirates of the Caribbean: At World's End refers to title = 'Pirates of the Caribbean: At World''s End';
Question: How many main actors are there in the movie Pirates of the Caribbean: At World's End?
SQL: SELECT count(movie_cast.cast_order) FROM movie INNER JOIN movie_cast ON movie.movie_id = movie_cast.movie_id INNER JOIN gender ON gender.gender_id = movie_cast.gender_id WHERE gender.gender = 'Male' OR gender.gender = 'Female' AND movie.title = 'Pirates of the Caribbean: At World''s End' AND movie_cast.cast_order = ( SELECT min(movie_cast.cast_order) FROM movie INNER JOIN movie_cast ON movie.movie_id = movie_cast.movie_id INNER JOIN gender ON gender.gender_id = movie_cast.gender_id WHERE gender.gender = 'Male' OR gender.gender = 'Female' AND movie.title = 'Pirates of the Caribbean: At World''s End' )
Database: movies_4
Note: Which movies refers to title; actor refers to person_name;
Question: Which movies have the participation of actor Harrison Ford?
SQL: SELECT movie.title FROM movie INNER JOIN movie_cast ON movie.movie_id = movie_cast.movie_id INNER JOIN person ON movie_cast.person_id = person.person_id WHERE person.person_name = 'Harrison Ford'
Database: movies_4
Note: Which character refers to character_name; movie Pirates of the Caribbean: The Curse of the Black Pearl refers to title = 'Pirates of the Caribbean: The Curse of the Black Pearl';
Question: Which character did Orlando Bloom play in the movie Pirates of the Caribbean: The Curse of the Black Pearl?
SQL: SELECT movie_cast.character_name FROM movie INNER JOIN movie_cast ON movie.movie_id = movie_cast.movie_id INNER JOIN person ON movie_cast.person_id = person.person_id WHERE movie.title = 'Pirates of the Caribbean: The Curse of the Black Pearl' AND person.person_name = 'Orlando Bloom'
Database: movies_4
Note: horror movies refers to genre_name = 'horror'; average number = divide(sum(movie_id) when genre_name = 'horror', count(movie_id));
Question: What is the average number of horror movies among all movies genre?
SQL: SELECT cast(count(CASE WHEN genre.genre_name = 'Horror' THEN movie.movie_id ELSE NULL END) AS REAL) / count(movie.movie_id) FROM movie INNER JOIN movie_genres ON movie.movie_id = movie_genres.movie_id INNER JOIN genre ON movie_genres.genre_id = genre.genre_id
Database: movies_4
Note: List the names refers to person_name; producers refers to job = 'Producer'; "Pirates of the Caribbean: At World's End" refers to title = 'Pirates of the Caribbean: The Curse of the Black Pearl';
Question: List the names of all the producers in the movie "Pirates of the Caribbean: At World's End".
SQL: SELECT person.person_name FROM movie INNER JOIN movie_crew ON movie.movie_id = movie_crew.movie_id INNER JOIN person ON movie_crew.person_id = person.person_id WHERE movie.title = 'Pirates of the Caribbean: The Curse of the Black Pearl' AND movie_crew.job = 'Producer'
Database: movies_4
Note: income refers to revenue; keyword "paris" refers to keyword_name = 'paris'; average income = AVG(revenue);
Question: Calculate the average income made by movies using the keyword "paris". List the title of the movies.
SQL: SELECT avg(movie.revenue), movie.title FROM movie INNER JOIN movie_keywords ON movie.movie_id = movie_keywords.movie_id INNER JOIN keyword ON movie_keywords.keyword_id = keyword.keyword_id WHERE keyword.keyword_name = 'paris'