Simple Question (Direct)
Simple Question
Q1110463
P166
Q2003221
USER
Which chivalric order was received by James Herbert ?
(Q1110463,P166,c(Q2003221))
action filter_type
action find
entity Q1110463
relation P166
type Q2003221
['Q1110463', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?y WHERE { resource:Q1110463 property:P166 ?y . ?y rdf:type ontology:Q2003221 }
James Herbert
action filter_type
action find
entity James Herbert
relation award received
type chivalric order
['James Herbert', 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?y WHERE { resource:James_Herbert property:award_received ?y . ?y rdf:type ontology:chivalric_order }
[]
chivalric order
Q10762848
SYSTEM
Officer of the Order of the British Empire
Q10762848
(Q1110463,P166,c(Q2003221))
action filter_type
action find
entity Q1110463
relation P166
type Q2003221
In [ANSWER] was received by James Herbert
['Q1110463', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?y WHERE { resource:Q1110463 property:P166 ?y . ?y rdf:type ontology:Q2003221 }
Officer of the Order of the British Empire
In Officer of the Order of the British Empire was received by James Herbert
Officer of the Order of the British Empire
action filter_type
action find
entity James Herbert
relation award received
type chivalric order
['James Herbert', 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?y WHERE { resource:James_Herbert property:award_received ?y . ?y rdf:type ontology:chivalric_order }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1110463
P21
Q290
USER
Which sex does James Herbert belong to ?
(Q1110463,P21,c(Q290))
action filter_type
action find
entity Q1110463
relation P21
type Q290
['Q1110463', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q1110463 property:P21 ?i . ?i rdf:type ontology:Q290 }
James Herbert
action filter_type
action find
entity James Herbert
relation gender
type sex
['James Herbert', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:James_Herbert property:gender ?i . ?i rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1110463,P21,c(Q290))
action filter_type
action find
entity Q1110463
relation P21
type Q290
James Herbert belongs to [ANSWER]
['Q1110463', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q1110463 property:P21 ?i . ?i rdf:type ontology:Q290 }
male
James Herbert belongs to male
male
action filter_type
action find
entity James Herbert
relation gender
type sex
['James Herbert', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:James_Herbert property:gender ?i . ?i rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q17198340 Q1110463
P21
Q290
USER
And also Shawn Mendes
AND((Q1110463,P21,c(Q290)), (Q17198340,P21,c(Q290)))
action filter_type
action intersection
action find
entity Q1110463
relation P21
action find
entity Q17198340
relation P21
type Q290
{'AND': [['Q1110463', 'P21', {'concept': 'Q290'}], ['Q17198340', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q290 . resource:Q1110463 property:P21 ?i . resource:Q17198340 property:P21 ?i }
Shawn Mendes James Herbert
action filter_type
action intersection
action find
entity James Herbert
relation gender
action find
entity Shawn Mendes
relation gender
type sex
{'AND': [['James Herbert', 'gender', {'concept': 'sex'}], ['Shawn Mendes', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:sex . resource:James_Herbert property:gender ?i . resource:Shawn_Mendes property:gender ?i }
[]
sex
Q6581097
SYSTEM
male
Q6581097
AND((Q1110463,P21,c(Q290)), (Q17198340,P21,c(Q290)))
action filter_type
action intersection
action find
entity Q1110463
relation P21
action find
entity Q17198340
relation P21
type Q290
[ANSWER]
{'AND': [['Q1110463', 'P21', {'concept': 'Q290'}], ['Q17198340', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q290 . resource:Q1110463 property:P21 ?i . resource:Q17198340 property:P21 ?i }
male
male
action filter_type
action intersection
action find
entity James Herbert
relation gender
action find
entity Shawn Mendes
relation gender
type sex
{'AND': [['James Herbert', 'gender', {'concept': 'sex'}], ['Shawn Mendes', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:sex . resource:James_Herbert property:gender ?i . resource:Shawn_Mendes property:gender ?i }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q16195939
P21
Q502895
USER
Does Héctor Castaño have the gender as that sex ?
(Q16195939,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q16195939
relation P21
['Q16195939', 'P21', 'Q6581097']
ASK WHERE { resource:Q16195939 property:P21 resource:Q6581097 }
male Héctor Castaño
action is_in
entity male
action find
entity Héctor Castaño
relation gender
['Héctor Castaño', 'gender', 'male']
ASK WHERE { resource:Héctor_Castaño property:gender resource:male }
[]
common name
SYSTEM
YES
(Q16195939,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q16195939
relation P21
[ANSWER]
['Q16195939', 'P21', 'Q6581097']
ASK WHERE { resource:Q16195939 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Héctor Castaño
relation gender
['Héctor Castaño', 'gender', 'male']
ASK WHERE { resource:Héctor_Castaño property:gender resource:male }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P138
Q11173
USER
Which chemical compound comes from that sex ?
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q11173
SELECT DISTINCT ?t WHERE { ?t property:P138 resource:Q6581097 . ?t rdf:type ontology:Q11173 }
male
action filter_type
action find_reverse
entity male
relation named after
type chemical compound
SELECT DISTINCT ?t WHERE { ?t property:named_after resource:male . ?t rdf:type ontology:chemical_compound }
[]
chemical compound
Q19861203
SYSTEM
postite
Q19861203
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q11173
[ANSWER] comes from that sex
SELECT DISTINCT ?t WHERE { ?t property:P138 resource:Q6581097 . ?t rdf:type ontology:Q11173 }
postite
Postite comes from that sex
postite
action filter_type
action find_reverse
entity male
relation named after
type chemical compound
SELECT DISTINCT ?t WHERE { ?t property:named_after resource:male . ?t rdf:type ontology:chemical_compound }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q6581097
P21
Q16887380 Q14934048
USER
How many groups and political ideologies have the gender as male ?
(c(Q16887380),P21,Q6581097) (c(Q14934048),P21,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q16887380
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q14934048
[{'concept': 'Q16887380'}, 'P21', 'Q6581097'] [{'concept': 'Q14934048'}, 'P21', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { { ?e property:P21 resource:Q6581097 . ?e rdf:type ontology:Q16887380 } UNION { ?e property:P21 resource:Q6581097 . ?e rdf:type ontology:Q14934048 } }
male
action count
action union
action filter_type
action find_reverse
entity male
relation gender
type group
action filter_type
action find_reverse
entity male
relation gender
type political ideology
[{'concept': 'group'}, 'gender', 'male'] [{'concept': 'political ideology'}, 'gender', 'male']
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { { ?e property:gender resource:male . ?e rdf:type ontology:group } UNION { ?e property:gender resource:male . ?e rdf:type ontology:political_ideology } }
[]
group political ideology
SYSTEM
1 groups and 1 political ideologies
Q3848792 Q1850286
(c(Q16887380),P21,Q6581097) (c(Q14934048),P21,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q16887380
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q14934048
[ANSWER]
[{'concept': 'Q16887380'}, 'P21', 'Q6581097'] [{'concept': 'Q14934048'}, 'P21', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { { ?e property:P21 resource:Q6581097 . ?e rdf:type ontology:Q16887380 } UNION { ?e property:P21 resource:Q6581097 . ?e rdf:type ontology:Q14934048 } }
Olaf Kullmann Sullivan brothers
1 groups and 1 political ideologies
action count
action union
action filter_type
action find_reverse
entity male
relation gender
type group
action filter_type
action find_reverse
entity male
relation gender
type political ideology
[{'concept': 'group'}, 'gender', 'male'] [{'concept': 'political ideology'}, 'gender', 'male']
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { { ?e property:gender resource:male . ?e rdf:type ontology:group } UNION { ?e property:gender resource:male . ?e rdf:type ontology:political_ideology } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1110463
P58
Q838948
USER
Which work of art did James Herbert do the screenwriting for ?
(c(Q838948),P58,Q1110463)
action filter_type
action find_reverse
entity Q1110463
relation P58
type Q838948
[{'concept': 'Q838948'}, 'P58', 'Q1110463']
SELECT DISTINCT ?p WHERE { ?p property:P58 resource:Q1110463 . ?p rdf:type ontology:Q838948 }
James Herbert
action filter_type
action find_reverse
entity James Herbert
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'James Herbert']
SELECT DISTINCT ?p WHERE { ?p property:screenwriter resource:James_Herbert . ?p rdf:type ontology:work_of_art }
[]
work of art
Q357541
SYSTEM
Haunted
Q357541
(c(Q838948),P58,Q1110463)
action filter_type
action find_reverse
entity Q1110463
relation P58
type Q838948
[ANSWER] James Herbert did the screenwriting for
[{'concept': 'Q838948'}, 'P58', 'Q1110463']
SELECT DISTINCT ?p WHERE { ?p property:P58 resource:Q1110463 . ?p rdf:type ontology:Q838948 }
Haunted
Haunted James Herbert did the screenwriting for
Haunted
action filter_type
action find_reverse
entity James Herbert
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'James Herbert']
SELECT DISTINCT ?p WHERE { ?p property:screenwriter resource:James_Herbert . ?p rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1110463
P50
Q2342494
USER
Which collectables are James Herbert an author of ?
(c(Q2342494),P50,Q1110463)
action filter_type
action find_reverse
entity Q1110463
relation P50
type Q2342494
[{'concept': 'Q2342494'}, 'P50', 'Q1110463']
SELECT DISTINCT ?m WHERE { ?m property:P50 resource:Q1110463 . ?m rdf:type ontology:Q2342494 }
James Herbert
action filter_type
action find_reverse
entity James Herbert
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'James Herbert']
SELECT DISTINCT ?m WHERE { ?m property:author resource:James_Herbert . ?m rdf:type ontology:collectable }
[]
collectable
Q3235087 Q7734643 Q4540380
SYSTEM
The Rats, The Fog, '48
Q7734643 Q4540380 Q17033846 Q7763133 Q3235087 Q7767545 Q7765726
(c(Q2342494),P50,Q1110463)
action filter_type
action find_reverse
entity Q1110463
relation P50
type Q2342494
[ANSWERS] are James Herbert an author of
[{'concept': 'Q2342494'}, 'P50', 'Q1110463']
SELECT DISTINCT ?m WHERE { ?m property:P50 resource:Q1110463 . ?m rdf:type ontology:Q2342494 }
The Fog '48 Shrine The Secret of Crickley Hall The Rats The Survivor The Spear
The Rats, The Fog and '48 are James Herbert an author of
The Rats The Fog '48
action filter_type
action find_reverse
entity James Herbert
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'James Herbert']
SELECT DISTINCT ?m WHERE { ?m property:author resource:James_Herbert . ?m rdf:type ontology:collectable }
[]