Simple Question (Direct)
Simple Question
Q684958
P39
Q12737077
USER
Which occupations were the positions occupied by William Longchamp ?
(Q684958,P39,c(Q12737077))
action filter_type
action find
entity Q684958
relation P39
type Q12737077
['Q684958', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q684958 property:P39 ?h . ?h rdf:type ontology:Q12737077 }
William Longchamp
action filter_type
action find
entity William Longchamp
relation position held
type occupation
['William Longchamp', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:William_Longchamp property:position_held ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q217217 Q461013
SYSTEM
Lord Chancellor, Bishop of Ely
Q217217 Q461013
(Q684958,P39,c(Q12737077))
action filter_type
action find
entity Q684958
relation P39
type Q12737077
[ANSWERS] were the positions occupied by William Longchamp
['Q684958', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q684958 property:P39 ?h . ?h rdf:type ontology:Q12737077 }
Lord Chancellor Bishop of Ely
Lord Chancellor and Bishop of Ely were the positions occupied by William Longchamp
Lord Chancellor Bishop of Ely
action filter_type
action find
entity William Longchamp
relation position held
type occupation
['William Longchamp', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:William_Longchamp property:position_held ?h . ?h rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q217217 Q461013
P17
Q15617994
USER
Which administrative territories are Lord Chancellor and Bishop of Ely a part of ?
(Q217217,P17,c(Q15617994)) (Q461013,P17,c(Q15617994))
action union
action filter_type
action find
entity Q217217
relation P17
type Q15617994
action filter_type
action find
entity Q461013
relation P17
type Q15617994
['Q217217', 'P17', {'concept': 'Q15617994'}] ['Q461013', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { resource:Q461013 property:P17 ?z . ?z rdf:type ontology:Q15617994 } UNION { ?z rdf:type ontology:Q15617994 . resource:Q217217 property:P17 ?z } }
Lord Chancellor Bishop of Ely
action union
action filter_type
action find
entity Lord Chancellor
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Bishop of Ely
relation country
type designation for an administrative territorial entity
['Lord Chancellor', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Bishop of Ely', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { resource:Bishop_of_Ely property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Lord_Chancellor property:country ?z } }
[]
designation for an administrative territorial entity
Q145 Q145
SYSTEM
United Kingdom
Q145 Q145
(Q217217,P17,c(Q15617994)) (Q461013,P17,c(Q15617994))
action union
action filter_type
action find
entity Q217217
relation P17
type Q15617994
action filter_type
action find
entity Q461013
relation P17
type Q15617994
And [ANSWER] and [ANSWER] are Lord Chancellor and Bishop of Ely a part of
['Q217217', 'P17', {'concept': 'Q15617994'}] ['Q461013', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { resource:Q461013 property:P17 ?z . ?z rdf:type ontology:Q15617994 } UNION { ?z rdf:type ontology:Q15617994 . resource:Q217217 property:P17 ?z } }
United Kingdom United Kingdom
And United Kingdom and United Kingdom are Lord Chancellor and Bishop of Ely a part of
United Kingdom United Kingdom
action union
action filter_type
action find
entity Lord Chancellor
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Bishop of Ely
relation country
type designation for an administrative territorial entity
['Lord Chancellor', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Bishop of Ely', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { resource:Bishop_of_Ely property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Lord_Chancellor property:country ?z } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q684958
P106
Q12737077
USER
Which occupations are the professions of William Longchamp ?
(Q684958,P106,c(Q12737077))
action filter_type
action find
entity Q684958
relation P106
type Q12737077
['Q684958', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q684958 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
William Longchamp
action filter_type
action find
entity William Longchamp
relation occupation
type occupation
['William Longchamp', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:William_Longchamp property:occupation ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q193391 Q16533 Q42603
SYSTEM
diplomat, judge, priest
Q193391 Q16533 Q42603
(Q684958,P106,c(Q12737077))
action filter_type
action find
entity Q684958
relation P106
type Q12737077
The professions of William Longchamp are [ANSWERS]
['Q684958', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q684958 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
diplomat judge priest
The professions of William Longchamp are diplomat, judge and priest
diplomat judge priest
action filter_type
action find
entity William Longchamp
relation occupation
type occupation
['William Longchamp', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:William_Longchamp property:occupation ?i . ?i rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q8020799
P106
Q502895
USER
Do William de Lauder have the profession as those occupations ?
(Q8020799,P106,Q193391) (Q8020799,P106,Q16533) (Q8020799,P106,Q42603)
action is_in
entity prev_answer
action find
entity Q8020799
relation P106
['Q8020799', 'P106', 'Q193391'] ['Q8020799', 'P106', 'Q16533'] ['Q8020799', 'P106', 'Q42603']
ASK WHERE { resource:Q8020799 property:P106 ?w . VALUES ( ?w ) { ( resource:Q193391 ) ( resource:Q16533 ) ( resource:Q42603 ) } }
William de Lauder
action is_in
entity prev_answer
action find
entity William de Lauder
relation occupation
['William de Lauder', 'occupation', 'diplomat'] ['William de Lauder', 'occupation', 'judge'] ['William de Lauder', 'occupation', 'priest']
ASK WHERE { resource:William_de_Lauder property:occupation ?w . VALUES ( ?w ) { ( resource:diplomat ) ( resource:judge ) ( resource:priest ) } }
[]
common name
SYSTEM
YES
(Q8020799,P106,Q193391) (Q8020799,P106,Q16533) (Q8020799,P106,Q42603)
action is_in
entity prev_answer
action find
entity Q8020799
relation P106
[ANSWER]
['Q8020799', 'P106', 'Q193391'] ['Q8020799', 'P106', 'Q16533'] ['Q8020799', 'P106', 'Q42603']
ASK WHERE { resource:Q8020799 property:P106 ?w . VALUES ( ?w ) { ( resource:Q193391 ) ( resource:Q16533 ) ( resource:Q42603 ) } }
Yes
action is_in
entity prev_answer
action find
entity William de Lauder
relation occupation
['William de Lauder', 'occupation', 'diplomat'] ['William de Lauder', 'occupation', 'judge'] ['William de Lauder', 'occupation', 'priest']
ASK WHERE { resource:William_de_Lauder property:occupation ?w . VALUES ( ?w ) { ( resource:diplomat ) ( resource:judge ) ( resource:priest ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q145 Q491378 Q155
P530
Q15617994
USER
Does United Kingdom have diplomatic relations with Alimena and Brazil ?
(Q145,P530,Q491378) (Q145,P530,Q155)
action is_in
entity Q145
action intersection
action find_reverse
entity Q491378
relation P530
action find_reverse
entity Q155
relation P530
['Q145', 'P530', 'Q491378'] ['Q145', 'P530', 'Q155']
ASK WHERE { resource:Q145 property:P530 resource:Q491378 . resource:Q145 property:P530 resource:Q155 }
United Kingdom Alimena Brazil
action is_in
entity United Kingdom
action intersection
action find_reverse
entity Alimena
relation diplomatic relation
action find_reverse
entity Brazil
relation diplomatic relation
['United Kingdom', 'diplomatic relation', 'Alimena'] ['United Kingdom', 'diplomatic relation', 'Brazil']
ASK WHERE { resource:United_Kingdom property:diplomatic_relation resource:Alimena . resource:United_Kingdom property:diplomatic_relation resource:Brazil }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q145,P530,Q491378) (Q145,P530,Q155)
action is_in
entity Q145
action intersection
action find_reverse
entity Q491378
relation P530
action find_reverse
entity Q155
relation P530
[ANSWER]
['Q145', 'P530', 'Q491378'] ['Q145', 'P530', 'Q155']
ASK WHERE { resource:Q145 property:P530 resource:Q491378 . resource:Q145 property:P530 resource:Q155 }
NO and YES respectively
action is_in
entity United Kingdom
action intersection
action find_reverse
entity Alimena
relation diplomatic relation
action find_reverse
entity Brazil
relation diplomatic relation
['United Kingdom', 'diplomatic relation', 'Alimena'] ['United Kingdom', 'diplomatic relation', 'Brazil']
ASK WHERE { resource:United_Kingdom property:diplomatic_relation resource:Alimena . resource:United_Kingdom property:diplomatic_relation resource:Brazil }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1090217 Q8020799
P106
Q12737077
USER
Which occupations are the job of William de Lauder or Luca D'Ascia ?
OR((Q8020799,P106,c(Q12737077)), (Q1090217,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q8020799
relation P106
action find
entity Q1090217
relation P106
type Q12737077
{'OR': [['Q8020799', 'P106', {'concept': 'Q12737077'}], ['Q1090217', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?o WHERE { { ?n property:P106 ?o . VALUES ( ?n ) { ( resource:Q8020799 ) ( resource:Q1090217 ) } } . ?o rdf:type ontology:Q12737077 }
Luca D'Ascia William de Lauder
action filter_type
action union
action find
entity William de Lauder
relation occupation
action find
entity Luca D'Ascia
relation occupation
type occupation
{'OR': [['William de Lauder', 'occupation', {'concept': 'occupation'}], ["Luca D'Ascia", 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?o WHERE { { ?n property:occupation ?o . VALUES ( ?n ) { ( resource:William_de_Lauder ) ( resource:Luca_D'Ascia ) } } . ?o rdf:type ontology:occupation }
[]
occupation
Q193391 Q16533 Q36180 Q4263842 Q42603 Q37226
SYSTEM
diplomat, judge, writer, literary critic, priest, teacher
Q193391 Q16533 Q36180 Q4263842 Q42603 Q37226
OR((Q8020799,P106,c(Q12737077)), (Q1090217,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q8020799
relation P106
action find
entity Q1090217
relation P106
type Q12737077
The [ANSWERS] are the job of William de Lauder or Luca D'Ascia
{'OR': [['Q8020799', 'P106', {'concept': 'Q12737077'}], ['Q1090217', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?o WHERE { { ?n property:P106 ?o . VALUES ( ?n ) { ( resource:Q8020799 ) ( resource:Q1090217 ) } } . ?o rdf:type ontology:Q12737077 }
diplomat judge writer literary critic priest teacher
The diplomat, judge, writer, literary critic, priest and teacher are the job of William de Lauder or Luca D'Ascia
diplomat judge writer literary critic priest teacher
action filter_type
action union
action find
entity William de Lauder
relation occupation
action find
entity Luca D'Ascia
relation occupation
type occupation
{'OR': [['William de Lauder', 'occupation', {'concept': 'occupation'}], ["Luca D'Ascia", 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?o WHERE { { ?n property:occupation ?o . VALUES ( ?n ) { ( resource:William_de_Lauder ) ( resource:Luca_D'Ascia ) } } . ?o rdf:type ontology:occupation }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P106
Q4164871 Q6619679
USER
How many positions or fictional humanoids have the profession of that occupation ?
(c(Q4164871),P106,Q193391) (c(Q6619679),P106,Q193391) (c(Q4164871),P106,Q193391) (c(Q6619679),P106,Q193391) (c(Q4164871),P106,Q16533) (c(Q6619679),P106,Q16533) (c(Q4164871),P106,Q36180) (c(Q6619679),P106,Q36180) (c(Q4164871),P106,Q4263842) (c(Q6619679),P106,Q4263842) (c(Q4164871),P106,Q42603) (c(Q6619679),P106,Q42603) (c(Q4164871),P106,Q37226) (c(Q6619679),P106,Q37226)
[{'concept': 'Q4164871'}, 'P106', 'Q193391'] [{'concept': 'Q6619679'}, 'P106', 'Q193391'] [{'concept': 'Q4164871'}, 'P106', 'Q193391'] [{'concept': 'Q6619679'}, 'P106', 'Q193391'] [{'concept': 'Q4164871'}, 'P106', 'Q16533'] [{'concept': 'Q6619679'}, 'P106', 'Q16533'] [{'concept': 'Q4164871'}, 'P106', 'Q36180'] [{'concept': 'Q6619679'}, 'P106', 'Q36180'] [{'concept': 'Q4164871'}, 'P106', 'Q4263842'] [{'concept': 'Q6619679'}, 'P106', 'Q4263842'] [{'concept': 'Q4164871'}, 'P106', 'Q42603'] [{'concept': 'Q6619679'}, 'P106', 'Q42603'] [{'concept': 'Q4164871'}, 'P106', 'Q37226'] [{'concept': 'Q6619679'}, 'P106', 'Q37226']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q528892 resource:Q193391 } UNION { ?y property:Q528892 resource:Q193391 } UNION { ?z property:Q528892 resource:Q193391 } UNION { ?y property:Q528892 resource:Q193391 } UNION { ?z property:Q528892 resource:Q6302455 } UNION { ?y property:Q528892 resource:Q6302455 } UNION { ?z property:Q528892 resource:Q36180 } UNION { ?y property:Q528892 resource:Q36180 } UNION { ?z property:Q528892 resource:Q4263842 } UNION { ?y property:Q528892 resource:Q4263842 } UNION { ?z property:Q528892 resource:Q7242875 } UNION { ?y property:Q528892 resource:Q7242875 } UNION { ?z property:Q528892 resource:Q37226 } UNION { ?y property:Q528892 resource:Q37226 } } . ?z rdf:type ontology:Q23008351 . ?y rdf:type ontology:Q6619679 }
[{'concept': 'position'}, 'occupation', 'diplomat'] [{'concept': 'fictional humanoid'}, 'occupation', 'diplomat'] [{'concept': 'position'}, 'occupation', 'diplomat'] [{'concept': 'fictional humanoid'}, 'occupation', 'diplomat'] [{'concept': 'position'}, 'occupation', 'judge'] [{'concept': 'fictional humanoid'}, 'occupation', 'judge'] [{'concept': 'position'}, 'occupation', 'writer'] [{'concept': 'fictional humanoid'}, 'occupation', 'writer'] [{'concept': 'position'}, 'occupation', 'literary critic'] [{'concept': 'fictional humanoid'}, 'occupation', 'literary critic'] [{'concept': 'position'}, 'occupation', 'priest'] [{'concept': 'fictional humanoid'}, 'occupation', 'priest'] [{'concept': 'position'}, 'occupation', 'teacher'] [{'concept': 'fictional humanoid'}, 'occupation', 'teacher']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:occupation resource:diplomat } UNION { ?y property:occupation resource:diplomat } UNION { ?z property:occupation resource:diplomat } UNION { ?y property:occupation resource:diplomat } UNION { ?z property:occupation resource:judge } UNION { ?y property:occupation resource:judge } UNION { ?z property:occupation resource:writer } UNION { ?y property:occupation resource:writer } UNION { ?z property:occupation resource:literary_critic } UNION { ?y property:occupation resource:literary_critic } UNION { ?z property:occupation resource:priest } UNION { ?y property:occupation resource:priest } UNION { ?z property:occupation resource:teacher } UNION { ?y property:occupation resource:teacher } } . ?z rdf:type ontology:position . ?y rdf:type ontology:fictional_humanoid }
[]
position fictional humanoid
Quantitative|Count|Mult. entity type|Clarification
Q37226
SYSTEM
Did you mean teacher ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q528892 resource:Q193391 } UNION { ?y property:Q528892 resource:Q193391 } UNION { ?z property:Q528892 resource:Q193391 } UNION { ?y property:Q528892 resource:Q193391 } UNION { ?z property:Q528892 resource:Q6302455 } UNION { ?y property:Q528892 resource:Q6302455 } UNION { ?z property:Q528892 resource:Q36180 } UNION { ?y property:Q528892 resource:Q36180 } UNION { ?z property:Q528892 resource:Q4263842 } UNION { ?y property:Q528892 resource:Q4263842 } UNION { ?z property:Q528892 resource:Q7242875 } UNION { ?y property:Q528892 resource:Q7242875 } UNION { ?z property:Q528892 resource:Q37226 } UNION { ?y property:Q528892 resource:Q37226 } } . ?z rdf:type ontology:Q23008351 . ?y rdf:type ontology:Q6619679 }
Did you mean teacher ?
teacher
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:occupation resource:diplomat } UNION { ?y property:occupation resource:diplomat } UNION { ?z property:occupation resource:diplomat } UNION { ?y property:occupation resource:diplomat } UNION { ?z property:occupation resource:judge } UNION { ?y property:occupation resource:judge } UNION { ?z property:occupation resource:writer } UNION { ?y property:occupation resource:writer } UNION { ?z property:occupation resource:literary_critic } UNION { ?y property:occupation resource:literary_critic } UNION { ?z property:occupation resource:priest } UNION { ?y property:occupation resource:priest } UNION { ?z property:occupation resource:teacher } UNION { ?y property:occupation resource:teacher } } . ?z rdf:type ontology:position . ?y rdf:type ontology:fictional_humanoid }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant diplomat. Could you tell me the answer for that?
(c(Q4164871),P106,Q193391) (c(Q6619679),P106,Q193391) (c(Q4164871),P106,Q193391) (c(Q6619679),P106,Q193391) (c(Q4164871),P106,Q16533) (c(Q6619679),P106,Q16533) (c(Q4164871),P106,Q36180) (c(Q6619679),P106,Q36180) (c(Q4164871),P106,Q4263842) (c(Q6619679),P106,Q4263842) (c(Q4164871),P106,Q42603) (c(Q6619679),P106,Q42603) (c(Q4164871),P106,Q37226) (c(Q6619679),P106,Q37226)
Q193391
[{'concept': 'Q4164871'}, 'P106', 'Q193391'] [{'concept': 'Q6619679'}, 'P106', 'Q193391'] [{'concept': 'Q4164871'}, 'P106', 'Q193391'] [{'concept': 'Q6619679'}, 'P106', 'Q193391'] [{'concept': 'Q4164871'}, 'P106', 'Q16533'] [{'concept': 'Q6619679'}, 'P106', 'Q16533'] [{'concept': 'Q4164871'}, 'P106', 'Q36180'] [{'concept': 'Q6619679'}, 'P106', 'Q36180'] [{'concept': 'Q4164871'}, 'P106', 'Q4263842'] [{'concept': 'Q6619679'}, 'P106', 'Q4263842'] [{'concept': 'Q4164871'}, 'P106', 'Q42603'] [{'concept': 'Q6619679'}, 'P106', 'Q42603'] [{'concept': 'Q4164871'}, 'P106', 'Q37226'] [{'concept': 'Q6619679'}, 'P106', 'Q37226']
[{'concept': 'position'}, 'occupation', 'diplomat'] [{'concept': 'fictional humanoid'}, 'occupation', 'diplomat'] [{'concept': 'position'}, 'occupation', 'diplomat'] [{'concept': 'fictional humanoid'}, 'occupation', 'diplomat'] [{'concept': 'position'}, 'occupation', 'judge'] [{'concept': 'fictional humanoid'}, 'occupation', 'judge'] [{'concept': 'position'}, 'occupation', 'writer'] [{'concept': 'fictional humanoid'}, 'occupation', 'writer'] [{'concept': 'position'}, 'occupation', 'literary critic'] [{'concept': 'fictional humanoid'}, 'occupation', 'literary critic'] [{'concept': 'position'}, 'occupation', 'priest'] [{'concept': 'fictional humanoid'}, 'occupation', 'priest'] [{'concept': 'position'}, 'occupation', 'teacher'] [{'concept': 'fictional humanoid'}, 'occupation', 'teacher']
[]
SYSTEM
5
Q2897588 Q7244308 Q977473 Q3474199 Q1921951
(c(Q4164871),P106,Q193391) (c(Q6619679),P106,Q193391) (c(Q4164871),P106,Q193391) (c(Q6619679),P106,Q193391) (c(Q4164871),P106,Q16533) (c(Q6619679),P106,Q16533) (c(Q4164871),P106,Q36180) (c(Q6619679),P106,Q36180) (c(Q4164871),P106,Q4263842) (c(Q6619679),P106,Q4263842) (c(Q4164871),P106,Q42603) (c(Q6619679),P106,Q42603) (c(Q4164871),P106,Q37226) (c(Q6619679),P106,Q37226)
[ANSWER]
[{'concept': 'Q4164871'}, 'P106', 'Q193391'] [{'concept': 'Q6619679'}, 'P106', 'Q193391'] [{'concept': 'Q4164871'}, 'P106', 'Q193391'] [{'concept': 'Q6619679'}, 'P106', 'Q193391'] [{'concept': 'Q4164871'}, 'P106', 'Q16533'] [{'concept': 'Q6619679'}, 'P106', 'Q16533'] [{'concept': 'Q4164871'}, 'P106', 'Q36180'] [{'concept': 'Q6619679'}, 'P106', 'Q36180'] [{'concept': 'Q4164871'}, 'P106', 'Q4263842'] [{'concept': 'Q6619679'}, 'P106', 'Q4263842'] [{'concept': 'Q4164871'}, 'P106', 'Q42603'] [{'concept': 'Q6619679'}, 'P106', 'Q42603'] [{'concept': 'Q4164871'}, 'P106', 'Q37226'] [{'concept': 'Q6619679'}, 'P106', 'Q37226']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q528892 resource:Q193391 } UNION { ?y property:Q528892 resource:Q193391 } UNION { ?z property:Q528892 resource:Q193391 } UNION { ?y property:Q528892 resource:Q193391 } UNION { ?z property:Q528892 resource:Q6302455 } UNION { ?y property:Q528892 resource:Q6302455 } UNION { ?z property:Q528892 resource:Q36180 } UNION { ?y property:Q528892 resource:Q36180 } UNION { ?z property:Q528892 resource:Q4263842 } UNION { ?y property:Q528892 resource:Q4263842 } UNION { ?z property:Q528892 resource:Q7242875 } UNION { ?y property:Q528892 resource:Q7242875 } UNION { ?z property:Q528892 resource:Q37226 } UNION { ?y property:Q528892 resource:Q37226 } } . ?z rdf:type ontology:Q23008351 . ?y rdf:type ontology:Q6619679 }
Ron Prosor Prince Zeid bin Ra'ad Edmund Friedemann Dräcker Saul Enderby Meron Reuben
5
[{'concept': 'position'}, 'occupation', 'diplomat'] [{'concept': 'fictional humanoid'}, 'occupation', 'diplomat'] [{'concept': 'position'}, 'occupation', 'diplomat'] [{'concept': 'fictional humanoid'}, 'occupation', 'diplomat'] [{'concept': 'position'}, 'occupation', 'judge'] [{'concept': 'fictional humanoid'}, 'occupation', 'judge'] [{'concept': 'position'}, 'occupation', 'writer'] [{'concept': 'fictional humanoid'}, 'occupation', 'writer'] [{'concept': 'position'}, 'occupation', 'literary critic'] [{'concept': 'fictional humanoid'}, 'occupation', 'literary critic'] [{'concept': 'position'}, 'occupation', 'priest'] [{'concept': 'fictional humanoid'}, 'occupation', 'priest'] [{'concept': 'position'}, 'occupation', 'teacher'] [{'concept': 'fictional humanoid'}, 'occupation', 'teacher']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:occupation resource:diplomat } UNION { ?y property:occupation resource:diplomat } UNION { ?z property:occupation resource:diplomat } UNION { ?y property:occupation resource:diplomat } UNION { ?z property:occupation resource:judge } UNION { ?y property:occupation resource:judge } UNION { ?z property:occupation resource:writer } UNION { ?y property:occupation resource:writer } UNION { ?z property:occupation resource:literary_critic } UNION { ?y property:occupation resource:literary_critic } UNION { ?z property:occupation resource:priest } UNION { ?y property:occupation resource:priest } UNION { ?z property:occupation resource:teacher } UNION { ?y property:occupation resource:teacher } } . ?z rdf:type ontology:position . ?y rdf:type ontology:fictional_humanoid }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q684958
P921
Q191067
USER
Which article has William Longchamp as its principal topic ?
(c(Q191067),P921,Q684958)
action filter_type
action find_reverse
entity Q684958
relation P921
type Q191067
[{'concept': 'Q191067'}, 'P921', 'Q684958']
SELECT DISTINCT ?a WHERE { ?a property:P921 resource:Q684958 . ?a rdf:type ontology:Q191067 }
William Longchamp
action filter_type
action find_reverse
entity William Longchamp
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'William Longchamp']
SELECT DISTINCT ?a WHERE { ?a property:main_subject resource:William_Longchamp . ?a rdf:type ontology:article }
[]
article
Q19101756
SYSTEM
Longchamp, William of (DNB00)
Q19101756
(c(Q191067),P921,Q684958)
action filter_type
action find_reverse
entity Q684958
relation P921
type Q191067
[ANSWER] has William Longchamp as its principal topic
[{'concept': 'Q191067'}, 'P921', 'Q684958']
SELECT DISTINCT ?a WHERE { ?a property:P921 resource:Q684958 . ?a rdf:type ontology:Q191067 }
Longchamp, William of (DNB00)
Longchamp, William of (DNB00) has William Longchamp as its principal topic
Longchamp, William of (DNB00)
action filter_type
action find_reverse
entity William Longchamp
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'William Longchamp']
SELECT DISTINCT ?a WHERE { ?a property:main_subject resource:William_Longchamp . ?a rdf:type ontology:article }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q19101756
P1433
Q5292
USER
Which encyclopedia was that article published in ?
(Q19101756,P1433,c(Q5292))
action filter_type
action find
entity Q19101756
relation P1433
type Q5292
['Q19101756', 'P1433', {'concept': 'Q5292'}]
SELECT DISTINCT ?i WHERE { resource:Q19101756 property:P1433 ?i . ?i rdf:type ontology:Q5292 }
Longchamp, William of (DNB00)
action filter_type
action find
entity Longchamp, William of (DNB00)
relation published in
type encyclopedia
['Longchamp, William of (DNB00)', 'published in', {'concept': 'encyclopedia'}]
SELECT DISTINCT ?i WHERE { resource:Longchamp,_William_of_(DNB00) property:published_in ?i . ?i rdf:type ontology:encyclopedia }
[]
encyclopedia
Q15987216
SYSTEM
Dictionary of National Biography (1885-1900)
Q15987216
(Q19101756,P1433,c(Q5292))
action filter_type
action find
entity Q19101756
relation P1433
type Q5292
That article was published in [ANSWER]
['Q19101756', 'P1433', {'concept': 'Q5292'}]
SELECT DISTINCT ?i WHERE { resource:Q19101756 property:P1433 ?i . ?i rdf:type ontology:Q5292 }
Dictionary of National Biography (1885-1900)
That article was published in Dictionary of National Biography (1885-1900)
Dictionary of National Biography (1885-1900)
action filter_type
action find
entity Longchamp, William of (DNB00)
relation published in
type encyclopedia
['Longchamp, William of (DNB00)', 'published in', {'concept': 'encyclopedia'}]
SELECT DISTINCT ?i WHERE { resource:Longchamp,_William_of_(DNB00) property:published_in ?i . ?i rdf:type ontology:encyclopedia }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q19109875
Q5292
USER
And also tell me about Sever, Henry (DNB00)?
(Q19109875,P1433,c(Q5292))
action filter_type
action find
entity Q19109875
relation P1433
type Q5292
['Q19109875', 'P1433', {'concept': 'Q5292'}]
SELECT DISTINCT ?z WHERE { resource:Q19109875 property:P1433 ?z . ?z rdf:type ontology:Q5292 }
Sever, Henry (DNB00)
action filter_type
action find
entity Sever, Henry (DNB00)
relation published in
type encyclopedia
['Sever, Henry (DNB00)', 'published in', {'concept': 'encyclopedia'}]
SELECT DISTINCT ?z WHERE { resource:Sever,_Henry_(DNB00) property:published_in ?z . ?z rdf:type ontology:encyclopedia }
[]
encyclopedia
Q15987216
SYSTEM
Dictionary of National Biography (1885-1900)
Q15987216
(Q19109875,P1433,c(Q5292))
action filter_type
action find
entity Q19109875
relation P1433
type Q5292
[ANSWER]
['Q19109875', 'P1433', {'concept': 'Q5292'}]
SELECT DISTINCT ?z WHERE { resource:Q19109875 property:P1433 ?z . ?z rdf:type ontology:Q5292 }
Dictionary of National Biography (1885-1900)
Dictionary of National Biography (1885-1900)
action filter_type
action find
entity Sever, Henry (DNB00)
relation published in
type encyclopedia
['Sever, Henry (DNB00)', 'published in', {'concept': 'encyclopedia'}]
SELECT DISTINCT ?z WHERE { resource:Sever,_Henry_(DNB00) property:published_in ?z . ?z rdf:type ontology:encyclopedia }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q15987216 Q1809612 Q84
P291
Q56061
USER
Was that encyclopedia published in Vitanje and London ?
(Q15987216,P291,Q1809612) (Q15987216,P291,Q84)
action is_in
entity Q15987216
action intersection
action find_reverse
entity Q1809612
relation P291
action find_reverse
entity Q84
relation P291
['Q15987216', 'P291', 'Q1809612'] ['Q15987216', 'P291', 'Q84']
ASK WHERE { resource:Q15987216 property:P291 resource:Q1809612 . resource:Q15987216 property:P291 resource:Q84 }
Dictionary of National Biography (1885-1900) Vitanje London
action is_in
entity Dictionary of National Biography (1885-1900)
action intersection
action find_reverse
entity Vitanje
relation place of publication
action find_reverse
entity London
relation place of publication
['Dictionary of National Biography (1885-1900)', 'place of publication', 'Vitanje'] ['Dictionary of National Biography (1885-1900)', 'place of publication', 'London']
ASK WHERE { resource:Dictionary_of_National_Biography_(1885-1900) property:place_of_publication resource:Vitanje . resource:Dictionary_of_National_Biography_(1885-1900) property:place_of_publication resource:London }
[]
administrative territorial entity
SYSTEM
NO and YES respectively
(Q15987216,P291,Q1809612) (Q15987216,P291,Q84)
action is_in
entity Q15987216
action intersection
action find_reverse
entity Q1809612
relation P291
action find_reverse
entity Q84
relation P291
[ANSWER]
['Q15987216', 'P291', 'Q1809612'] ['Q15987216', 'P291', 'Q84']
ASK WHERE { resource:Q15987216 property:P291 resource:Q1809612 . resource:Q15987216 property:P291 resource:Q84 }
NO and YES respectively
action is_in
entity Dictionary of National Biography (1885-1900)
action intersection
action find_reverse
entity Vitanje
relation place of publication
action find_reverse
entity London
relation place of publication
['Dictionary of National Biography (1885-1900)', 'place of publication', 'Vitanje'] ['Dictionary of National Biography (1885-1900)', 'place of publication', 'London']
ASK WHERE { resource:Dictionary_of_National_Biography_(1885-1900) property:place_of_publication resource:Vitanje . resource:Dictionary_of_National_Biography_(1885-1900) property:place_of_publication resource:London }
[]