which galaxy has the earliest galactic interaction?
Entity Entity
m.07q38c m.0jvb4
Milky Way Andromeda Galaxy
class class literal
astronomy.galaxy astronomy.galactic_interaction 0^^http://www.w3.org/2001/XMLSchema#int
astronomy.galaxy astronomy.galactic_interaction type.float
Galaxy Galactic interaction 0
none none argmin
astronomy.galactic_interaction.galaxy astronomy.galactic_interaction.when
Galaxy When
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 :astronomy.galaxy . 
?x1 :type.object.type :astronomy.galactic_interaction . 
{
SELECT (MIN(?y2) AS ?x2)  WHERE { 
?y0 :type.object.type :astronomy.galaxy . 
?y1 :type.object.type :astronomy.galactic_interaction . 
?y1 :astronomy.galactic_interaction.galaxy ?y0 . 
?y1 :astronomy.galactic_interaction.when ?y2 . 
FILTER ( ?y0 != ?y1 && ?y0 != ?y2 && ?y1 != ?y2  )
}
}
?x1 :astronomy.galactic_interaction.galaxy ?x0 . 
?x1 :astronomy.galactic_interaction.when ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(ARGMIN astronomy.galaxy (JOIN (R astronomy.galactic_interaction.galaxy) astronomy.galactic_interaction.when))