promises rehabilitation center has seen what celebrity stay at it the most often for rehab?
Entity
m.01pgzn_
Lindsay Lohan
class class literal entity
celebrities.celebrity celebrities.rehab 0^^http://www.w3.org/2001/XMLSchema#int m.04c_yxm
celebrities.celebrity celebrities.rehab type.datetime celebrities.rehab_facility
Celebrity Rehab 0 Promises Rehabilitation Center
none none argmax none
celebrities.rehab.celebrity celebrities.rehab.completed celebrities.rehab_facility.celebrity_patients
Celebrity Completed Celebrity patients
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 :celebrities.celebrity . 
?x1 :type.object.type :celebrities.rehab . 
{
SELECT (MAX(?y2) AS ?x2)  WHERE { 
?y0 :type.object.type :celebrities.celebrity . 
?y1 :type.object.type :celebrities.rehab . 
VALUES ?y3 { :m.04c_yxm } 
?y1 :celebrities.rehab.celebrity ?y0 . 
?y1 :celebrities.rehab.completed ?y2 . 
?y3 :celebrities.rehab_facility.celebrity_patients ?y1 . 
FILTER ( ?y0 != ?y1 && ?y0 != ?y2 && ?y0 != ?y3 && ?y1 != ?y2 && ?y1 != ?y3 && ?y2 != ?y3  )
}
}
VALUES ?x3 { :m.04c_yxm } 
?x1 :celebrities.rehab.celebrity ?x0 . 
?x1 :celebrities.rehab.completed ?x2 . 
?x3 :celebrities.rehab_facility.celebrity_patients ?x1 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x0 != ?x3 && ?x1 != ?x2 && ?x1 != ?x3 && ?x2 != ?x3  )
}
}
(ARGMAX (AND celebrities.celebrity (JOIN (R celebrities.rehab.celebrity) (JOIN (R celebrities.rehab_facility.celebrity_patients) m.04c_yxm))) (JOIN (R celebrities.rehab.celebrity) celebrities.rehab.completed))