Question: What association football club has a member who is the captain of the Brazil national football team having scored 30 points?
Choices:
Ipswich Town F.C.
Middlesbrough F.C.
Queens Park Rangers F.C.
Stade Brestois 29
Roda JC Kerkrade
Sheffield United F.C.
Hibernian F.C.
Santos F.C.
Paris Saint-Germain F.C.
Brisbane Roar FC
Program:
function: Find
inputs: Brazil national football team
function: Relate
dependencies: 0
inputs: captain
forward
function: FilterConcept
dependencies: 1
inputs: human
function: Relate
dependencies: 2
inputs: member of sports team
forward
function: QFilterNum
dependencies: 3
inputs: number of points/goals/set scored
30
=
function: FilterConcept
dependencies: 4
inputs: association football club
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "association football club" . ?e_1 <member_of_sports_team> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "human" . ?e_2 <captain> ?e_1 . ?e_2 <pred:name> "Brazil national football team" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <member_of_sports_team> ; <pred:fact_t> ?e ] <number_of_points/goals/set_scored> ?qpv . ?qpv <pred:unit> "1" . ?qpv <pred:value> "30"^^xsd:double .  }
Answer: Paris Saint-Germain F.C.