Example #1
0
    def interpret(self, match):
        _country, i, j = match.country
        president = PresidentOf(_country)
        incumbent = IncumbentOf(president)
        label = LabelOf(incumbent)

        return label, ReturnValue(i, j)
Example #2
0
 def interpret(self, match):
     _movie, i, j = match.movie
     actor = NameOf(IsPerson() + StarsIn(_movie))
     return actor, ReturnValue(i, j)
Example #3
0
 def interpret(self, match):
     _movie, i, j = match.movie
     director = IsPerson() + DirectorOf(_movie)
     director_name = NameOf(director)
     return director_name, ReturnValue(i, j)
Example #4
0
 def interpret(self, match):
     _movie, i, j = match.movie
     release_date = ReleaseDateOf(_movie)
     return release_date, ReturnValue(i, j)
Example #5
0
 def interpret(self, match):
     tv_show, i, j = match.tvshow
     creator = CreatorOf(tv_show)
     label = LabelOf(creator)
     return label, ReturnValue(i, j)
Example #6
0
 def interpret(self, match):
     _band_name, i, j = match.band
     active_years = ActiveYears(_band_name)
     return active_years, ReturnValue(i, j)
Example #7
0
 def interpret(self, match):
     _band_name, i, j = match.band
     result = _band_name + ArtistOf(IsSong())
     return result, ReturnValue(i, j)
Example #8
0
 def interpret(self, match):
     _band_name, i, j = match.band
     album = IsAlbum() + ProducedBy(_band_name)
     name = NameOf(album)
     return name, ReturnValue(i, j)
Example #9
0
 def interpret(self, match):
     _book, i, j = match.book
     author = NameOf(IsPerson() + AuthorOf(_book))
     return author, ReturnValue(i, j)
Example #10
0
 def interpret(self, match):
     _author, i, j = match.author
     book = IsBook() + HasAuthor(_author)
     book_name = NameOf(book)
     return book_name, ReturnValue(i, j)
Example #11
0
 def interpret(self, match):
     tv_show, i, j = match.tvshow
     number_of_episodes = NumberOfEpisodesIn(tv_show)
     return number_of_episodes, ReturnValue(i, j)
Example #12
0
 def interpret(self, match):
     tv_show, i, j = match.tvshow
     actor = IsPerson() + StarsIn(tv_show)
     name = LabelOf(actor)
     return name, ReturnValue(i, j)
Example #13
0
 def interpret(self, match):
     tv_show, i, j = match.tvshow
     release_date = ReleaseDateOf(tv_show)
     return release_date, ReturnValue(i, j)
Example #14
0
    def interpret(self, match):
        _director, i, j = match.director
        movie = IsMovie() + DirectedBy(_director)
        movie_name = LabelOf(movie)

        return movie_name, ReturnValue(i, j)
Example #15
0
 def interpret(self, match):
     _country, i, j = match.country
     capital = CapitalOf(_country)
     label = LabelOf(capital)
     return label, ReturnValue(i, j)
Example #16
0
 def interpret(self, match):
     _movie, i, j = match.movie
     duration = DurationOf(_movie)
     return duration, ReturnValue(i, j)
Example #17
0
 def interpret(self, match):
     _country, i, j = match.country
     language = LanguageOf(_country)
     return language, ReturnValue(i, j)
Example #18
0
 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)
Example #19
0
 def interpret(self, match):
     _country, i, j = match.country
     population = PopulationOf(_country)
     return population, ReturnValue(i, j)
Example #20
0
 def interpret(self, match):
     _band_name, i, j = match.band
     member = IsMemberOf(_band_name)
     label = LabelOf(member)
     return label, ReturnValue(i, j)
Example #21
0
 def interpret(self, match):
     _actor, i, j = match.actor
     movie = IsMovie() + HasActor(_actor)
     movie_name = NameOf(movie)
     return movie_name, ReturnValue(i, j)
Example #22
0
 def interpret(self, match):
     _band_name, i, j = match.band
     genre = MusicGenreOf(_band_name)
     label = LabelOf(genre)
     return label, ReturnValue(i, j)
Example #23
0
 def interpret(self, match):
     _actor, i, j = match.actor
     show = IsTvShow() + HasActor(_actor)
     show_name = ShowNameOf(show)
     return show_name, ReturnValue(i, j)