Question: What battles in which Stonewall Jackson fought are events that ended prior to 25 May 1862?
Answer(s):
answer: Battle of McDowell
answer: First Battle of Kernstown
answer: Battle of Front Royal
answer: Battle of Hoke's Run
answer: Battle of Hancock

SPARQL query:
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT DISTINCT ?x
WHERE {
FILTER (?x != ns:m.07r8h)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.07r8h ns:military.military_commander.military_commands ?y .
?y ns:military.military_command.military_conflict ?x .
?x ns:time.event.end_date ?num .
FILTER (?num < "1862-05-25"^^xsd:dateTime) . 
}