Did {PHP} {influenced by} {C++} and {PHP} ?
Did C++ and PHP influence PHP?
Was PHP influenced by C++ and PHP?
ASK WHERE { resource:PHP property:influenced_by resource:C++ . resource:PHP property:influenced_by resource:PHP }
 ASK { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q59> . ?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/Q2407>. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q59> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P737> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q59>. } 
ASK WHERE { wd:Q59 wdt:P737 wd:Q2407 . wd:Q59 wdt:P737 wd:Q59 }