what is the name of the the celebrity who dated with shanna moakler
Entity Entity Entity Entity
m.038rzr m.01tnxc m.01wqpnm m.01n5z11
Gerard Butler Dennis Quaid William Michael Albert Broad Jordan Knight
class class entity entity
celebrities.celebrity celebrities.romantic_relationship m.05trb8 m.02_7k44
celebrities.celebrity celebrities.romantic_relationship celebrities.celebrity celebrities.romantic_relationship_type
Celebrity Romantic relationship Shanna Moakler Dated
none none none none
celebrities.celebrity.sexual_relationships celebrities.romantic_relationship.celebrity celebrities.romantic_relationship.relationship_type
Romantic relationships (with celebrities) Celebrity Relationship type
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.romantic_relationship . 
VALUES ?x2 { :m.05trb8 } 
VALUES ?x3 { :m.02_7k44 } 
?x0 :celebrities.celebrity.sexual_relationships ?x1 . 
?x1 :celebrities.romantic_relationship.celebrity ?x2 . 
?x1 :celebrities.romantic_relationship.relationship_type ?x3 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x0 != ?x3 && ?x1 != ?x2 && ?x1 != ?x3 && ?x2 != ?x3  )
}
}
(AND celebrities.celebrity (JOIN celebrities.celebrity.sexual_relationships (AND (JOIN celebrities.romantic_relationship.celebrity m.05trb8) (JOIN celebrities.romantic_relationship.relationship_type m.02_7k44))))