Thanks Giftie,
I think in this case, that's about as short as you can make it! Haven't tested it but it looks good.
So are you going to keep it like this and publish it, or do you want to use movie ids instead of titles?
Auri: the actors are in a separate table from the movieview, and the link between actors and movies is in yet another table, hence the joins. When you have time check out google for "xbmc database" or better yet, grab an sqLite viewer and check out the actual data in your library. Also note that we need to return movies as the end result, not actors.