def interpret(self, match): _country, i, j = match.country president = PresidentOf(_country) incumbent = IncumbentOf(president) label = LabelOf(incumbent) return label, ReturnValue(i, j)
def interpret(self, match): _movie, i, j = match.movie actor = NameOf(IsPerson() + StarsIn(_movie)) return actor, ReturnValue(i, j)
def interpret(self, match): _movie, i, j = match.movie director = IsPerson() + DirectorOf(_movie) director_name = NameOf(director) return director_name, ReturnValue(i, j)
def interpret(self, match): _movie, i, j = match.movie release_date = ReleaseDateOf(_movie) return release_date, ReturnValue(i, j)
def interpret(self, match): tv_show, i, j = match.tvshow creator = CreatorOf(tv_show) label = LabelOf(creator) return label, ReturnValue(i, j)
def interpret(self, match): _band_name, i, j = match.band active_years = ActiveYears(_band_name) return active_years, ReturnValue(i, j)
def interpret(self, match): _band_name, i, j = match.band result = _band_name + ArtistOf(IsSong()) return result, ReturnValue(i, j)
def interpret(self, match): _band_name, i, j = match.band album = IsAlbum() + ProducedBy(_band_name) name = NameOf(album) return name, ReturnValue(i, j)
def interpret(self, match): _book, i, j = match.book author = NameOf(IsPerson() + AuthorOf(_book)) return author, ReturnValue(i, j)
def interpret(self, match): _author, i, j = match.author book = IsBook() + HasAuthor(_author) book_name = NameOf(book) return book_name, ReturnValue(i, j)
def interpret(self, match): tv_show, i, j = match.tvshow number_of_episodes = NumberOfEpisodesIn(tv_show) return number_of_episodes, ReturnValue(i, j)
def interpret(self, match): tv_show, i, j = match.tvshow actor = IsPerson() + StarsIn(tv_show) name = LabelOf(actor) return name, ReturnValue(i, j)
def interpret(self, match): tv_show, i, j = match.tvshow release_date = ReleaseDateOf(tv_show) return release_date, ReturnValue(i, j)
def interpret(self, match): _director, i, j = match.director movie = IsMovie() + DirectedBy(_director) movie_name = LabelOf(movie) return movie_name, ReturnValue(i, j)
def interpret(self, match): _country, i, j = match.country capital = CapitalOf(_country) label = LabelOf(capital) return label, ReturnValue(i, j)
def interpret(self, match): _movie, i, j = match.movie duration = DurationOf(_movie) return duration, ReturnValue(i, j)
def interpret(self, match): _country, i, j = match.country language = LanguageOf(_country) return language, ReturnValue(i, j)
def interpret(self, match): _album, i, j = match.album _band_name, i1, j1 = match.band result = _band_name + ArtistOf(IsSong() + PartOfAlbum(_album)) return result, ReturnValue(i, j)
def interpret(self, match): _country, i, j = match.country population = PopulationOf(_country) return population, ReturnValue(i, j)
def interpret(self, match): _band_name, i, j = match.band member = IsMemberOf(_band_name) label = LabelOf(member) return label, ReturnValue(i, j)
def interpret(self, match): _actor, i, j = match.actor movie = IsMovie() + HasActor(_actor) movie_name = NameOf(movie) return movie_name, ReturnValue(i, j)
def interpret(self, match): _band_name, i, j = match.band genre = MusicGenreOf(_band_name) label = LabelOf(genre) return label, ReturnValue(i, j)
def interpret(self, match): _actor, i, j = match.actor show = IsTvShow() + HasActor(_actor) show_name = ShowNameOf(show) return show_name, ReturnValue(i, j)