Simple Question (Direct)
Simple Question
Q233464
P58
Q502895
USER
Who wrote the script for Annie Hall ?
(Q233464,P58,c(Q502895))
action filter_type
action find
entity Q233464
relation P58
type Q502895
['Q233464', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q233464 property:P58 ?i . ?i rdf:type ontology:Q502895 }
Annie Hall
action filter_type
action find
entity Annie Hall
relation screenwriter
type common name
['Annie Hall', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Annie_Hall property:screenwriter ?i . ?i rdf:type ontology:common_name }
[]
common name
Q459814 Q25089
SYSTEM
Marshall Brickman, Woody Allen
Q459814 Q25089
(Q233464,P58,c(Q502895))
action filter_type
action find
entity Q233464
relation P58
type Q502895
[ANSWERS] wrote the script for Annie Hall
['Q233464', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q233464 property:P58 ?i . ?i rdf:type ontology:Q502895 }
Marshall Brickman Woody Allen
Marshall Brickman and Woody Allen wrote the script for Annie Hall
Marshall Brickman Woody Allen
action filter_type
action find
entity Annie Hall
relation screenwriter
type common name
['Annie Hall', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Annie_Hall property:screenwriter ?i . ?i rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q25089
P40
Q502895
USER
Which people are a successors of that one ?
(Q25089,P40,c(Q502895))
action filter_type
action find
entity Q25089
relation P40
type Q502895
['Q25089', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q25089 property:P40 ?l . ?l rdf:type ontology:Q502895 }
Woody Allen
action filter_type
action find
entity Woody Allen
relation child
type common name
['Woody Allen', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Woody_Allen property:child ?l . ?l rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q25089
SYSTEM
Did you mean Woody Allen ?
Q459814 Q25089
(Q459814,P40,c(Q502895)) (Q25089,P40,c(Q502895))
[ANSWER]
['Q459814', 'P40', {'concept': 'Q502895'}] ['Q25089', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q25089 property:P40 ?l . ?l rdf:type ontology:Q502895 }
Marshall Brickman Woody Allen
Did you mean Woody Allen ?
Woody Allen
['Marshall Brickman', 'child', {'concept': 'common name'}] ['Woody Allen', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Woody_Allen property:child ?l . ?l rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q25089,P40,c(Q502895))
['Q25089', 'P40', {'concept': 'Q502895'}]
['Woody Allen', 'child', {'concept': 'common name'}]
[]
Q7365461 Q16217493
SYSTEM
Ronan Farrow, Moses Farrow
Q7365461 Q16217493
(Q25089,P40,c(Q502895))
action filter_type
action find
entity Q25089
relation P40
type Q502895
[ANSWERS] are a successors of that one
['Q25089', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q25089 property:P40 ?l . ?l rdf:type ontology:Q502895 }
Ronan Farrow Moses Farrow
Ronan Farrow and Moses Farrow are a successors of that one
Ronan Farrow Moses Farrow
action filter_type
action find
entity Woody Allen
relation child
type common name
['Woody Allen', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Woody_Allen property:child ?l . ?l rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q7365461 Q16217493
P21
Q290
USER
Which sexes do Ronan Farrow and Moses Farrow belong to ?
(Q7365461,P21,c(Q290)) (Q16217493,P21,c(Q290))
action union
action filter_type
action find
entity Q7365461
relation P21
type Q290
action filter_type
action find
entity Q16217493
relation P21
type Q290
['Q7365461', 'P21', {'concept': 'Q290'}] ['Q16217493', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?r ) { ( resource:Q7365461 ) ( resource:Q16217493 ) } . ?r property:P21 ?e }
Ronan Farrow Moses Farrow
action union
action filter_type
action find
entity Ronan Farrow
relation gender
type sex
action filter_type
action find
entity Moses Farrow
relation gender
type sex
['Ronan Farrow', 'gender', {'concept': 'sex'}] ['Moses Farrow', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?r ) { ( resource:Ronan_Farrow ) ( resource:Moses_Farrow ) } . ?r property:gender ?e }
[]
sex
Q6581097 Q6581097
SYSTEM
male
Q6581097 Q6581097
(Q7365461,P21,c(Q290)) (Q16217493,P21,c(Q290))
action union
action filter_type
action find
entity Q7365461
relation P21
type Q290
action filter_type
action find
entity Q16217493
relation P21
type Q290
Ronan Farrow and Moses Farrow belong to [ANSWER] and [ANSWER]
['Q7365461', 'P21', {'concept': 'Q290'}] ['Q16217493', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?r ) { ( resource:Q7365461 ) ( resource:Q16217493 ) } . ?r property:P21 ?e }
male male
Ronan Farrow and Moses Farrow belong to male and male
male male
action union
action filter_type
action find
entity Ronan Farrow
relation gender
type sex
action filter_type
action find
entity Moses Farrow
relation gender
type sex
['Ronan Farrow', 'gender', {'concept': 'sex'}] ['Moses Farrow', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?r ) { ( resource:Ronan_Farrow ) ( resource:Moses_Farrow ) } . ?r property:gender ?e }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7365461
P25
Q502895
USER
Which female person has a child named Ronan Farrow ?
(Q7365461,P25,c(Q502895))
action filter_type
action find
entity Q7365461
relation P25
type Q502895
['Q7365461', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q7365461 property:P25 ?b . ?b rdf:type ontology:Q502895 }
Ronan Farrow
action filter_type
action find
entity Ronan Farrow
relation mother
type common name
['Ronan Farrow', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Ronan_Farrow property:mother ?b . ?b rdf:type ontology:common_name }
[]
common name
Q202725
SYSTEM
Mia Farrow
Q202725
(Q7365461,P25,c(Q502895))
action filter_type
action find
entity Q7365461
relation P25
type Q502895
And [ANSWER] has a child named Ronan Farrow
['Q7365461', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q7365461 property:P25 ?b . ?b rdf:type ontology:Q502895 }
Mia Farrow
And Mia Farrow has a child named Ronan Farrow
Mia Farrow
action filter_type
action find
entity Ronan Farrow
relation mother
type common name
['Ronan Farrow', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Ronan_Farrow property:mother ?b . ?b rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q274007
Q502895
USER
And also tell me about Dorothea Maria of Anhalt?
(Q274007,P25,c(Q502895))
action filter_type
action find
entity Q274007
relation P25
type Q502895
['Q274007', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q502895 . resource:Q274007 property:P25 ?z }
Dorothea Maria of Anhalt
action filter_type
action find
entity Dorothea Maria of Anhalt
relation mother
type common name
['Dorothea Maria of Anhalt', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:common_name . resource:Dorothea_Maria_of_Anhalt property:mother ?z }
[]
common name
Q3721846
SYSTEM
Eleonore of Württemberg
Q3721846
(Q274007,P25,c(Q502895))
action filter_type
action find
entity Q274007
relation P25
type Q502895
[ANSWER]
['Q274007', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q502895 . resource:Q274007 property:P25 ?z }
Eleonore of Württemberg
Eleonore of Württemberg
action filter_type
action find
entity Dorothea Maria of Anhalt
relation mother
type common name
['Dorothea Maria of Anhalt', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:common_name . resource:Dorothea_Maria_of_Anhalt property:mother ?z }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3721846
P7
Q502895
USER
Which person is the brother of that one ?
(Q3721846,P7,c(Q502895))
action filter_type
action find
entity Q3721846
relation P7
type Q502895
['Q3721846', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . resource:Q3721846 property:P7 ?d }
Eleonore of Württemberg
action filter_type
action find
entity Eleonore of Württemberg
relation brother
type common name
['Eleonore of Württemberg', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . resource:Eleonore_of_Württemberg property:brother ?d }
[]
common name
Q678605
SYSTEM
Louis III, Duke of Württemberg
Q678605
(Q3721846,P7,c(Q502895))
action filter_type
action find
entity Q3721846
relation P7
type Q502895
[ANSWER] is the brother of that one
['Q3721846', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . resource:Q3721846 property:P7 ?d }
Louis III, Duke of Württemberg
Louis III, Duke of Württemberg is the brother of that one
Louis III, Duke of Württemberg
action filter_type
action find
entity Eleonore of Württemberg
relation brother
type common name
['Eleonore of Württemberg', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . resource:Eleonore_of_Württemberg property:brother ?d }
[]