For what work was Paul Thomas Anderson nominated for the Academy Award for Best Writing, Adapted Screenplay ?
SELECT ?value WHERE { wd:Q25132 p:P1411 ?s . ?s ps:P1411 wd:Q107258 . ?s pq:P1686 ?value}
paul thomas anderson: Q25132 academy award for best writing, adapted screenplay: Q107258