What is {writers} of {Capitalism and Freedom}, that has {holds position} is {president} ?
Who is the author of Capitalism and Flexibility who holds position as president?
Who is the writer of Capitalism and Freedom who holds position as president?
SELECT ?d WHERE { resource:Capitalism_and_Freedom property:author ?d . ?d property:position_held resource:president }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q2631183> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P50>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P39> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q30461> . }
SELECT ?answer WHERE { wd:Q2631183 wdt:P50 ?answer . ?answer wdt:P39 wd:Q30461}