Table: bollywood_films_gross_6
Columns: rank
movie
year
studio_s
opening_day_net_gross
day_of_week

Question: What is the average rank of the Reliance Entertainment movie with an opening day on Wednesday before 2012?
SQL: SELECT AVG("rank") FROM bollywood_films_gross_6 WHERE "day_of_week" = 'wednesday' AND "year" < 2012 AND "studio_s" = 'reliance entertainment'

Question: What is the opening day net gross a Reliance Entertainment movie before 2011 had?
SQL: SELECT SUM("opening_day_net_gross") FROM bollywood_films_gross_6 WHERE "studio_s" = 'reliance entertainment' AND "year" < 2011

Question: What is the studio of ra.one?
SQL: SELECT "studio_s" FROM bollywood_films_gross_6 WHERE "movie" = 'ra.one'

Question: What is the year of the movie with an opening day on Friday with a rank 10?
SQL: SELECT COUNT("year") FROM bollywood_films_gross_6 WHERE "day_of_week" = 'friday' AND "rank" = 10