What is {legislative body} of {Lincoln} that is {number of seats} is {7.0} ?
Which legislative body had seven seats under Lincoln?
What legislative body under Lincoln had 7 seats?
SELECT ?f WHERE { resource:Lincoln property:legislative_body ?w . ?w property:legislative_body ?f . ?w property:number_of_seats ?d . FILTER ( CONTAINS ( ?d , '7.0' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q28260> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P194> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P1342> <7.0>
} 

SELECT ?obj WHERE { wd:Q28260 p:P194 ?s . ?s ps:P194 ?obj . ?s pq:P1342 ?x filter(contains(?x , '7.0')) }