What is {award received} of {Dennis M. Ritchie} that is {together with} is {Ken Thompson} ?
Name the award given to both Ken Thompson and Dennis M. Ritchie.
What award was received by Dennis M. Ritchie and Ken Thompson ?
SELECT ?i WHERE { ?h property:together_with resource:Ken_Thompson . ?h property:award_received ?i . resource:Dennis_M._Ritchie property:award_received ?h }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q45575> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P166> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P1706> <http://wikidata.dbpedia.org/resource/Q1107006>
} 

SELECT ?obj WHERE { wd:Q45575 p:P166 ?s . ?s ps:P166 ?obj . ?s pq:P1706 wd:Q1107006 }