what is the medical trial design of the latest trial end date?
Entity Entity Entity Entity
m.040ftnw m.059ns1 m.03zbhff m.040ftth
Parallel Assignment Open-label trial Treatment, Randomized Efficacy Study
class class literal
medicine.medical_trial_design medicine.medical_trial 0^^http://www.w3.org/2001/XMLSchema#int
medicine.medical_trial_design medicine.medical_trial type.datetime
Medical trial design Medical trial 0
none none argmax
medicine.medical_trial.design medicine.medical_trial.end_date
Design End date
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 :medicine.medical_trial_design . 
?x1 :type.object.type :medicine.medical_trial . 
{
SELECT (MAX(?y2) AS ?x2)  WHERE { 
?y0 :type.object.type :medicine.medical_trial_design . 
?y1 :type.object.type :medicine.medical_trial . 
?y1 :medicine.medical_trial.design ?y0 . 
?y1 :medicine.medical_trial.end_date ?y2 . 
FILTER ( ?y0 != ?y1 && ?y0 != ?y2 && ?y1 != ?y2  )
}
}
?x1 :medicine.medical_trial.design ?x0 . 
?x1 :medicine.medical_trial.end_date ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(ARGMAX medicine.medical_trial_design (JOIN (R medicine.medical_trial.design) medicine.medical_trial.end_date))