Question: During which war was Woodrow Wilson president while the Tampico Affair occurred?
Answer(s):
answer: United States occupation of Veracruz

SPARQL query:
#MANUAL SPARQL
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT DISTINCT  ?x
WHERE
{ 
  {
    SELECT ?pfrom ?pto
    WHERE {
      ns:m.083q7 ns:government.politician.government_positions_held ?y0 .  # Woodrow Wilson  
      ?y0 ns:government.government_position_held.basic_title ns:m.060c4 ;  # President
          ns:government.government_position_held.from ?pfrom ;
          ns:government.government_position_held.to ?pto .
    }
  }
  {
    SELECT ?from ?to ?x
    WHERE {
      ?x ns:common.topic.notable_types ns:m.02h76fz . # Military Conflict
      ?x ns:time.event.start_date ?from . 
      ?x ns:time.event.end_date ?to . 
      ?x ns:military.military_conflict.combatants ?y .
      ?y ns:military.military_combatant_group.combatants ns:m.09c7w0 .  # United States of America
    }
  }
  FILTER (?to <= ?pto && ?from >= ?pfrom) ?x ns:time.event.included_in_event ns:m.0279xc . 
}