war of the grand alliance had which military person participate in it?
Entity Entity Entity Entity Entity
m.011xv_ m.01fc3n m.019ffj m.0c8lwl m.0d63yg
John Churchill, 1st Duke of Marlborough James FitzJames, 1st Duke of Berwick James Butler, 2nd Duke of Ormonde Peter Lacy Prince Georg Friedrich of Waldeck
class entity
military.military_person m.01gqg3
military.military_person military.military_conflict
Military Person war of the grand alliance
none none
military.military_person.participated_in_conflicts
Participated in conflicts
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_person . 
VALUES ?x1 { :m.01gqg3 } 
?x0 :military.military_person.participated_in_conflicts ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND military.military_person (JOIN military.military_person.participated_in_conflicts m.01gqg3))