1sf/bird-sql-train-with-schema huggingface dataset:
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: What are the apps that users pretty like this app and how many installs amount of these apps?
Evidence: users pretty much likes the app refers to Sentiment_Polarity = 'Positive';
SQL: SELECT DISTINCT T1.App, T1.Installs FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T2.Sentiment_Polarity > 0
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: List apps whose rating is 3.9 and state the translated review of each app.
Evidence: lowest rating refers to Rating = 1;
SQL: SELECT T1.App, T2.Translated_Review FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.Rating = 3.9
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: How many apps that are only compatible with Android ver 8.0 and above? List down the users' sentiment of these apps.
Evidence: compatible with android refers to Android Ver; Android Ver" = '8.0 and up';
SQL: SELECT DISTINCT Sentiment FROM user_reviews WHERE App IN ( SELECT App FROM playstore WHERE `Android Ver` = '8.0 and up' )
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: Which apps have multiple genres and what is the total sentiment subjectivity of these apps?
Evidence: multiple genres refers to COUNT(Genres>1; total sentiment subjectivity = Sum(Sentiment_Subjectivity);
SQL: SELECT SUM(T2.Sentiment_Subjectivity) FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.Genres > 1
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: Which apps have not been updated since year 2015 and what kind of sentiment users hold on it?
Evidence: since year 2015 refers to "Last Updated"<'January 1, 2015';
SQL: SELECT DISTINCT App, Sentiment FROM user_reviews WHERE App IN ( SELECT App FROM playstore WHERE CAST(SUBSTR('Last Updated', -4, 4) AS INTEGER) < 2015 )
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: What is the total installs of apps with content rating of adults only 18+ and what are the translated reviews of it?
Evidence: total installs = SUM(Installs);
SQL: SELECT SUM(T1.Installs), T2.Translated_Review FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1."Content Rating" = 'Adults only 18+'
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: Which of the app is the best selling app and what is the sentiments polarity of it?
Evidence: best selling app = MAX(MULTIPLY(Price, Installs));
SQL: SELECT T1.App, T2.Sentiment_Polarity FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App ORDER BY T1.Price * CAST(REPLACE(REPLACE(Installs, ',', ''), '+', '') AS INTEGER) DESC LIMIT 1
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: What is the average rating of comic category apps? How many users hold positive attitude towards this app?
Evidence: average rating = AVG(Rating where Category = 'COMICS'); number of users who hold a positive attitude towards the app refers to SUM(Sentiment = 'Positive');
SQL: SELECT AVG(T1.Rating) , COUNT(CASE WHEN T2.Sentiment = 'Positive' THEN 1 ELSE NULL END) FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.Category = 'COMICS'
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: What is the rating for "Draw A Stickman"?
Evidence: Draw A Stickman refers to App = 'Draw A Stickman';
SQL: SELECT Rating FROM playstore WHERE APP = 'Draw A Stickman'
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: How many of the reviews for the app "Brit + Co" have a comment?
Evidence: Brit + Co refers to App = 'Brit + Co'; comment refers to Translated Review NOT null;
SQL: SELECT COUNT(App) FROM user_reviews WHERE App = 'Brit + Co' AND Translated_Review IS NOT NULL
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: List the top 5 shopping apps with the most reviews.
Evidence: shopping apps refers to Genre = 'Shopping'; most reviews refers to MAX(Reviews);
SQL: SELECT DISTINCT App FROM playstore WHERE Genres = 'Shopping' GROUP BY App ORDER BY COUNT(App) DESC LIMIT 5
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: How many neutral reviews does the app "Dino War: Rise of Beasts" have?
Evidence: neutral reviews refers to Sentiment = 'Neutral';
SQL: SELECT COUNT(App) FROM user_reviews WHERE App = 'Dino War: Rise of Beasts' AND Sentiment = 'Neutral'
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: What are the apps with only 5,000+ installs?
Evidence: Installs = '5,000+';
SQL: SELECT DISTINCT App FROM playstore WHERE Installs = '5,000+'
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: List all the negative comments on the "Dog Run - Pet Dog Simulator" app.
Evidence: negative comment refers to Sentiment = 'Negative';
SQL: SELECT Translated_Review FROM user_reviews WHERE App = 'Dog Run - Pet Dog Simulator' AND Sentiment = 'Negative'
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: Which free app has the most Negative comments?
Evidence: paid app refers to Type = 'Paid'; negative comment refers to Sentiment = 'Negative'; paid app with most negative comments refers to MAX(COUNT(Sentiment = 'Negative')) where Type = 'Paid';
SQL: SELECT T1.App FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.Type = 'Free' AND T2.Sentiment = 'Negative' GROUP BY T1.App ORDER BY COUNT(T2.Sentiment) DESC LIMIT 1
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: How many negative comments are there in all the apps with 100,000,000+ installs?
Evidence: negative comment refers to Sentiment = 'Negative'; Installs = '100,000,000+';
SQL: SELECT COUNT(T2.Sentiment) FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.Installs = '100,000,000+' AND T2.Sentiment = 'Negative'
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: What are the content ratings for the apps that have "gr8" in their comments?
Evidence: app with gr8 in their comments refers to Translated_Review LIKE '%gr8%';
SQL: SELECT DISTINCT T1.`Content Rating` FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T2.Translated_Review LIKE '%gr8%'
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: What is the total Sentiment polarity score of the most expensive app?
Evidence: total sentiment polarity score = sum(Sentiment_Polarity); most expensive app refers to MAX(Price);
SQL: SELECT SUM(T2.Sentiment_Polarity) FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.Price = ( SELECT MAX(Price) FROM playstore )
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: What is the rating for "Garden Coloring Book"? List all of its reviews.
Evidence: Golfshot Plus: Golf GPS refers to App = 'Golfshot Plus: Golf GPS'; review refers to Translated_Review;
SQL: SELECT T1.Rating, T2.Translated_Review FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.App = 'Garden Coloring Book'
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: Which Photography app has the highest total Sentiment subjectivity score?
Evidence: Photography app refers to Genre = 'Photography'; highest total sentiment subjectivity score = MAX(sum(Sentiment_Subjectivity));
SQL: SELECT T1.App FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.Genres = 'Photography' GROUP BY T1.App ORDER BY SUM(T2.Sentiment_Subjectivity) DESC LIMIT 1
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: List all the comments on the lowest rated Mature 17+ app.
Evidence: comments refers to Translated_Review; lowest rated refers to Rating = 1; Mature 17+ refers to Content Rating = 'Mature 17+ ';
SQL: SELECT T2.Translated_Review FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1."Content Rating" = 'Mature 17+' ORDER BY T1.Rating LIMIT 1
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: What is the number of installments of the app with the highest total Sentiment polarity score?
Evidence: installments refers to Installs; highest total sentiment polarity score = MAX(SUM(Sentiment_Polarity));
SQL: SELECT T1.Installs FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App GROUP BY T1.App ORDER BY SUM(T2.Sentiment_Polarity) DESC LIMIT 1
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: What is the number of neutral comments from all the weather apps?
Evidence: neutral comments refers to Sentiment = 'Neutral'; weather app refers to Genre = 'Weather';
SQL: SELECT COUNT(T2.Sentiment) FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.Genres = 'Weather' AND T2.Sentiment = 'Neutral'
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: Which 1,000,000,000+ intalls apps has the most no comment reviews?
Evidence: no comment refers to Translated_Review = 'nan'; most no comment reviews = (MAX(COUNT(Translated_Review = 'nan')));
SQL: SELECT T1.App FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.Installs = '1,000,000+' AND T2.Translated_Review = 'nan' GROUP BY T1.App ORDER BY COUNT(T2.Translated_Review) DESC LIMIT 1
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: What is the rating and the total Sentiment subjectivity score of "Onefootball - Soccer Scores"?
Evidence: Onefootball - Soccer Scores refers to App = 'Onefootball - Soccer Scores';
SQL: SELECT T1.Rating, SUM(T2.Sentiment_Subjectivity) FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.App = 'Onefootball - Soccer Scores'
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: What percentage of no comment reviews are from "Teen" content rating apps?
Evidence: no comment refers to Translated_Review = 'nan'; percentage = DIVIDE((SUM(Content Rating = 'Teen')), COUNT(*));
SQL: SELECT CAST(COUNT(CASE WHEN T1.`Content Rating` = 'Teen' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.App) FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T2.Translated_Review = 'nan'
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: Which apps have 5 rating? List out then application name.
Evidence: application name refers to App;
SQL: SELECT DISTINCT App FROM playstore WHERE Rating = 5
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: Which apps have been reviewed more than 75 000 000 times and the content is suitable for teenagers?
Evidence: Reviews>75000000; suitable for teenagers refers to Content Rating = 'Teen';
SQL: SELECT DISTINCT App FROM playstore WHERE Reviews > 75000000 AND `Content Rating` = 'Teen'
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: List out genre that have downloads more than 1000000000.
Evidence: downloads and installs are synonyms; Installs = '1,000,000,000+';
SQL: SELECT Genres FROM playstore WHERE Installs = '1,000,000,000+' GROUP BY Genres
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: What is the average price for a dating application?
Evidence: average price = AVG(Price where Genre = 'Dating'); dating application refers to Genre = 'Dating';
SQL: SELECT AVG(Price) FROM playstore WHERE Genres = 'Dating'
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: What is the average download for entertainment apps with size no more than 1.0 M?
Evidence: downloads and installs are synonyms; entertainment apps refers to Category = 'ENTERTAINMENT';
SQL: SELECT AVG(CAST(REPLACE(REPLACE(Installs, ',', ''), '+', '') AS INTEGER)) FROM playstore WHERE Category = 'ENTERTAINMENT' AND Size < '1.0M'
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: What is the average review number for application with 5 rating?
Evidence: average review = AVG(Review); application refers to app; Rating = 5;
SQL: SELECT AVG(Reviews) FROM playstore WHERE Rating = 5
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: List out the top 3 genre for application with a sentiment review greater than 0.5.
Evidence: sentiment review refers to Sentiment_Polarity; Sentiment_Polarity>0.5;
SQL: SELECT Genres FROM playstore WHERE App IN ( SELECT App FROM user_reviews WHERE Sentiment = 'Positive' AND Sentiment_Polarity > 0.5 ORDER BY Sentiment_Polarity DESC LIMIT 3 )
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: What is the percentage of application with 4.7 rating having more positives sentiment than negative sentiment?
Evidence: percentage = DIVIDE(SUBTRACT(SUM(Sentiment = 'Positive')), (SUM(Sentiment = 'Negative')), SUM(Sentiment = 'Negative')) as percentage; having more positive sentiment than negative sentiment refers to Sentiment = 'Positive'>Sentiment = 'Negative';
SQL: SELECT CAST(COUNT(CASE WHEN ( SELECT COUNT(CASE WHEN Sentiment = 'Positive' THEN 1 ELSE NULL END) - COUNT(CASE WHEN Sentiment = 'Negative' THEN 1 ELSE NULL END) FROM user_reviews GROUP BY App ) > 0 THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T2.Sentiment) FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.Rating = 4.7
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: List down app that does not have negative sentiment and give their average rating?
Evidence: doest not have negative sentiment refers to Sentiment! = 'Negative'; average = AVG(Sentiment_Polarity);
SQL: SELECT T1.App, AVG(T2.Sentiment_Polarity) FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T2.Sentiment != 'Negative' GROUP BY T1.App
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: List down application that have not been updated since 2015. What is the percentage of this application having more negative sentiment than positive sentiment?
Evidence: percentage = DIVIDE(SUBTRACT(SUM(Sentiment = 'Positive')), (SUM(Sentiment = 'Negative'))), (SUM(Sentiment = 'Negative')) as percent; Last Updated>'2015';
SQL: SELECT CAST((( SELECT COUNT(*) Po FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE SUBSTR(T1."Last Updated", -4, 4) > '2015' AND T2.Sentiment = 'Positive' ) - ( SELECT COUNT(*) Ne FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE SUBSTR(T1."Last Updated", -4, 4) > '2015' AND T2.Sentiment = 'Negative' )) AS REAL) * 100 / ( SELECT COUNT(*) NUM FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE SUBSTR(T1."Last Updated", -4, 4) > '2015' )
Database: app_store
Tables: playstore, user_reviews
Columns (table index, column name): -1, *, 0, App, 0, Category, 0, Rating, 0, Reviews, 0, Size, 0, Installs, 0, Type, 0, Price, 0, Content Rating, 0, Genres, 1, App, 1, Translated_Review, 1, Sentiment, 1, Sentiment_Polarity, 1, Sentiment_Subjectivity
Question: What is the percentage for free application with a rating 4.5 and above have not been updated since 2018?
Evidence: paid refers to Type = 'Paid'; application refers to App; Rating>4.5; Last Updated>'2018; percentage = DIVIDE(SUM(Genres = 'Mature 17+' and Rating>4.5 and substr("Last Updated",-4,4)>'2018' )), (COUNT(App)) as percent;
SQL: SELECT CAST(SUM(CASE WHEN SUBSTR('Last Updated', -4) > '2018' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(App) PER FROM playstore WHERE Type = 'Free' AND Rating >= 4.5