Simple Question (Direct)
Simple Question
Q4757336
P800
Q571
USER
What was notable work done by Andrew Horn ?
(Q4757336,P800,c(Q571))
action filter_type
action find
entity Q4757336
relation P800
type Q571
['Q4757336', 'P800', {'concept': 'Q571'}]
SELECT DISTINCT ?n WHERE { resource:Q4757336 property:P800 ?n . ?n rdf:type ontology:Q571 }
Andrew Horn
action filter_type
action find
entity Andrew Horn
relation notable work
type book
['Andrew Horn', 'notable work', {'concept': 'book'}]
SELECT DISTINCT ?n WHERE { resource:Andrew_Horn property:notable_work ?n . ?n rdf:type ontology:book }
[]
book
Q7751678
SYSTEM
The Mirror of Justices
Q7751678
(Q4757336,P800,c(Q571))
action filter_type
action find
entity Q4757336
relation P800
type Q571
Notable work done by Andrew Horn was entitled [ANSWER]
['Q4757336', 'P800', {'concept': 'Q571'}]
SELECT DISTINCT ?n WHERE { resource:Q4757336 property:P800 ?n . ?n rdf:type ontology:Q571 }
The Mirror of Justices
Notable work done by Andrew Horn was entitled The Mirror of Justices
The Mirror of Justices
action filter_type
action find
entity Andrew Horn
relation notable work
type book
['Andrew Horn', 'notable work', {'concept': 'book'}]
SELECT DISTINCT ?n WHERE { resource:Andrew_Horn property:notable_work ?n . ?n rdf:type ontology:book }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4757336
P21
Q290
USER
What is the sex of that person ?
(Q7751678,P21,c(Q290))
action filter_type
action find
entity Q4757336
relation P21
type Q290
['Q7751678', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { resource:Q4757336 property:P21 ?t . ?t rdf:type ontology:Q290 }
Andrew Horn
action filter_type
action find
entity Andrew Horn
relation gender
type sex
['The Mirror of Justices', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { resource:Andrew_Horn property:gender ?t . ?t rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7751678,P21,c(Q290))
action filter_type
action find
entity Q4757336
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q7751678', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { resource:Q4757336 property:P21 ?t . ?t rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Andrew Horn
relation gender
type sex
['The Mirror of Justices', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { resource:Andrew_Horn property:gender ?t . ?t rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4757336
P734
Q82799
USER
Who is associated with that person ?
(Q6581097,P734,c(Q82799))
action filter_type
action find
entity Q4757336
relation P734
type Q82799
['Q6581097', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q4757336 property:P734 ?u . ?u rdf:type ontology:Q82799 }
Andrew Horn
action filter_type
action find
entity Andrew Horn
relation family name
type name
['male', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Andrew_Horn property:family_name ?u . ?u rdf:type ontology:name }
[]
name
Q735211
SYSTEM
Horn
Q735211
(Q6581097,P734,c(Q82799))
action filter_type
action find
entity Q4757336
relation P734
type Q82799
The [ANSWER] is associated with that person
['Q6581097', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q4757336 property:P734 ?u . ?u rdf:type ontology:Q82799 }
Horn
The Horn is associated with that person
Horn
action filter_type
action find
entity Andrew Horn
relation family name
type name
['male', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Andrew_Horn property:family_name ?u . ?u rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4757336
P50
Q571
USER
What is the book written by Andrew Horn ?
(c(Q571),P50,Q4757336)
action filter_type
action find_reverse
entity Q4757336
relation P50
type Q571
[{'concept': 'Q571'}, 'P50', 'Q4757336']
SELECT DISTINCT ?g WHERE { ?g property:P50 resource:Q4757336 . ?g rdf:type ontology:Q571 }
Andrew Horn
action filter_type
action find_reverse
entity Andrew Horn
relation author
type book
[{'concept': 'book'}, 'author', 'Andrew Horn']
SELECT DISTINCT ?g WHERE { ?g property:author resource:Andrew_Horn . ?g rdf:type ontology:book }
[]
book
Q7751678
SYSTEM
The Mirror of Justices
Q7751678
(c(Q571),P50,Q4757336)
action filter_type
action find_reverse
entity Q4757336
relation P50
type Q571
The book written by Andrew Horn is called [ANSWER]
[{'concept': 'Q571'}, 'P50', 'Q4757336']
SELECT DISTINCT ?g WHERE { ?g property:P50 resource:Q4757336 . ?g rdf:type ontology:Q571 }
The Mirror of Justices
The book written by Andrew Horn is called The Mirror of Justices
The Mirror of Justices
action filter_type
action find_reverse
entity Andrew Horn
relation author
type book
[{'concept': 'book'}, 'author', 'Andrew Horn']
SELECT DISTINCT ?g WHERE { ?g property:author resource:Andrew_Horn . ?g rdf:type ontology:book }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q7751678 Q4757336
P800
Q502895
USER
Does Andrew Horn have that book as a notable work ?
(Q4757336,P800,Q7751678)
action is_in
entity Q7751678
action find
entity Q4757336
relation P800
['Q4757336', 'P800', 'Q7751678']
ASK WHERE { resource:Q4757336 property:P800 resource:Q7751678 }
The Mirror of Justices Andrew Horn
action is_in
entity The Mirror of Justices
action find
entity Andrew Horn
relation notable work
['Andrew Horn', 'notable work', 'The Mirror of Justices']
ASK WHERE { resource:Andrew_Horn property:notable_work resource:The_Mirror_of_Justices }
[]
common name
SYSTEM
YES
(Q4757336,P800,Q7751678)
action is_in
entity Q7751678
action find
entity Q4757336
relation P800
[ANSWER]
['Q4757336', 'P800', 'Q7751678']
ASK WHERE { resource:Q4757336 property:P800 resource:Q7751678 }
Yes
action is_in
entity The Mirror of Justices
action find
entity Andrew Horn
relation notable work
['Andrew Horn', 'notable work', 'The Mirror of Justices']
ASK WHERE { resource:Andrew_Horn property:notable_work resource:The_Mirror_of_Justices }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16253708 Q7751678
P800
Q502895
USER
Which people are author of The Mirror of Justices or Mad Shadows ?
OR((c(Q502895),P800,Q7751678), (c(Q502895),P800,Q16253708))
action filter_type
action union
action find_reverse
entity Q7751678
relation P800
action find_reverse
entity Q16253708
relation P800
type Q502895
{'OR': [[{'concept': 'Q502895'}, 'P800', 'Q7751678'], [{'concept': 'Q502895'}, 'P800', 'Q16253708']]}
SELECT DISTINCT ?l WHERE { { { ?l property:P800 resource:Q7751678 } UNION { ?l property:P800 resource:Q16253708 } } . ?l rdf:type ontology:Q502895 }
Mad Shadows The Mirror of Justices
action filter_type
action union
action find_reverse
entity The Mirror of Justices
relation notable work
action find_reverse
entity Mad Shadows
relation notable work
type common name
{'OR': [[{'concept': 'common name'}, 'notable work', 'The Mirror of Justices'], [{'concept': 'common name'}, 'notable work', 'Mad Shadows']]}
SELECT DISTINCT ?l WHERE { { { ?l property:notable_work resource:The_Mirror_of_Justices } UNION { ?l property:notable_work resource:Mad_Shadows } } . ?l rdf:type ontology:common_name }
[]
common name
Q298358 Q4757336
SYSTEM
Marie-Claire Blais, Andrew Horn
Q298358 Q4757336
OR((c(Q502895),P800,Q7751678), (c(Q502895),P800,Q16253708))
action filter_type
action union
action find_reverse
entity Q7751678
relation P800
action find_reverse
entity Q16253708
relation P800
type Q502895
[ANSWERS] are author of The Mirror of Justices or Mad Shadows
{'OR': [[{'concept': 'Q502895'}, 'P800', 'Q7751678'], [{'concept': 'Q502895'}, 'P800', 'Q16253708']]}
SELECT DISTINCT ?l WHERE { { { ?l property:P800 resource:Q7751678 } UNION { ?l property:P800 resource:Q16253708 } } . ?l rdf:type ontology:Q502895 }
Marie-Claire Blais Andrew Horn
Marie-Claire Blais and Andrew Horn are author of The Mirror of Justices or Mad Shadows
Marie-Claire Blais Andrew Horn
action filter_type
action union
action find_reverse
entity The Mirror of Justices
relation notable work
action find_reverse
entity Mad Shadows
relation notable work
type common name
{'OR': [[{'concept': 'common name'}, 'notable work', 'The Mirror of Justices'], [{'concept': 'common name'}, 'notable work', 'Mad Shadows']]}
SELECT DISTINCT ?l WHERE { { { ?l property:notable_work resource:The_Mirror_of_Justices } UNION { ?l property:notable_work resource:Mad_Shadows } } . ?l rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q298358
P451
Q502895
USER
Who is the partner of that one ?
(Q298358,P451,c(Q502895))
action filter_type
action find
entity Q298358
relation P451
type Q502895
['Q298358', 'P451', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q298358 property:P451 ?z . ?z rdf:type ontology:Q502895 }
Marie-Claire Blais
action filter_type
action find
entity Marie-Claire Blais
relation partner
type common name
['Marie-Claire Blais', 'partner', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Marie-Claire_Blais property:partner ?z . ?z rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q298358
SYSTEM
Did you mean Marie-Claire Blais ?
Q298358 Q4757336
(Q298358,P451,c(Q502895)) (Q4757336,P451,c(Q502895))
[ANSWER]
['Q298358', 'P451', {'concept': 'Q502895'}] ['Q4757336', 'P451', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q298358 property:P451 ?z . ?z rdf:type ontology:Q502895 }
Marie-Claire Blais Andrew Horn
Did you mean Marie-Claire Blais ?
Marie-Claire Blais
['Marie-Claire Blais', 'partner', {'concept': 'common name'}] ['Andrew Horn', 'partner', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Marie-Claire_Blais property:partner ?z . ?z rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q298358,P451,c(Q502895))
['Q298358', 'P451', {'concept': 'Q502895'}]
['Marie-Claire Blais', 'partner', {'concept': 'common name'}]
[]
Q6780332
SYSTEM
Mary Meigs
Q6780332
(Q298358,P451,c(Q502895))
action filter_type
action find
entity Q298358
relation P451
type Q502895
The partner of that one is the [ANSWER]
['Q298358', 'P451', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q298358 property:P451 ?z . ?z rdf:type ontology:Q502895 }
Mary Meigs
The partner of that one is the Mary Meigs
Mary Meigs
action filter_type
action find
entity Marie-Claire Blais
relation partner
type common name
['Marie-Claire Blais', 'partner', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Marie-Claire_Blais property:partner ?z . ?z rdf:type ontology:common_name }
[]