Simple Question (Direct)
Simple Question
Q3221471
P57
Q502895
USER
Who was the director of The Devil's Circus ?
(Q3221471,P57,c(Q502895))
action filter_type
action find
entity Q3221471
relation P57
type Q502895
['Q3221471', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . resource:Q3221471 property:P57 ?q }
The Devil's Circus
action filter_type
action find
entity The Devil's Circus
relation director
type common name
["The Devil's Circus", 'director', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . resource:The_Devil's_Circus property:director ?q }
[]
common name
Q817442
SYSTEM
Benjamin Christensen
Q817442
(Q3221471,P57,c(Q502895))
action filter_type
action find
entity Q3221471
relation P57
type Q502895
The director of The Devil's Circus was Lars [ANSWER]
['Q3221471', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . resource:Q3221471 property:P57 ?q }
Benjamin Christensen
The director of The Devil's Circus was Lars Benjamin Christensen
Benjamin Christensen
action filter_type
action find
entity The Devil's Circus
relation director
type common name
["The Devil's Circus", 'director', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . resource:The_Devil's_Circus property:director ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q817442
P21
Q290
USER
Which sex does that person belong to ?
(Q817442,P21,c(Q290))
action filter_type
action find
entity Q817442
relation P21
type Q290
['Q817442', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q290 . resource:Q817442 property:P21 ?x }
Benjamin Christensen
action filter_type
action find
entity Benjamin Christensen
relation gender
type sex
['Benjamin Christensen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:sex . resource:Benjamin_Christensen property:gender ?x }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q817442,P21,c(Q290))
action filter_type
action find
entity Q817442
relation P21
type Q290
That person belongs to [ANSWER]
['Q817442', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q290 . resource:Q817442 property:P21 ?x }
male
That person belongs to male
male
action filter_type
action find
entity Benjamin Christensen
relation gender
type sex
['Benjamin Christensen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:sex . resource:Benjamin_Christensen property:gender ?x }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q830773 Q3221471
P58
Q502895
USER
Which people were the screenwriters for The Devil's Circus or Key Largo ?
OR((Q3221471,P58,c(Q502895)), (Q830773,P58,c(Q502895)))
action filter_type
action union
action find
entity Q3221471
relation P58
action find
entity Q830773
relation P58
type Q502895
{'OR': [['Q3221471', 'P58', {'concept': 'Q502895'}], ['Q830773', 'P58', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q3221471 property:P58 ?n } UNION { resource:Q830773 property:P58 ?n } } . ?n rdf:type ontology:Q502895 }
Key Largo The Devil's Circus
action filter_type
action union
action find
entity The Devil's Circus
relation screenwriter
action find
entity Key Largo
relation screenwriter
type common name
{'OR': [["The Devil's Circus", 'screenwriter', {'concept': 'common name'}], ['Key Largo', 'screenwriter', {'concept': 'common name'}]]}
SELECT DISTINCT ?n WHERE { { { resource:The_Devil's_Circus property:screenwriter ?n } UNION { resource:Key_Largo property:screenwriter ?n } } . ?n rdf:type ontology:common_name }
[]
common name
Q817442 Q434342 Q51575 Q432919
SYSTEM
Benjamin Christensen, Richard Brooks, John Huston, Maxwell Anderson
Q817442 Q434342 Q51575 Q432919
OR((Q3221471,P58,c(Q502895)), (Q830773,P58,c(Q502895)))
action filter_type
action union
action find
entity Q3221471
relation P58
action find
entity Q830773
relation P58
type Q502895
[ANSWERS] were the screenwriters for The Devil's Circus or Key Largo
{'OR': [['Q3221471', 'P58', {'concept': 'Q502895'}], ['Q830773', 'P58', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q3221471 property:P58 ?n } UNION { resource:Q830773 property:P58 ?n } } . ?n rdf:type ontology:Q502895 }
Benjamin Christensen Richard Brooks John Huston Maxwell Anderson
Benjamin Christensen, Richard Brooks, John Huston and Maxwell Anderson were the screenwriters for The Devil's Circus or Key Largo
Benjamin Christensen Richard Brooks John Huston Maxwell Anderson
action filter_type
action union
action find
entity The Devil's Circus
relation screenwriter
action find
entity Key Largo
relation screenwriter
type common name
{'OR': [["The Devil's Circus", 'screenwriter', {'concept': 'common name'}], ['Key Largo', 'screenwriter', {'concept': 'common name'}]]}
SELECT DISTINCT ?n WHERE { { { resource:The_Devil's_Circus property:screenwriter ?n } UNION { resource:Key_Largo property:screenwriter ?n } } . ?n rdf:type ontology:common_name }
[]