machine_question: what movies does logan lerman play in and was nominated an award with the describtion "Based on his book"
question: What movie was nominated for an award, was based on a book, and featured Logan Lerman as an actor?
sparql: PREFIX ns: <http://rdf.freebase.com/ns/>
  SELECT DISTINCT ?x
  WHERE {
  FILTER (?x != ns:m.04f1s6)
  FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
  ns:m.04f1s6 ns:film.actor.film ?y .
  ?y ns:film.performance.film ?x .
  ?x ns:award.award_nominated_work.award_nominations ?c .
  ?c ns:award.award_nomination.notes_description "Based on his book"@en . 
  }
  
webqsp_question: what movies does logan lerman play in