Simple Question (Direct)
Simple Question
Q5735626
P27
Q15617994
USER
Which administrative territory is Herbert Sparkes a civilian of ?
(Q5735626,P27,c(Q15617994))
action filter_type
action find
entity Q5735626
relation P27
type Q15617994
['Q5735626', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q5735626 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
Herbert Sparkes
action filter_type
action find
entity Herbert Sparkes
relation country of citizenship
type designation for an administrative territorial entity
['Herbert Sparkes', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Herbert_Sparkes property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q5735626,P27,c(Q15617994))
action filter_type
action find
entity Q5735626
relation P27
type Q15617994
Which administrative territory is Herbert Sparkes a civilian of
['Q5735626', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q5735626 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
United Kingdom
Which administrative territory is Herbert Sparkes a civilian of
United Kingdom
action filter_type
action find
entity Herbert Sparkes
relation country of citizenship
type designation for an administrative territorial entity
['Herbert Sparkes', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Herbert_Sparkes property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5735626
P1412
Q34770
USER
Which language is spoken by that person ?
(Q145,P1412,c(Q34770))
action filter_type
action find
entity Q5735626
relation P1412
type Q34770
['Q145', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { resource:Q5735626 property:P1412 ?u . ?u rdf:type ontology:Q34770 }
Herbert Sparkes
action filter_type
action find
entity Herbert Sparkes
relation languages spoken, written or signed
type language
['United Kingdom', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { resource:Herbert_Sparkes property:languages_spoken,_written_or_signed ?u . ?u rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q145,P1412,c(Q34770))
action filter_type
action find
entity Q5735626
relation P1412
type Q34770
Are [ANSWER] is spoken by that person
['Q145', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { resource:Q5735626 property:P1412 ?u . ?u rdf:type ontology:Q34770 }
English
Are English is spoken by that person
English
action filter_type
action find
entity Herbert Sparkes
relation languages spoken, written or signed
type language
['United Kingdom', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { resource:Herbert_Sparkes property:languages_spoken,_written_or_signed ?u . ?u rdf:type ontology:language }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1860 Q1346342
P361
Q5962346
USER
Is English a component of Anglic languages ?
(Q1860,P361,Q1346342)
action is_in
entity Q1346342
action find
entity Q1860
relation P361
['Q1860', 'P361', 'Q1346342']
ASK WHERE { resource:Q1860 property:P361 resource:Q1346342 }
English Anglic languages
action is_in
entity Anglic languages
action find
entity English
relation part of
['English', 'part of', 'Anglic languages']
ASK WHERE { resource:English property:part_of resource:Anglic_languages }
[]
classification scheme
SYSTEM
YES
(Q1860,P361,Q1346342)
action is_in
entity Q1346342
action find
entity Q1860
relation P361
[ANSWER]
['Q1860', 'P361', 'Q1346342']
ASK WHERE { resource:Q1860 property:P361 resource:Q1346342 }
Yes
action is_in
entity Anglic languages
action find
entity English
relation part of
['English', 'part of', 'Anglic languages']
ASK WHERE { resource:English property:part_of resource:Anglic_languages }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q5735626 Q9626
P102
Q7210356
USER
Is that person a member of Conservative Party ?
(Q5735626,P102,Q9626)
action is_in
entity Q9626
action find
entity Q5735626
relation P102
['Q5735626', 'P102', 'Q9626']
ASK WHERE { resource:Q5735626 property:P102 resource:Q9626 }
Herbert Sparkes Conservative Party
action is_in
entity Conservative Party
action find
entity Herbert Sparkes
relation member of political party
['Herbert Sparkes', 'member of political party', 'Conservative Party']
ASK WHERE { resource:Herbert_Sparkes property:member_of_political_party resource:Conservative_Party }
[]
political organization
SYSTEM
YES
(Q5735626,P102,Q9626)
action is_in
entity Q9626
action find
entity Q5735626
relation P102
[ANSWER]
['Q5735626', 'P102', 'Q9626']
ASK WHERE { resource:Q5735626 property:P102 resource:Q9626 }
Yes
action is_in
entity Conservative Party
action find
entity Herbert Sparkes
relation member of political party
['Herbert Sparkes', 'member of political party', 'Conservative Party']
ASK WHERE { resource:Herbert_Sparkes property:member_of_political_party resource:Conservative_Party }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q131539 Q1346342
P136 P364
Q2342494
USER
Which collectables were originally created in Anglic languages language and have children's literature as genre ?
AND((c(Q2342494),P364,Q1346342), (c(Q2342494),P136,Q131539))
action filter_type
action intersection
action find_reverse
entity Q1346342
relation P364
action find_reverse
entity Q131539
relation P136
type Q2342494
{'AND': [[{'concept': 'Q2342494'}, 'P364', 'Q1346342'], [{'concept': 'Q2342494'}, 'P136', 'Q131539']]}
SELECT DISTINCT ?r WHERE { ?r property:P136 resource:Q131539 . ?r property:P364 resource:Q1346342 . ?r rdf:type ontology:Q2342494 }
children's literature Anglic languages
action filter_type
action intersection
action find_reverse
entity Anglic languages
relation original language of work
action find_reverse
entity children's literature
relation genre
type collectable
{'AND': [[{'concept': 'collectable'}, 'original language of work', 'Anglic languages'], [{'concept': 'collectable'}, 'genre', "children's literature"]]}
SELECT DISTINCT ?r WHERE { ?r property:genre resource:children's_literature . ?r property:original_language_of_work resource:Anglic_languages . ?r rdf:type ontology:collectable }
[]
collectable
Q7766896
SYSTEM
The Strange Case of Origami Yoda
Q7766896
AND((c(Q2342494),P364,Q1346342), (c(Q2342494),P136,Q131539))
action filter_type
action intersection
action find_reverse
entity Q1346342
relation P364
action find_reverse
entity Q131539
relation P136
type Q2342494
[ANSWER] was originally created in Anglic languages language and have children's literature as genre
{'AND': [[{'concept': 'Q2342494'}, 'P364', 'Q1346342'], [{'concept': 'Q2342494'}, 'P136', 'Q131539']]}
SELECT DISTINCT ?r WHERE { ?r property:P136 resource:Q131539 . ?r property:P364 resource:Q1346342 . ?r rdf:type ontology:Q2342494 }
The Strange Case of Origami Yoda
The Strange Case of Origami Yoda was originally created in Anglic languages language and have children's literature as genre
The Strange Case of Origami Yoda
action filter_type
action intersection
action find_reverse
entity Anglic languages
relation original language of work
action find_reverse
entity children's literature
relation genre
type collectable
{'AND': [[{'concept': 'collectable'}, 'original language of work', 'Anglic languages'], [{'concept': 'collectable'}, 'genre', "children's literature"]]}
SELECT DISTINCT ?r WHERE { ?r property:genre resource:children's_literature . ?r property:original_language_of_work resource:Anglic_languages . ?r rdf:type ontology:collectable }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1441
Q2342494 Q6619679 Q15619164
USER
How many collectables do approximately 14 fictional humanoids or abstract beings appear ?
(c(Q6619679)|c(Q15619164),P1441,c(Q2342494))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1441
type Q2342494
type Q6619679
action find_reverse_tuple_counts
relation P1441
type Q2342494
type Q15619164
value 14
[[{'concept': 'Q6619679'}, {'concept': 'Q15619164'}], 'P1441', {'concept': 'Q2342494'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?d ) AS ?c ) WHERE { { ?b rdf:type ontology:Q2342494 . ?d rdf:type ontology:Q6619679 . ?d property:P1441 ?b } UNION { ?d property:P1441 ?b . ?b rdf:type ontology:Q2342494 . ?d rdf:type ontology:Q15619164 } } GROUP BY ?b } . FILTER ( ?c = 14 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation present in work
type collectable
type fictional humanoid
action find_reverse_tuple_counts
relation present in work
type collectable
type abstract being
value 14
[[{'concept': 'fictional humanoid'}, {'concept': 'abstract being'}], 'present in work', {'concept': 'collectable'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?d ) AS ?c ) WHERE { { ?b rdf:type ontology:collectable . ?d rdf:type ontology:fictional_humanoid . ?d property:present_in_work ?b } UNION { ?d property:present_in_work ?b . ?b rdf:type ontology:collectable . ?d rdf:type ontology:abstract_being } } GROUP BY ?b } . FILTER ( ?c = 14 ) }
[]
collectable fictional humanoid abstract being
SYSTEM
15
Q1788243 Q220331 Q70806 Q289130 Q189811 Q218950 Q92640 Q582811 Q157360 Q161531 Q11894198 Q485093 Q202975 Q180736 Q41542
(c(Q6619679)|c(Q15619164),P1441,c(Q2342494))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1441
type Q2342494
type Q6619679
action find_reverse_tuple_counts
relation P1441
type Q2342494
type Q15619164
value 14
[ANSWER]
[[{'concept': 'Q6619679'}, {'concept': 'Q15619164'}], 'P1441', {'concept': 'Q2342494'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?d ) AS ?c ) WHERE { { ?b rdf:type ontology:Q2342494 . ?d rdf:type ontology:Q6619679 . ?d property:P1441 ?b } UNION { ?d property:P1441 ?b . ?b rdf:type ontology:Q2342494 . ?d rdf:type ontology:Q15619164 } } GROUP BY ?b } . FILTER ( ?c = 14 ) }
The Unknown Soldier Through the Looking-Glass Romance of the Three Kingdoms The Last Battle David Copperfield Prince Caspian Alice's Adventures in Wonderland Tinker, Tailor, Soldier, Spy The Horse and His Boy War and Peace Sotaromaani The Lion, the Witch, and the Wardrobe Wuthering Heights Les Misérables Dracula
15
action count
action approx
action union
action find_reverse_tuple_counts
relation present in work
type collectable
type fictional humanoid
action find_reverse_tuple_counts
relation present in work
type collectable
type abstract being
value 14
[[{'concept': 'fictional humanoid'}, {'concept': 'abstract being'}], 'present in work', {'concept': 'collectable'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?d ) AS ?c ) WHERE { { ?b rdf:type ontology:collectable . ?d rdf:type ontology:fictional_humanoid . ?d property:present_in_work ?b } UNION { ?d property:present_in_work ?b . ?b rdf:type ontology:collectable . ?d rdf:type ontology:abstract_being } } GROUP BY ?b } . FILTER ( ?c = 14 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5735626
P39
Q12737077
USER
Which occupation was a position held by Herbert Sparkes ?
(Q5735626,P39,c(Q12737077))
action filter_type
action find
entity Q5735626
relation P39
type Q12737077
['Q5735626', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q5735626 property:P39 ?w . ?w rdf:type ontology:Q12737077 }
Herbert Sparkes
action filter_type
action find
entity Herbert Sparkes
relation position held
type occupation
['Herbert Sparkes', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Herbert_Sparkes property:position_held ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q16707842
SYSTEM
Member of Parliament in the United Kingdom
Q16707842
(Q5735626,P39,c(Q12737077))
action filter_type
action find
entity Q5735626
relation P39
type Q12737077
The [ANSWER] was a position held by Herbert Sparkes
['Q5735626', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q5735626 property:P39 ?w . ?w rdf:type ontology:Q12737077 }
Member of Parliament in the United Kingdom
The Member of Parliament in the United Kingdom was a position held by Herbert Sparkes
Member of Parliament in the United Kingdom
action filter_type
action find
entity Herbert Sparkes
relation position held
type occupation
['Herbert Sparkes', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Herbert_Sparkes property:position_held ?w . ?w rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7325775
Q12737077
USER
And how about Richard Franklin Preston?
(Q7325775,P39,c(Q12737077))
action filter_type
action find
entity Q7325775
relation P39
type Q12737077
['Q7325775', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q7325775 property:P39 ?j . ?j rdf:type ontology:Q12737077 }
Richard Franklin Preston
action filter_type
action find
entity Richard Franklin Preston
relation position held
type occupation
['Richard Franklin Preston', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Richard_Franklin_Preston property:position_held ?j . ?j rdf:type ontology:occupation }
[]
occupation
Q3305347 Q15964890
SYSTEM
Member of Ontario Provincial Parliament, member of the House of Commons of Canada
Q3305347 Q15964890
(Q7325775,P39,c(Q12737077))
action filter_type
action find
entity Q7325775
relation P39
type Q12737077
[ANSWERS]
['Q7325775', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q7325775 property:P39 ?j . ?j rdf:type ontology:Q12737077 }
Member of Ontario Provincial Parliament member of the House of Commons of Canada
Member of Ontario Provincial Parliament member of the House of Commons of Canada
action filter_type
action find
entity Richard Franklin Preston
relation position held
type occupation
['Richard Franklin Preston', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Richard_Franklin_Preston property:position_held ?j . ?j rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4795100
P39
Q502895
USER
Were Arnold J. Isbell appointed for the position of those occupations ?
(Q4795100,P39,Q3305347) (Q4795100,P39,Q15964890)
action is_in
entity prev_answer
action find
entity Q4795100
relation P39
['Q4795100', 'P39', 'Q3305347'] ['Q4795100', 'P39', 'Q15964890']
ASK WHERE { VALUES ( ?t ) { ( resource:Q3305347 ) ( resource:Q15964890 ) } . resource:Q4795100 property:P39 ?t }
Arnold J. Isbell
action is_in
entity prev_answer
action find
entity Arnold J. Isbell
relation position held
['Arnold J. Isbell', 'position held', 'Member of Ontario Provincial Parliament'] ['Arnold J. Isbell', 'position held', 'member of the House of Commons of Canada']
ASK WHERE { VALUES ( ?t ) { ( resource:Member_of_Ontario_Provincial_Parliament ) ( resource:member_of_the_House_of_Commons_of_Canada ) } . resource:Arnold_J._Isbell property:position_held ?t }
[]
common name
SYSTEM
NO
(Q4795100,P39,Q3305347) (Q4795100,P39,Q15964890)
action is_in
entity prev_answer
action find
entity Q4795100
relation P39
[ANSWER]
['Q4795100', 'P39', 'Q3305347'] ['Q4795100', 'P39', 'Q15964890']
ASK WHERE { VALUES ( ?t ) { ( resource:Q3305347 ) ( resource:Q15964890 ) } . resource:Q4795100 property:P39 ?t }
No
action is_in
entity prev_answer
action find
entity Arnold J. Isbell
relation position held
['Arnold J. Isbell', 'position held', 'Member of Ontario Provincial Parliament'] ['Arnold J. Isbell', 'position held', 'member of the House of Commons of Canada']
ASK WHERE { VALUES ( ?t ) { ( resource:Member_of_Ontario_Provincial_Parliament ) ( resource:member_of_the_House_of_Commons_of_Canada ) } . resource:Arnold_J._Isbell property:position_held ?t }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q5735626 Q82955
P106
Q12737077
USER
Does Herbert Sparkes do for a living politician ?
(Q5735626,P106,Q82955)
action is_in
entity Q82955
action find
entity Q5735626
relation P106
['Q5735626', 'P106', 'Q82955']
ASK WHERE { resource:Q5735626 property:P106 resource:Q82955 }
Herbert Sparkes politician
action is_in
entity politician
action find
entity Herbert Sparkes
relation occupation
['Herbert Sparkes', 'occupation', 'politician']
ASK WHERE { resource:Herbert_Sparkes property:occupation resource:politician }
[]
occupation
SYSTEM
YES
(Q5735626,P106,Q82955)
action is_in
entity Q82955
action find
entity Q5735626
relation P106
[ANSWER]
['Q5735626', 'P106', 'Q82955']
ASK WHERE { resource:Q5735626 property:P106 resource:Q82955 }
Yes
action is_in
entity politician
action find
entity Herbert Sparkes
relation occupation
['Herbert Sparkes', 'occupation', 'politician']
ASK WHERE { resource:Herbert_Sparkes property:occupation resource:politician }
[]