Did {The_Beatles} {influenced by} {Timothy Leary}?
Was Timothy Leary an influence of the Beatles?
Were The Beatles influenced by Timothy Leary?
ASK WHERE { resource:The_Beatles property:influenced_by resource:Timothy_Leary }
 ASK { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1299> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P737> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q211731>. } 
ASK WHERE { wd:Q1299 wdt:P737 wd:Q211731 }