SELECT DISTINCT ?uri WHERE { <http://dbpedia.org/resource/British_Gazette> <http://dbpedia.org/property/editor> ?uri. <http://dbpedia.org/resource/Peter_Thorneycroft> <http://dbpedia.org/property/primeminister> ?uri}
Who is the compiler of British Gazette whose prime minister is also Peter Thorneycroft?
SELECT DISTINCT ?m WHERE { resource:British_Gazette property:editor ?m . resource:Peter_Thorneycroft property:primeminister ?m }
Winston Churchill
The editor of the British Gazette and the prime minister of Peter Thorneycroft is [Winston Churchill].
British newspaper editor and Prime Minister Peter Thorneycroft is [Winston Churchill].