Question: What is the character role of John Goodman (the one whose children number is 1) in The Flintstones (the one whose title is The Flintstones)?
Choices:
Archdeacon
Willie Lumpkin
Freddy Lounds
Marie Antoinette
Fred Flintstone
J.D.
Professor Rodney Cole
Marshall Carter
Ron Kovic
Milady de Winter
Program:
function: Find
inputs: The Flintstones
function: FilterStr
dependencies: 0
inputs: title
The Flintstones
function: Find
inputs: John Goodman
function: FilterNum
dependencies: 2
inputs: number of children
1
=
function: QueryRelationQualifier
dependencies: 1
3
inputs: cast member
character role
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "The Flintstones" . ?e_1 <title> ?pv . ?pv <pred:value> "The Flintstones" . ?e_2 <pred:name> "John Goodman" . ?e_2 <number_of_children> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "1"^^xsd:double . ?e_1 <cast_member> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e_2 ] <character_role> ?qpv .  }
Answer: Fred Flintstone