how many books written by pierre loti are written in the french?
Value
1
class entity entity
book.book m.01hdtr m.064_8sq
book.book book.author language.human_language
Book Pierre Loti French
count none none
book.written_work.author book.written_work.original_language
Author Original language
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 (COUNT(?x0) AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :book.book . 
VALUES ?x1 { :m.01hdtr } 
VALUES ?x2 { :m.064_8sq } 
?x0 :book.written_work.author ?x1 . 
?x0 :book.written_work.original_language ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(COUNT (AND book.book (AND (JOIN book.written_work.author m.01hdtr) (JOIN book.written_work.original_language m.064_8sq))))