What is {adapted from} of {common-law spouse} of {Li Shang} ?
Name the law Which is adapted from the common-law wife of Li Shang?
Which is adapted from the common-law wife of Li Shang?
SELECT ?w WHERE { resource:Li_Shang property:unmarried_partner ?g . ?g property:based_on ?w }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q27864129> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P451>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?X . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?X. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P144> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q27864129 wdt:P451 ?X . ?X wdt:P144 ?answer}