Simple Question (Direct)
Simple Question
Q4933281
P25
Q502895
USER
Who was the mom of Bob Massie ?
(Q4933281,P25,c(Q502895))
action filter_type
action find
entity Q4933281
relation P25
type Q502895
['Q4933281', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q4933281 property:P25 ?u . ?u rdf:type ontology:Q502895 }
Bob Massie
action filter_type
action find
entity Bob Massie
relation mother
type common name
['Bob Massie', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Bob_Massie property:mother ?u . ?u rdf:type ontology:common_name }
[]
common name
Q7650914
SYSTEM
Suzanne Massie
Q7650914
(Q4933281,P25,c(Q502895))
action filter_type
action find
entity Q4933281
relation P25
type Q502895
The mom of Bob Massie was named [ANSWER]
['Q4933281', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q4933281 property:P25 ?u . ?u rdf:type ontology:Q502895 }
Suzanne Massie
The mom of Bob Massie was named Suzanne Massie
Suzanne Massie
action filter_type
action find
entity Bob Massie
relation mother
type common name
['Bob Massie', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Bob_Massie property:mother ?u . ?u rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7650914
P21
Q290
USER
Which sex does that person belong to ?
(Q7650914,P21,c(Q290))
action filter_type
action find
entity Q7650914
relation P21
type Q290
['Q7650914', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q7650914 property:P21 ?q . ?q rdf:type ontology:Q290 }
Suzanne Massie
action filter_type
action find
entity Suzanne Massie
relation gender
type sex
['Suzanne Massie', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Suzanne_Massie property:gender ?q . ?q rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q7650914,P21,c(Q290))
action filter_type
action find
entity Q7650914
relation P21
type Q290
That person belongs to [ANSWER]
['Q7650914', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q7650914 property:P21 ?q . ?q rdf:type ontology:Q290 }
female
That person belongs to female
female
action filter_type
action find
entity Suzanne Massie
relation gender
type sex
['Suzanne Massie', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Suzanne_Massie property:gender ?q . ?q rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4933281
P22
Q502895
USER
Which male person has a child named Bob Massie ?
(Q4933281,P22,c(Q502895))
action filter_type
action find
entity Q4933281
relation P22
type Q502895
['Q4933281', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . resource:Q4933281 property:P22 ?h }
Bob Massie
action filter_type
action find
entity Bob Massie
relation father
type common name
['Bob Massie', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . resource:Bob_Massie property:father ?h }
[]
common name
Q1343649
SYSTEM
Robert K. Massie
Q1343649
(Q4933281,P22,c(Q502895))
action filter_type
action find
entity Q4933281
relation P22
type Q502895
[ANSWER] has a child named Bob Massie
['Q4933281', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . resource:Q4933281 property:P22 ?h }
Robert K. Massie
Robert K. Massie has a child named Bob Massie
Robert K. Massie
action filter_type
action find
entity Bob Massie
relation father
type common name
['Bob Massie', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . resource:Bob_Massie property:father ?h }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4933281
P40
Q502895
USER
Which people have Bob Massie as a child ?
(c(Q502895),P40,Q4933281)
action filter_type
action find_reverse
entity Q4933281
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q4933281']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . ?i property:P40 resource:Q4933281 }
Bob Massie
action filter_type
action find_reverse
entity Bob Massie
relation child
type common name
[{'concept': 'common name'}, 'child', 'Bob Massie']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . ?i property:child resource:Bob_Massie }
[]
common name
Q7650914 Q1343649
SYSTEM
Suzanne Massie, Robert K. Massie
Q7650914 Q1343649
(c(Q502895),P40,Q4933281)
action filter_type
action find_reverse
entity Q4933281
relation P40
type Q502895
[ANSWERS] have Bob Massie as a child
[{'concept': 'Q502895'}, 'P40', 'Q4933281']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . ?i property:P40 resource:Q4933281 }
Suzanne Massie Robert K. Massie
Suzanne Massie and Robert K. Massie have Bob Massie as a child
Suzanne Massie Robert K. Massie
action filter_type
action find_reverse
entity Bob Massie
relation child
type common name
[{'concept': 'common name'}, 'child', 'Bob Massie']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . ?i property:child resource:Bob_Massie }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1343649
P50
Q2342494
USER
Which collectables have that person as their author ?
(c(Q2342494),P50,Q1343649)
action filter_type
action find_reverse
entity Q1343649
relation P50
type Q2342494
[{'concept': 'Q2342494'}, 'P50', 'Q1343649']
SELECT DISTINCT ?o WHERE { ?o property:P50 resource:Q1343649 . ?o rdf:type ontology:Q2342494 }
Robert K. Massie
action filter_type
action find_reverse
entity Robert K. Massie
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Robert K. Massie']
SELECT DISTINCT ?o WHERE { ?o property:author resource:Robert_K._Massie . ?o rdf:type ontology:collectable }
[]
collectable
Clarification for simple ques.
Q7650914
SYSTEM
Did you mean Suzanne Massie ?
Q7650914 Q1343649
(c(Q2342494),P50,Q7650914) (c(Q2342494),P50,Q1343649)
[ANSWER]
[{'concept': 'Q2342494'}, 'P50', 'Q7650914'] [{'concept': 'Q2342494'}, 'P50', 'Q1343649']
SELECT DISTINCT ?o WHERE { ?o property:P50 resource:Q1343649 . ?o rdf:type ontology:Q2342494 }
Suzanne Massie Robert K. Massie
Did you mean Suzanne Massie ?
Suzanne Massie
[{'concept': 'collectable'}, 'author', 'Suzanne Massie'] [{'concept': 'collectable'}, 'author', 'Robert K. Massie']
SELECT DISTINCT ?o WHERE { ?o property:author resource:Robert_K._Massie . ?o rdf:type ontology:collectable }
[]
Simple Question (Coreferenced)
USER
No, I meant Robert K. Massie. Could you tell me the answer for that?
(c(Q2342494),P50,Q1343649)
Q1343649
[{'concept': 'Q2342494'}, 'P50', 'Q1343649']
[{'concept': 'collectable'}, 'author', 'Robert K. Massie']
[]
Q5050605 Q7177937 Q5306228
SYSTEM
Castles of Steel, Peter the Great: His Life and World, Dreadnought
Q5050605 Q7177937 Q16056523 Q5306228
(c(Q2342494),P50,Q1343649)
action filter_type
action find_reverse
entity Q1343649
relation P50
type Q2342494
[ANSWERS] have that person as their author
[{'concept': 'Q2342494'}, 'P50', 'Q1343649']
SELECT DISTINCT ?o WHERE { ?o property:P50 resource:Q1343649 . ?o rdf:type ontology:Q2342494 }
Castles of Steel Peter the Great: His Life and World Nicholas and Alexandra Dreadnought
Castles of Steel, Peter the Great: His Life and World and Dreadnought have that person as their author
Castles of Steel Peter the Great: His Life and World Dreadnought
action filter_type
action find_reverse
entity Robert K. Massie
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Robert K. Massie']
SELECT DISTINCT ?o WHERE { ?o property:author resource:Robert_K._Massie . ?o rdf:type ontology:collectable }
[]
Clarification
Simple Question|Single Entity|Indirect
Q5306228
P364
Q34770
USER
Which language was used originally for the creation of that collectable ?
(Q5306228,P364,c(Q34770))
action filter_type
action find
entity Q5306228
relation P364
type Q34770
['Q5306228', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?d WHERE { resource:Q5306228 property:P364 ?d . ?d rdf:type ontology:Q34770 }
Dreadnought
action filter_type
action find
entity Dreadnought
relation original language of work
type language
['Dreadnought', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?d WHERE { resource:Dreadnought property:original_language_of_work ?d . ?d rdf:type ontology:language }
[]
language
Clarification for simple ques.
Q7177937
SYSTEM
Did you mean Peter the Great: His Life and World ?
Q5050605 Q7177937 Q5306228
(Q5050605,P364,c(Q34770)) (Q7177937,P364,c(Q34770)) (Q5306228,P364,c(Q34770))
[ANSWER]
['Q5050605', 'P364', {'concept': 'Q34770'}] ['Q7177937', 'P364', {'concept': 'Q34770'}] ['Q5306228', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?d WHERE { resource:Q5306228 property:P364 ?d . ?d rdf:type ontology:Q34770 }
Castles of Steel Peter the Great: His Life and World Dreadnought
Did you mean Peter the Great: His Life and World ?
Peter the Great: His Life and World
['Castles of Steel', 'original language of work', {'concept': 'language'}] ['Peter the Great: His Life and World', 'original language of work', {'concept': 'language'}] ['Dreadnought', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?d WHERE { resource:Dreadnought property:original_language_of_work ?d . ?d rdf:type ontology:language }
[]
Simple Question (Coreferenced)
USER
No, I meant Dreadnought. Could you tell me the answer for that?
(Q5306228,P364,c(Q34770))
Q5306228
['Q5306228', 'P364', {'concept': 'Q34770'}]
['Dreadnought', 'original language of work', {'concept': 'language'}]
[]
Q1860
SYSTEM
English
Q1860
(Q5306228,P364,c(Q34770))
action filter_type
action find
entity Q5306228
relation P364
type Q34770
[ANSWER] was used originally for the creation of that collectable
['Q5306228', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?d WHERE { resource:Q5306228 property:P364 ?d . ?d rdf:type ontology:Q34770 }
English
English was used originally for the creation of that collectable
English
action filter_type
action find
entity Dreadnought
relation original language of work
type language
['Dreadnought', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?d WHERE { resource:Dreadnought property:original_language_of_work ?d . ?d rdf:type ontology:language }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1860 Q1346342 Q7288619
P361
Q5962346
USER
Is that language a component of Anglic languages and Ram languages ?
(Q1860,P361,Q1346342) (Q1860,P361,Q7288619)
action is_in
entity Q1860
action intersection
action find_reverse
entity Q1346342
relation P361
action find_reverse
entity Q7288619
relation P361
['Q1860', 'P361', 'Q1346342'] ['Q1860', 'P361', 'Q7288619']
ASK WHERE { resource:Q1860 property:P361 resource:Q1346342 . resource:Q1860 property:P361 resource:Q7288619 }
English Anglic languages Ram languages
action is_in
entity English
action intersection
action find_reverse
entity Anglic languages
relation part of
action find_reverse
entity Ram languages
relation part of
['English', 'part of', 'Anglic languages'] ['English', 'part of', 'Ram languages']
ASK WHERE { resource:English property:part_of resource:Anglic_languages . resource:English property:part_of resource:Ram_languages }
[]
classification scheme
SYSTEM
YES and NO respectively
(Q1860,P361,Q1346342) (Q1860,P361,Q7288619)
action is_in
entity Q1860
action intersection
action find_reverse
entity Q1346342
relation P361
action find_reverse
entity Q7288619
relation P361
[ANSWER]
['Q1860', 'P361', 'Q1346342'] ['Q1860', 'P361', 'Q7288619']
ASK WHERE { resource:Q1860 property:P361 resource:Q1346342 . resource:Q1860 property:P361 resource:Q7288619 }
YES and NO respectively
action is_in
entity English
action intersection
action find_reverse
entity Anglic languages
relation part of
action find_reverse
entity Ram languages
relation part of
['English', 'part of', 'Anglic languages'] ['English', 'part of', 'Ram languages']
ASK WHERE { resource:English property:part_of resource:Anglic_languages . resource:English property:part_of resource:Ram_languages }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q7177937 Q1343649
P50
Q502895
USER
Did Robert K. Massie authore Peter the Great: His Life and World ?
(Q7177937,P50,Q1343649)
action is_in
entity Q1343649
action find
entity Q7177937
relation P50
['Q7177937', 'P50', 'Q1343649']
ASK WHERE { resource:Q7177937 property:P50 resource:Q1343649 }
Peter the Great: His Life and World Robert K. Massie
action is_in
entity Robert K. Massie
action find
entity Peter the Great: His Life and World
relation author
['Peter the Great: His Life and World', 'author', 'Robert K. Massie']
ASK WHERE { resource:Peter_the_Great:_His_Life_and_World property:author resource:Robert_K._Massie }
[]
common name
SYSTEM
YES
(Q7177937,P50,Q1343649)
action is_in
entity Q1343649
action find
entity Q7177937
relation P50
[ANSWER]
['Q7177937', 'P50', 'Q1343649']
ASK WHERE { resource:Q7177937 property:P50 resource:Q1343649 }
Yes
action is_in
entity Robert K. Massie
action find
entity Peter the Great: His Life and World
relation author
['Peter the Great: His Life and World', 'author', 'Robert K. Massie']
ASK WHERE { resource:Peter_the_Great:_His_Life_and_World property:author resource:Robert_K._Massie }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q176132 Q5050605
P1412 P364
Q34770
USER
Which languages were used originally for the creation of Castles of Steel or do Lord Voldemort speak in ?
OR((Q5050605,P364,c(Q34770)), (Q176132,P1412,c(Q34770)))
action filter_type
action union
action find
entity Q5050605
relation P364
action find
entity Q176132
relation P1412
type Q34770
{'OR': [['Q5050605', 'P364', {'concept': 'Q34770'}], ['Q176132', 'P1412', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q5050605 property:P364 ?h } UNION { resource:Q176132 property:P1412 ?h } } . ?h rdf:type ontology:Q34770 }
Lord Voldemort Castles of Steel
action filter_type
action union
action find
entity Castles of Steel
relation original language of work
action find
entity Lord Voldemort
relation languages spoken, written or signed
type language
{'OR': [['Castles of Steel', 'original language of work', {'concept': 'language'}], ['Lord Voldemort', 'languages spoken, written or signed', {'concept': 'language'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Castles_of_Steel property:original_language_of_work ?h } UNION { resource:Lord_Voldemort property:languages_spoken,_written_or_signed ?h } } . ?h rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
OR((Q5050605,P364,c(Q34770)), (Q176132,P1412,c(Q34770)))
action filter_type
action union
action find
entity Q5050605
relation P364
action find
entity Q176132
relation P1412
type Q34770
[ANSWER] was used originally for the creation of Castles of Steel or do Lord Voldemort speak in
{'OR': [['Q5050605', 'P364', {'concept': 'Q34770'}], ['Q176132', 'P1412', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q5050605 property:P364 ?h } UNION { resource:Q176132 property:P1412 ?h } } . ?h rdf:type ontology:Q34770 }
English
English was used originally for the creation of Castles of Steel or do Lord Voldemort speak in
English
action filter_type
action union
action find
entity Castles of Steel
relation original language of work
action find
entity Lord Voldemort
relation languages spoken, written or signed
type language
{'OR': [['Castles of Steel', 'original language of work', {'concept': 'language'}], ['Lord Voldemort', 'languages spoken, written or signed', {'concept': 'language'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Castles_of_Steel property:original_language_of_work ?h } UNION { resource:Lord_Voldemort property:languages_spoken,_written_or_signed ?h } } . ?h rdf:type ontology:language }
[]