Simple Question (Direct)
Simple Question
Q641375
P35
Q989255
USER
Who is the chief of state of Doriath ?
(Q641375,P35,c(Q989255))
action filter_type
action find
entity Q641375
relation P35
type Q989255
['Q641375', 'P35', {'concept': 'Q989255'}]
SELECT DISTINCT ?k WHERE { resource:Q641375 property:P35 ?k . ?k rdf:type ontology:Q989255 }
Doriath
action filter_type
action find
entity Doriath
relation head of state
type Middle-earth races
['Doriath', 'head of state', {'concept': 'Middle-earth races'}]
SELECT DISTINCT ?k WHERE { resource:Doriath property:head_of_state ?k . ?k rdf:type ontology:Middle-earth_races }
[]
Middle-earth races
Q734128
SYSTEM
Thingol
Q734128
(Q641375,P35,c(Q989255))
action filter_type
action find
entity Q641375
relation P35
type Q989255
The chief of state of Doriath is king [ANSWER]
['Q641375', 'P35', {'concept': 'Q989255'}]
SELECT DISTINCT ?k WHERE { resource:Q641375 property:P35 ?k . ?k rdf:type ontology:Q989255 }
Thingol
The chief of state of Doriath is king Thingol
Thingol
action filter_type
action find
entity Doriath
relation head of state
type Middle-earth races
['Doriath', 'head of state', {'concept': 'Middle-earth races'}]
SELECT DISTINCT ?k WHERE { resource:Doriath property:head_of_state ?k . ?k rdf:type ontology:Middle-earth_races }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q734128
P172
Q2590445
USER
What is the ethnicity of that Middle-earth races ?
(Q734128,P172,c(Q2590445))
action filter_type
action find
entity Q734128
relation P172
type Q2590445
['Q734128', 'P172', {'concept': 'Q2590445'}]
SELECT DISTINCT ?v WHERE { resource:Q734128 property:P172 ?v . ?v rdf:type ontology:Q2590445 }
Thingol
action filter_type
action find
entity Thingol
relation ethnic group
type fictional ethnic group
['Thingol', 'ethnic group', {'concept': 'fictional ethnic group'}]
SELECT DISTINCT ?v WHERE { resource:Thingol property:ethnic_group ?v . ?v rdf:type ontology:fictional_ethnic_group }
[]
fictional ethnic group
Q1647099
SYSTEM
Sindar
Q1647099
(Q734128,P172,c(Q2590445))
action filter_type
action find
entity Q734128
relation P172
type Q2590445
The ethnicity of that Middle-earth races is called [ANSWER]
['Q734128', 'P172', {'concept': 'Q2590445'}]
SELECT DISTINCT ?v WHERE { resource:Q734128 property:P172 ?v . ?v rdf:type ontology:Q2590445 }
Sindar
The ethnicity of that Middle-earth races is called Sindar
Sindar
action filter_type
action find
entity Thingol
relation ethnic group
type fictional ethnic group
['Thingol', 'ethnic group', {'concept': 'fictional ethnic group'}]
SELECT DISTINCT ?v WHERE { resource:Thingol property:ethnic_group ?v . ?v rdf:type ontology:fictional_ethnic_group }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q734128
P7
Q989255
USER
Who are Thingol a sibling of ?
(Q734128,P7,c(Q989255))
action filter_type
action find
entity Q734128
relation P7
type Q989255
['Q734128', 'P7', {'concept': 'Q989255'}]
SELECT DISTINCT ?a WHERE { resource:Q734128 property:P7 ?a . ?a rdf:type ontology:Q989255 }
Thingol
action filter_type
action find
entity Thingol
relation brother
type Middle-earth races
['Thingol', 'brother', {'concept': 'Middle-earth races'}]
SELECT DISTINCT ?a WHERE { resource:Thingol property:brother ?a . ?a rdf:type ontology:Middle-earth_races }
[]
Middle-earth races
Q3723586 Q2345120
SYSTEM
Elmo, Olwë
Q3723586 Q2345120
(Q734128,P7,c(Q989255))
action filter_type
action find
entity Q734128
relation P7
type Q989255
Thingol a sibling of are ths [ANSWERS]
['Q734128', 'P7', {'concept': 'Q989255'}]
SELECT DISTINCT ?a WHERE { resource:Q734128 property:P7 ?a . ?a rdf:type ontology:Q989255 }
Elmo Olwë
Thingol a sibling of are ths Elmo and Olwë
Elmo Olwë
action filter_type
action find
entity Thingol
relation brother
type Middle-earth races
['Thingol', 'brother', {'concept': 'Middle-earth races'}]
SELECT DISTINCT ?a WHERE { resource:Thingol property:brother ?a . ?a rdf:type ontology:Middle-earth_races }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5803547
Q989255
USER
And what about Éofor?
(Q5803547,P7,c(Q989255))
action filter_type
action find
entity Q5803547
relation P7
type Q989255
['Q5803547', 'P7', {'concept': 'Q989255'}]
SELECT DISTINCT ?g WHERE { resource:Q5803547 property:P7 ?g . ?g rdf:type ontology:Q989255 }
Éofor
action filter_type
action find
entity Éofor
relation brother
type Middle-earth races
['Éofor', 'brother', {'concept': 'Middle-earth races'}]
SELECT DISTINCT ?g WHERE { resource:Éofor property:brother ?g . ?g rdf:type ontology:Middle-earth_races }
[]
Middle-earth races
Q5109142 Q2543986
SYSTEM
Baldor, Aldor
Q5109142 Q2543986
(Q5803547,P7,c(Q989255))
action filter_type
action find
entity Q5803547
relation P7
type Q989255
[ANSWERS]
['Q5803547', 'P7', {'concept': 'Q989255'}]
SELECT DISTINCT ?g WHERE { resource:Q5803547 property:P7 ?g . ?g rdf:type ontology:Q989255 }
Baldor Aldor
Baldor Aldor
action filter_type
action find
entity Éofor
relation brother
type Middle-earth races
['Éofor', 'brother', {'concept': 'Middle-earth races'}]
SELECT DISTINCT ?g WHERE { resource:Éofor property:brother ?g . ?g rdf:type ontology:Middle-earth_races }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P157
Q989255 Q989255
USER
Which Middle-earth racess were the killers of approximately 1 Middle-earth races ?
(c(Q989255),P157,c(Q989255))
action approx
action find_reverse_tuple_counts
relation P157
type Q989255
type Q989255
value 1
[{'concept': 'Q989255'}, 'P157', {'concept': 'Q989255'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?t ) AS ?j ) WHERE { ?t property:P157 ?i . ?i rdf:type ontology:Q989255 . ?t rdf:type ontology:Q989255 } GROUP BY ?i } . FILTER ( ?j = 1 ) }
action approx
action find_reverse_tuple_counts
relation killed by
type Middle-earth races
type Middle-earth races
value 1
[{'concept': 'Middle-earth races'}, 'killed by', {'concept': 'Middle-earth races'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?t ) AS ?j ) WHERE { ?t property:killed_by ?i . ?i rdf:type ontology:Middle-earth_races . ?t rdf:type ontology:Middle-earth_races } GROUP BY ?i } . FILTER ( ?j = 1 ) }
[]
Middle-earth races Middle-earth races
Q770363 Q593531 Q734128
SYSTEM
Húrin Thalion, Eärendil, Thingol
Q3643663 Q770363 Q2470173 Q338688 Q1767106 Q15007 Q14917254 Q2083861 Q548759 Q2609614 Q593531 Q734128 Q1961697
(c(Q989255),P157,c(Q989255))
action approx
action find_reverse_tuple_counts
relation P157
type Q989255
type Q989255
value 1
[ANSWERS]
[{'concept': 'Q989255'}, 'P157', {'concept': 'Q989255'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?t ) AS ?j ) WHERE { ?t property:P157 ?i . ?i rdf:type ontology:Q989255 . ?t rdf:type ontology:Q989255 } GROUP BY ?i } . FILTER ( ?j = 1 ) }
Bandobras Took Húrin Thalion Bard the Bowman dwarves in Tolkien's legendarium Dáin II Ironfoot Gollum Castamir Helm Hammerhand Ecthelion of the Fountain Eldacar Eärendil Thingol Fram
Which Middle-earth racess were the killers of approximately 1 Middle-earth races
Húrin Thalion Eärendil Thingol
action approx
action find_reverse_tuple_counts
relation killed by
type Middle-earth races
type Middle-earth races
value 1
[{'concept': 'Middle-earth races'}, 'killed by', {'concept': 'Middle-earth races'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?t ) AS ?j ) WHERE { ?t property:killed_by ?i . ?i rdf:type ontology:Middle-earth_races . ?t rdf:type ontology:Middle-earth_races } GROUP BY ?i } . FILTER ( ?j = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2345120
P1441
Q2342494
USER
Which collectable features Olwë ?
(Q2345120,P1441,c(Q2342494))
action filter_type
action find
entity Q2345120
relation P1441
type Q2342494
['Q2345120', 'P1441', {'concept': 'Q2342494'}]
SELECT DISTINCT ?x WHERE { resource:Q2345120 property:P1441 ?x . ?x rdf:type ontology:Q2342494 }
Olwë
action filter_type
action find
entity Olwë
relation present in work
type collectable
['Olwë', 'present in work', {'concept': 'collectable'}]
SELECT DISTINCT ?x WHERE { resource:Olwë property:present_in_work ?x . ?x rdf:type ontology:collectable }
[]
collectable
Q79762
SYSTEM
The Silmarillion
Q79762
(Q2345120,P1441,c(Q2342494))
action filter_type
action find
entity Q2345120
relation P1441
type Q2342494
[ANSWER]
['Q2345120', 'P1441', {'concept': 'Q2342494'}]
SELECT DISTINCT ?x WHERE { resource:Q2345120 property:P1441 ?x . ?x rdf:type ontology:Q2342494 }
The Silmarillion
The Silmarillion
action filter_type
action find
entity Olwë
relation present in work
type collectable
['Olwë', 'present in work', {'concept': 'collectable'}]
SELECT DISTINCT ?x WHERE { resource:Olwë property:present_in_work ?x . ?x rdf:type ontology:collectable }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q593531
P25
Q989255
USER
Which female Middle-earth races has a child named Eärendil ?
(Q593531,P25,c(Q989255))
action filter_type
action find
entity Q593531
relation P25
type Q989255
['Q593531', 'P25', {'concept': 'Q989255'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q989255 . resource:Q593531 property:P25 ?v }
Eärendil
action filter_type
action find
entity Eärendil
relation mother
type Middle-earth races
['Eärendil', 'mother', {'concept': 'Middle-earth races'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Middle-earth_races . resource:Eärendil property:mother ?v }
[]
Middle-earth races
Q1767115
SYSTEM
Idril
Q1767115
(Q593531,P25,c(Q989255))
action filter_type
action find
entity Q593531
relation P25
type Q989255
Which female Middle-earth races has a child named Eärendil
['Q593531', 'P25', {'concept': 'Q989255'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q989255 . resource:Q593531 property:P25 ?v }
Idril
Which female Middle-earth races has a child named Eärendil
Idril
action filter_type
action find
entity Eärendil
relation mother
type Middle-earth races
['Eärendil', 'mother', {'concept': 'Middle-earth races'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Middle-earth_races . resource:Eärendil property:mother ?v }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q23817023
Q989255
USER
And how about Orgulas Brandybuck?
(Q23817023,P25,c(Q989255))
action filter_type
action find
entity Q23817023
relation P25
type Q989255
['Q23817023', 'P25', {'concept': 'Q989255'}]
SELECT DISTINCT ?t WHERE { resource:Q23817023 property:P25 ?t . ?t rdf:type ontology:Q989255 }
Orgulas Brandybuck
action filter_type
action find
entity Orgulas Brandybuck
relation mother
type Middle-earth races
['Orgulas Brandybuck', 'mother', {'concept': 'Middle-earth races'}]
SELECT DISTINCT ?t WHERE { resource:Orgulas_Brandybuck property:mother ?t . ?t rdf:type ontology:Middle-earth_races }
[]
Middle-earth races
Q16524611
SYSTEM
Adaldrida Brandybuck
Q16524611
(Q23817023,P25,c(Q989255))
action filter_type
action find
entity Q23817023
relation P25
type Q989255
[ANSWER]
['Q23817023', 'P25', {'concept': 'Q989255'}]
SELECT DISTINCT ?t WHERE { resource:Q23817023 property:P25 ?t . ?t rdf:type ontology:Q989255 }
Adaldrida Brandybuck
Adaldrida Brandybuck
action filter_type
action find
entity Orgulas Brandybuck
relation mother
type Middle-earth races
['Orgulas Brandybuck', 'mother', {'concept': 'Middle-earth races'}]
SELECT DISTINCT ?t WHERE { resource:Orgulas_Brandybuck property:mother ?t . ?t rdf:type ontology:Middle-earth_races }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q16524611 Q3641724
P361
Q14514600
USER
Is Adaldrida Brandybuck a portion of Bolger family ?
(Q16524611,P361,Q3641724)
action is_in
entity Q3641724
action find
entity Q16524611
relation P361
['Q16524611', 'P361', 'Q3641724']
ASK WHERE { resource:Q16524611 property:P361 resource:Q3641724 }
Adaldrida Brandybuck Bolger family
action is_in
entity Bolger family
action find
entity Adaldrida Brandybuck
relation part of
['Adaldrida Brandybuck', 'part of', 'Bolger family']
ASK WHERE { resource:Adaldrida_Brandybuck property:part_of resource:Bolger_family }
[]
group of fictional characters
SYSTEM
YES
(Q16524611,P361,Q3641724)
action is_in
entity Q3641724
action find
entity Q16524611
relation P361
[ANSWER]
['Q16524611', 'P361', 'Q3641724']
ASK WHERE { resource:Q16524611 property:P361 resource:Q3641724 }
Yes
action is_in
entity Bolger family
action find
entity Adaldrida Brandybuck
relation part of
['Adaldrida Brandybuck', 'part of', 'Bolger family']
ASK WHERE { resource:Adaldrida_Brandybuck property:part_of resource:Bolger_family }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1767115 Q3278141 Q23419121
P1441
Q2342494
USER
Is Idril from the works of Maigret Goes to School and The Veiled Detective ?
(Q1767115,P1441,Q3278141) (Q1767115,P1441,Q23419121)
action is_in
entity Q1767115
action intersection
action find_reverse
entity Q3278141
relation P1441
action find_reverse
entity Q23419121
relation P1441
['Q1767115', 'P1441', 'Q3278141'] ['Q1767115', 'P1441', 'Q23419121']
ASK WHERE { resource:Q1767115 property:P1441 resource:Q3278141 . resource:Q1767115 property:P1441 resource:Q23419121 }
Idril Maigret Goes to School The Veiled Detective
action is_in
entity Idril
action intersection
action find_reverse
entity Maigret Goes to School
relation present in work
action find_reverse
entity The Veiled Detective
relation present in work
['Idril', 'present in work', 'Maigret Goes to School'] ['Idril', 'present in work', 'The Veiled Detective']
ASK WHERE { resource:Idril property:present_in_work resource:Maigret_Goes_to_School . resource:Idril property:present_in_work resource:The_Veiled_Detective }
[]
collectable
SYSTEM
NO
(Q1767115,P1441,Q3278141) (Q1767115,P1441,Q23419121)
action is_in
entity Q1767115
action intersection
action find_reverse
entity Q3278141
relation P1441
action find_reverse
entity Q23419121
relation P1441
[ANSWER]
['Q1767115', 'P1441', 'Q3278141'] ['Q1767115', 'P1441', 'Q23419121']
ASK WHERE { resource:Q1767115 property:P1441 resource:Q3278141 . resource:Q1767115 property:P1441 resource:Q23419121 }
No
action is_in
entity Idril
action intersection
action find_reverse
entity Maigret Goes to School
relation present in work
action find_reverse
entity The Veiled Detective
relation present in work
['Idril', 'present in work', 'Maigret Goes to School'] ['Idril', 'present in work', 'The Veiled Detective']
ASK WHERE { resource:Idril property:present_in_work resource:Maigret_Goes_to_School . resource:Idril property:present_in_work resource:The_Veiled_Detective }
[]