What is the {sexual orientation} and the {sex or gender} of {Ricky_Martin} ?
What is Ricky Martin's sexual preference?
What is the {sexual orientation} and the {sex or gender} of {Ricky_Martin} ?
SELECT ?y ?m WHERE { resource:Ricky_Martin property:sex_or_gender ?m . resource:Ricky_Martin property:sexual_orientation ?y }
 SELECT ?ans_1 ?ans_2 WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q128799> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P91> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?ans_1. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q128799> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P21> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?ans_2. } 
SELECT ?ans_1 ?ans_2 WHERE { wd:Q128799 wdt:P91 ?ans_1 . wd:Q128799 wdt:P21 ?ans_2 }
homosexuality male