SELECT DISTINCT ?uri WHERE { <http://dbpedia.org/resource/Lance_Adams-Schneider> <http://dbpedia.org/property/president> ?uri. <http://dbpedia.org/resource/Daniel_O'Regan> <http://dbpedia.org/property/nickname> ?uri}
Which president of Lance Adams-Schneider had nickname Daniel O'Regan?
SELECT DISTINCT ?p WHERE { resource:Daniel_O'_Regan property:nickname ?p . resource:Lance_Adams-_Schneider property:president ?p }
Ronald Reagan
[Ronald Reagan] is the president of Lance Adams-Schneider and has nickname of the Daniel O'Regan.
[Ronald Reagan] is President Lance Adams-Schneider's and Daniel O'Regan's nickname.
[Ronald Reagan] is the President of the him and has nickname of the Daniel O'Regan.
[Ronald Reagan] is President of the United States with the nickname of Daniel O'Regan.