Question: Who had a relationship with the actress portraying Rachel Berry?
Answer(s):
answer: Matthew Morrison
answer: Cory Monteith

SPARQL query:
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT DISTINCT ?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:film.actor.film ?k .
?k ns:film.performance.character ns:m.07rxbl6 . 
?c ns:celebrities.celebrity.sexual_relationships ?y .
?y ns:celebrities.romantic_relationship.celebrity ?x .
?y ns:celebrities.romantic_relationship.relationship_type ns:m.02_7k44 .
FILTER(NOT EXISTS {?y ns:celebrities.romantic_relationship.start_date ?sk0} || 
EXISTS {?y ns:celebrities.romantic_relationship.start_date ?sk1 . 
FILTER(xsd:datetime(?sk1) <= "2015-08-10"^^xsd:dateTime) })
FILTER(NOT EXISTS {?y ns:celebrities.romantic_relationship.end_date ?sk2} || 
EXISTS {?y ns:celebrities.romantic_relationship.end_date ?sk3 . 
FILTER(xsd:datetime(?sk3) >= "2015-08-10"^^xsd:dateTime) })
}