you should be able to add to the existing query
"and c05 > 6"
c05 being Rating and 6 being the rating of the movie. The rating should go from 1-10
queryvideodatabase(select c00,c01 from movie where c14 LIKE '{1}%%' or c14 LIKE '%% {1}%%' and c05 > 6 order by random() Limit 1)