Question: What is the official name of the soccer club Ben Sahar played 22 games for?
Choices:
Tallinna Football Club Levadia
Nokia Oyj
Salzburg
North Island
Royaume de Belgique
République fédérale d'Allemagne
RCD Espanyol de Barcelona
Propinsi Jawa Tengah
Baltimore
Нагоя Грампус
Program:
function: Find
inputs: Ben Sahar
function: Relate
dependencies: 0
inputs: member of sports team
forward
function: QFilterNum
dependencies: 1
inputs: number of matches played/races/starts
22
=
function: FilterConcept
dependencies: 2
inputs: association football club
function: QueryAttr
dependencies: 3
inputs: official name
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "association football club" . ?e_1 <member_of_sports_team> ?e . ?e_1 <pred:name> "Ben Sahar" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <member_of_sports_team> ; <pred:fact_t> ?e ] <number_of_matches_played/races/starts> ?qpv . ?qpv <pred:unit> "1" . ?qpv <pred:value> "22"^^xsd:double . ?e <official_name> ?pv .  }
Answer: RCD Espanyol de Barcelona