What is {number of speakers} of {Spanish} that is {applies to part} is {first language} ?
Give me the number of people that speak Spanish as their first language.
How many people speak spanish as their first language
SELECT ?a WHERE { ?w property:number_of_speakers ?a . ?w property:applies_to_part resource:first_language . resource:Spanish property:number_of_speakers ?w }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1321> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1098> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P518> <http://wikidata.dbpedia.org/resource/Q36870>
} 

SELECT ?obj WHERE { wd:Q1321 p:P1098 ?s . ?s ps:P1098 ?obj . ?s pq:P518 wd:Q36870 }