which appointee is the author of a quotation regarding uncategorised?
Entity Entity Entity
m.01zwrd m.0c_md_ m.01_xg9
Felix Frankfurter Gerald Ford William O. Douglas
class class entity
people.appointee media_common.quotation m.048knc8
people.appointee media_common.quotation media_common.quotation_subject
Appointee Quotation Uncategorised
none none none
media_common.quotation.author media_common.quotation.subjects
Author Subjects
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 :people.appointee . 
?x1 :type.object.type :media_common.quotation . 
VALUES ?x2 { :m.048knc8 } 
?x1 :media_common.quotation.author ?x0 . 
?x1 :media_common.quotation.subjects ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND people.appointee (JOIN (R media_common.quotation.author) (JOIN media_common.quotation.subjects m.048knc8)))