Question
Given a list of synonym pairs, write a function to determine which pairs of sentences in an input list of such queries are synonyms. Two sentences are synonyms if their words are equal or synonyms in order.
Example
Input
synonym_pairs: [('great', 'good'), ('great', 'excellent'), ('good', 'fine')]
sentence_pairs: [('Google is a good company', 'Google is a great company'), ('My performance is bad', 'My performance is poor')]
Output
result: [True, False]