on 05/22/1862 what military unit was formed?
Entity Entity
m.0gtm31s m.0gtm31w
47th Regiment Alabama Infantry 48th Regiment Alabama Infantry
class literal
military.military_unit 1862-05-22^^http://www.w3.org/2001/XMLSchema#date
military.military_unit type.datetime
Military unit 05/22/1862
none none
military.military_unit.formed
Formed
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX : <http://rdf.freebase.com/ns/> 
SELECT (?x0 AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :military.military_unit . 
VALUES ?x1 { "1862-05-22-08:00"^^<http://www.w3.org/2001/XMLSchema#date> } 
?x0 :military.military_unit.formed ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND military.military_unit (JOIN military.military_unit.formed 1862-05-22^^http://www.w3.org/2001/XMLSchema#date))