What is {instance of} of {fluorine} that is {followed by} is {neon} ?
Which is an example of fluorine that comes after neon?
What is the instance of fluorine that is followed by neon?
SELECT ?u WHERE { resource:fluorine rdf:type ?u . ?u property:followed_by resource:neon . ?u rdf:type ?u }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q650> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P31> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P156> <http://wikidata.dbpedia.org/resource/Q654>
} 

SELECT ?obj WHERE { wd:Q650 p:P31 ?s . ?s ps:P31 ?obj . ?s pq:P156 wd:Q654 }