Statistical Computings. These problems are in an undergraduate statistical computing course and I want to ask you that make me a solution with explanation to get to know it. I attached the task. And this task needs R using.Assignment 5: SQL and Relational DatabasesSQL CodeYou are to use SQL commands to query the database. You should strive to do as many of the computations in SQL within the database rather than bringing back large amounts of data to R and then performing computations there. There will be occassions when it is significantly simpler, or only feasible, to do some of the computations in R, after an initial SQL query. However, you should try hard to come up with the most comprehensive SQL query before you fall back to doing computations in R.R CodeAfter completing the questions using SQL commands, implement questions 9, 10, 11, 12 using only R commands and the dbReadTable() function to retrieve an entire table. (If you run into problems with the size of the data, you can work with a large subset of each table.) Show the R code and verify that you get the same results as with the SQL commands.The DataWe will explore the Internet Movie Database (IMDB) available on-line at imdb.com and off-line via the Alternative Interfaces. We can only do exploration on this data as a) it is essentially an entire population, b) there are not very many insightful/interesting questions as there are very few numeric variables, but most are qualitative. (We would like additional data such as revenues, reviews, audience ratings, etc.) However, we will use it to explore SQL.The SQLite database is available hereThere are other datasets that are also interesting to explore when learning SQL.• Lahmans Baseball Database is terrific (if you have any interest in baseball). (There is a chapter on this in Data Science in R: A Case Studies Approach available electronically via the UC library on campus & off campus.)• StackOverflow questions and answers, users, etc. Data are available at https://archive.org/details/stackexchangeThe following image shows schema for the tables in the database
We used the imdb-to-sql to convert the raw text files to the database and this uses regular expressions, which we learned in the last assignment. Very big thanks to Ameer Ayoub for his code to create the database from the raw files.Note• When I use the term “actor”, that includes both male and female actors.• Similarly, by “movie”, we do not include TV series.Questions1. How many actors are there in the database? How many movies?2. What time period does the database cover?3. What proportion of the actors are female? male?4. What proportion of the entries in the movies table are actual movies and what proportion are television series, etc.?5. How many genres are there? What are their names/descriptions?6. List the 10 most common genres of movies, showing the number of movies in each of these genres.7. Find all movies with the keyword ‘space. How many are there? What are the years these were released? and who were the top 5 actors in each of these movies?8. Has the number of movies in each genre changed over time? Plot the overall number of movies in each year over time, and for each genre.9. Who are the actors that have been in the most movies? List the top 20.10. Who are the actors that have had the most number of movies with “top billing”, i.e., billed as 1, 2 or 3? For each actor, also show the years these movies spanned?11. Who are the 10 actors that performed in the most movies within any given year? What are their names, the year they starred in these movies and the names of the movies?12. Who are the 10 actors that have the most aliases (i.e., see the aka_names table).13. Networks: Pick a (lead) actor who has been in at least 20 movies. Find all of the other actors that have appeared in a movie with that person. For each of these, find all the people they have appeared in a move with it. Use this to create a network/graph of who has appeared with who. Use the igraph or statnet packages to display this network.If you want, you can do this with individual SQL commands and the process the results in R to generate new SQL queries. In other words, dont spend too much time trying to create clever SQL queries if there is a more direct way to do this in R.14. What are the 10 television series that have the most number of movie stars appearing in the shows?Alternative DatabaseSince the gender is messed up in the imdb_data created via imdb-to-sql, I have created a different version of the database using the imdbpy scripts. This creates a much more complete representation of the IMDB data, but with different tables and columns, i.e., a different schema. The full database is now 8.5 gigabytes. I have dropped some of the tables that we dont need for our exploration and this brings it to 7.5 gigabytes.You can elect to use this new version of the data (and hence get better results). The databases are available as• the full version• with 8 tables droppedThe schema for the full version is displayed below
“Get 15% discount on your first 3 orders with us” Use the following coupon FIRST15
Why Work with Us
Top Quality and Well-Researched Papers
We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.
Professional and Experienced Academic Writers
We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.
Free Unlimited Revisions
If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document. You can do this yourself after logging into your personal account or by contacting our support.
Prompt Delivery and 100% Money-Back-Guarantee
All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.
Original & Confidential
We use several writing tools checks to ensure that all documents you receive are free from plagiarism. Our editors carefully review all quotations in the text. We also promise maximum confidentiality in all of our services.
24/7 Customer Support
Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.
Try it now!
How it works?
Follow these simple steps to get your paper done
Place your order
Fill in the order form and provide all details of your assignment.
Proceed with the payment
Choose the payment system that suits you most.
Receive the final file
Once your paper is ready, we will email it to you.
Our Services
No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.
Essays
No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.
Admissions
Admission Essays & Business Writing Help
An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.
Reviews
Editing Support
Our academic writers and editors make the necessary changes to your paper so that it is polished. We also format your document by correctly quoting the sources and creating reference lists in the formats APA, Harvard, MLA, Chicago / Turabian.
Reviews
Revision Support
If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.