What is {taxon parent} of {moth}, that has {vernacular name} is {Butterflies and Moths} ?
"Who is taxon parent of moth, whose vernacular title is Butterflies and Moths?"
"Who is taxon parent of moth, whose vernacular name is Butterflies and Moths?"
SELECT ?j WHERE { FILTER ( CONTAINS ( ?a , 'Butterflies and Moths' ) ) . resource:moth property:parent_taxon ?j . ?j property:taxon_common_name ?a }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1725788> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P171>. ?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/P1843> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <Butterflies and Moths> . }
SELECT ?answer WHERE { wd:Q1725788 wdt:P171 ?answer . ?answer wdt:P1843 ?x FILTER(contains(?x , 'Butterflies and Moths'))}
Lepidoptera