SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/ontology/subsequentWork> <http://dbpedia.org/resource/If_We_Were_a_Movie> . ?uri <http://dbpedia.org/ontology/openingTheme> ?x . ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/TelevisionShow>}
Which shows' opening themes was used to make If We Were a Movie?
SELECT DISTINCT ?q WHERE { ?q property:opening_theme ?x . ?q rdf:type ontology:Television_Show . ?x property:subsequent_work resource:If_We_Were_a_Movie }
Hannah Montana
[Hannah Montana] is the television show whose opening theme's subsequent work is If We Were a Movie.
[Hannah Montana] is a TV show whose first theme is If We Were a Movie.