Simple Question (Direct)
Simple Question
Q1327134
P20
Q56061
USER
Where did Eszter Tóth die ?
(Q1327134,P20,c(Q56061))
action filter_type
action find
entity Q1327134
relation P20
type Q56061
['Q1327134', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q1327134 property:P20 ?t . ?t rdf:type ontology:Q56061 }
Eszter Tóth
action filter_type
action find
entity Eszter Tóth
relation place of death
type administrative territorial entity
['Eszter Tóth', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Eszter_Tóth property:place_of_death ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1781
SYSTEM
Budapest
Q1781
(Q1327134,P20,c(Q56061))
action filter_type
action find
entity Q1327134
relation P20
type Q56061
Eszter Tóth died in [ANSWER]
['Q1327134', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q1327134 property:P20 ?t . ?t rdf:type ontology:Q56061 }
Budapest
Eszter Tóth died in Budapest
Budapest
action filter_type
action find
entity Eszter Tóth
relation place of death
type administrative territorial entity
['Eszter Tóth', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Eszter_Tóth property:place_of_death ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1327134
P40
Q502895
USER
Whose child is Eszter Tóth ?
(c(Q502895),P40,Q1327134)
action filter_type
action find_reverse
entity Q1327134
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q1327134']
SELECT DISTINCT ?o WHERE { ?o property:P40 resource:Q1327134 . ?o rdf:type ontology:Q502895 }
Eszter Tóth
action filter_type
action find_reverse
entity Eszter Tóth
relation child
type common name
[{'concept': 'common name'}, 'child', 'Eszter Tóth']
SELECT DISTINCT ?o WHERE { ?o property:child resource:Eszter_Tóth . ?o rdf:type ontology:common_name }
[]
common name
Q582421
SYSTEM
Árpád Tóth
Q582421
(c(Q502895),P40,Q1327134)
action filter_type
action find_reverse
entity Q1327134
relation P40
type Q502895
[ANSWER] is Eszter Tóth
[{'concept': 'Q502895'}, 'P40', 'Q1327134']
SELECT DISTINCT ?o WHERE { ?o property:P40 resource:Q1327134 . ?o rdf:type ontology:Q502895 }
Árpád Tóth
Árpád Tóth is Eszter Tóth
Árpád Tóth
action filter_type
action find_reverse
entity Eszter Tóth
relation child
type common name
[{'concept': 'common name'}, 'child', 'Eszter Tóth']
SELECT DISTINCT ?o WHERE { ?o property:child resource:Eszter_Tóth . ?o rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q582421
P161
Q838948
USER
Which work of art stars that person as actor ?
(c(Q838948),P161,Q582421)
action filter_type
action find_reverse
entity Q582421
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q582421']
SELECT DISTINCT ?o WHERE { ?o property:P161 resource:Q582421 . ?o rdf:type ontology:Q838948 }
Árpád Tóth
action filter_type
action find_reverse
entity Árpád Tóth
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Árpád Tóth']
SELECT DISTINCT ?o WHERE { ?o property:cast_member resource:Árpád_Tóth . ?o rdf:type ontology:work_of_art }
[]
work of art
Q1475753
SYSTEM
Adj király katonát!
Q1475753
(c(Q838948),P161,Q582421)
action filter_type
action find_reverse
entity Q582421
relation P161
type Q838948
[ANSWER] stars that person as actor
[{'concept': 'Q838948'}, 'P161', 'Q582421']
SELECT DISTINCT ?o WHERE { ?o property:P161 resource:Q582421 . ?o rdf:type ontology:Q838948 }
Adj király katonát!
Adj király katonát! stars that person as actor
Adj király katonát!
action filter_type
action find_reverse
entity Árpád Tóth
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Árpád Tóth']
SELECT DISTINCT ?o WHERE { ?o property:cast_member resource:Árpád_Tóth . ?o rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q2843359 Q582421
P161
Q838948
USER
Or Amin Tarokh?
OR((c(Q838948),P161,Q582421), (c(Q838948),P161,Q2843359))
action filter_type
action union
action find_reverse
entity Q582421
relation P161
action find_reverse
entity Q2843359
relation P161
type Q838948
{'OR': [[{'concept': 'Q838948'}, 'P161', 'Q582421'], [{'concept': 'Q838948'}, 'P161', 'Q2843359']]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?g ) { ( resource:Q2843359 ) ( resource:Q582421 ) } . ?o property:P161 ?g } . ?o rdf:type ontology:Q838948 }
Amin Tarokh Árpád Tóth
action filter_type
action union
action find_reverse
entity Árpád Tóth
relation cast member
action find_reverse
entity Amin Tarokh
relation cast member
type work of art
{'OR': [[{'concept': 'work of art'}, 'cast member', 'Árpád Tóth'], [{'concept': 'work of art'}, 'cast member', 'Amin Tarokh']]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?g ) { ( resource:Amin_Tarokh ) ( resource:Árpád_Tóth ) } . ?o property:cast_member ?g } . ?o rdf:type ontology:work_of_art }
[]
work of art
Q5957665 Q1475753 Q3290449 Q3473249 Q5958170 Q3021408
SYSTEM
Muhammad: The Messenger of God, Adj király katonát!, Death of Yazdgerd, Sara, The Lead, Del Shodegan
Q5957665 Q1475753 Q3290449 Q3473249 Q5958170 Q3021408
OR((c(Q838948),P161,Q582421), (c(Q838948),P161,Q2843359))
action filter_type
action union
action find_reverse
entity Q582421
relation P161
action find_reverse
entity Q2843359
relation P161
type Q838948
[ANSWERS]
{'OR': [[{'concept': 'Q838948'}, 'P161', 'Q582421'], [{'concept': 'Q838948'}, 'P161', 'Q2843359']]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?g ) { ( resource:Q2843359 ) ( resource:Q582421 ) } . ?o property:P161 ?g } . ?o rdf:type ontology:Q838948 }
Muhammad: The Messenger of God Adj király katonát! Death of Yazdgerd Sara The Lead Del Shodegan
Muhammad: The Messenger of God Adj király katonát! Death of Yazdgerd Sara The Lead Del Shodegan
action filter_type
action union
action find_reverse
entity Árpád Tóth
relation cast member
action find_reverse
entity Amin Tarokh
relation cast member
type work of art
{'OR': [[{'concept': 'work of art'}, 'cast member', 'Árpád Tóth'], [{'concept': 'work of art'}, 'cast member', 'Amin Tarokh']]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?g ) { ( resource:Amin_Tarokh ) ( resource:Árpád_Tóth ) } . ?o property:cast_member ?g } . ?o rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q10270684 Q5957665
P27 P495
Q15617994
USER
Which administrative territories did Muhammad: The Messenger of God originate or are Eduardo Frutuoso Gaio a civilian of ?
OR((Q5957665,P495,c(Q15617994)), (Q10270684,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5957665
relation P495
action find
entity Q10270684
relation P27
type Q15617994
{'OR': [['Q5957665', 'P495', {'concept': 'Q15617994'}], ['Q10270684', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q5957665 property:P495 ?k } UNION { resource:Q10270684 property:P27 ?k } } . ?k rdf:type ontology:Q15617994 }
Eduardo Frutuoso Gaio Muhammad: The Messenger of God
action filter_type
action union
action find
entity Muhammad: The Messenger of God
relation country of origin
action find
entity Eduardo Frutuoso Gaio
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Muhammad: The Messenger of God', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Eduardo Frutuoso Gaio', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Muhammad:_The_Messenger_of_God property:country_of_origin ?k } UNION { resource:Eduardo_Frutuoso_Gaio property:country_of_citizenship ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q45 Q794
SYSTEM
Portugal, Iran
Q45 Q794
OR((Q5957665,P495,c(Q15617994)), (Q10270684,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5957665
relation P495
action find
entity Q10270684
relation P27
type Q15617994
[ANSWERS] or are Eduardo Frutuoso Gaio a civilian of Muhammad : The Messenger of God originated
{'OR': [['Q5957665', 'P495', {'concept': 'Q15617994'}], ['Q10270684', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q5957665 property:P495 ?k } UNION { resource:Q10270684 property:P27 ?k } } . ?k rdf:type ontology:Q15617994 }
Portugal Iran
Portugal and Iran or are Eduardo Frutuoso Gaio a civilian of Muhammad : The Messenger of God originated
Portugal Iran
action filter_type
action union
action find
entity Muhammad: The Messenger of God
relation country of origin
action find
entity Eduardo Frutuoso Gaio
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Muhammad: The Messenger of God', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Eduardo Frutuoso Gaio', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Muhammad:_The_Messenger_of_God property:country_of_origin ?k } UNION { resource:Eduardo_Frutuoso_Gaio property:country_of_citizenship ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7737978 Q3473249
P57
Q502895
USER
Which people directed Sara or The Great War ?
OR((Q3473249,P57,c(Q502895)), (Q7737978,P57,c(Q502895)))
action filter_type
action union
action find
entity Q3473249
relation P57
action find
entity Q7737978
relation P57
type Q502895
{'OR': [['Q3473249', 'P57', {'concept': 'Q502895'}], ['Q7737978', 'P57', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . { { resource:Q3473249 property:P57 ?i } UNION { resource:Q7737978 property:P57 ?i } } }
The Great War Sara
action filter_type
action union
action find
entity Sara
relation director
action find
entity The Great War
relation director
type common name
{'OR': [['Sara', 'director', {'concept': 'common name'}], ['The Great War', 'director', {'concept': 'common name'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . { { resource:Sara property:director ?i } UNION { resource:The_Great_War property:director ?i } } }
[]
common name
Q1166019 Q2924955
SYSTEM
Dariush Mehrjui, Brian McKenna
Q1166019 Q2924955
OR((Q3473249,P57,c(Q502895)), (Q7737978,P57,c(Q502895)))
action filter_type
action union
action find
entity Q3473249
relation P57
action find
entity Q7737978
relation P57
type Q502895
[ANSWERS] directed Sara or The Great War
{'OR': [['Q3473249', 'P57', {'concept': 'Q502895'}], ['Q7737978', 'P57', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . { { resource:Q3473249 property:P57 ?i } UNION { resource:Q7737978 property:P57 ?i } } }
Dariush Mehrjui Brian McKenna
Dariush Mehrjui and Brian McKenna directed Sara or The Great War
Dariush Mehrjui Brian McKenna
action filter_type
action union
action find
entity Sara
relation director
action find
entity The Great War
relation director
type common name
{'OR': [['Sara', 'director', {'concept': 'common name'}], ['The Great War', 'director', {'concept': 'common name'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . { { resource:Sara property:director ?i } UNION { resource:The_Great_War property:director ?i } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6105846 Q5957665
P495
Q15617994
USER
Which administrative territories are the countries of origin of Muhammad: The Messenger of God or Report on Death ?
OR((Q5957665,P495,c(Q15617994)), (Q6105846,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q5957665
relation P495
action find
entity Q6105846
relation P495
type Q15617994
{'OR': [['Q5957665', 'P495', {'concept': 'Q15617994'}], ['Q6105846', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q6105846 property:P495 ?u } UNION { resource:Q5957665 property:P495 ?u } } . ?u rdf:type ontology:Q15617994 }
Report on Death Muhammad: The Messenger of God
action filter_type
action union
action find
entity Muhammad: The Messenger of God
relation country of origin
action find
entity Report on Death
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Muhammad: The Messenger of God', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Report on Death', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Report_on_Death property:country_of_origin ?u } UNION { resource:Muhammad:_The_Messenger_of_God property:country_of_origin ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q419 Q794
SYSTEM
Peru, Iran
Q419 Q794
OR((Q5957665,P495,c(Q15617994)), (Q6105846,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q5957665
relation P495
action find
entity Q6105846
relation P495
type Q15617994
[ANSWERS] are the countries of origin of Muhammad: The Messenger of God or Report on Death
{'OR': [['Q5957665', 'P495', {'concept': 'Q15617994'}], ['Q6105846', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q6105846 property:P495 ?u } UNION { resource:Q5957665 property:P495 ?u } } . ?u rdf:type ontology:Q15617994 }
Peru Iran
Peru and Iran are the countries of origin of Muhammad: The Messenger of God or Report on Death
Peru Iran
action filter_type
action union
action find
entity Muhammad: The Messenger of God
relation country of origin
action find
entity Report on Death
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Muhammad: The Messenger of God', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Report on Death', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Report_on_Death property:country_of_origin ?u } UNION { resource:Muhammad:_The_Messenger_of_God property:country_of_origin ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q155
P530
Q15617994
USER
Do Brazil have diplomatic associations with those ones ?
(Q155,P530,Q419) (Q155,P530,Q794)
action is_in
entity prev_answer
action find
entity Q155
relation P530
['Q155', 'P530', 'Q419'] ['Q155', 'P530', 'Q794']
ASK WHERE { resource:Q155 property:P530 ?g . VALUES ( ?g ) { ( resource:Q419 ) ( resource:Q794 ) } }
Brazil
action is_in
entity prev_answer
action find
entity Brazil
relation diplomatic relation
['Brazil', 'diplomatic relation', 'Peru'] ['Brazil', 'diplomatic relation', 'Iran']
ASK WHERE { resource:Brazil property:diplomatic_relation ?g . VALUES ( ?g ) { ( resource:Peru ) ( resource:Iran ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q155,P530,Q419) (Q155,P530,Q794)
action is_in
entity prev_answer
action find
entity Q155
relation P530
[ANSWER]
['Q155', 'P530', 'Q419'] ['Q155', 'P530', 'Q794']
ASK WHERE { resource:Q155 property:P530 ?g . VALUES ( ?g ) { ( resource:Q419 ) ( resource:Q794 ) } }
Yes
action is_in
entity prev_answer
action find
entity Brazil
relation diplomatic relation
['Brazil', 'diplomatic relation', 'Peru'] ['Brazil', 'diplomatic relation', 'Iran']
ASK WHERE { resource:Brazil property:diplomatic_relation ?g . VALUES ( ?g ) { ( resource:Peru ) ( resource:Iran ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7521556 Q10270684
P27
Q15617994
USER
Which administrative territories are Eduardo Frutuoso Gaio or Sin Na-hee an inhabitant of ?
OR((Q10270684,P27,c(Q15617994)), (Q7521556,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q10270684
relation P27
action find
entity Q7521556
relation P27
type Q15617994
{'OR': [['Q10270684', 'P27', {'concept': 'Q15617994'}], ['Q7521556', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q10270684 property:P27 ?i } UNION { resource:Q7521556 property:P27 ?i } } . ?i rdf:type ontology:Q15617994 }
Sin Na-hee Eduardo Frutuoso Gaio
action filter_type
action union
action find
entity Eduardo Frutuoso Gaio
relation country of citizenship
action find
entity Sin Na-hee
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Eduardo Frutuoso Gaio', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Sin Na-hee', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Eduardo_Frutuoso_Gaio property:country_of_citizenship ?i } UNION { resource:Sin_Na-hee property:country_of_citizenship ?i } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q45 Q884
SYSTEM
Portugal, South Korea
Q45 Q884
OR((Q10270684,P27,c(Q15617994)), (Q7521556,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q10270684
relation P27
action find
entity Q7521556
relation P27
type Q15617994
[ANSWERS] are Eduardo Frutuoso Gaio or Sin Na-hee an inhabitant of
{'OR': [['Q10270684', 'P27', {'concept': 'Q15617994'}], ['Q7521556', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q10270684 property:P27 ?i } UNION { resource:Q7521556 property:P27 ?i } } . ?i rdf:type ontology:Q15617994 }
Portugal South Korea
Portugal and South Korea are Eduardo Frutuoso Gaio or Sin Na-hee an inhabitant of
Portugal South Korea
action filter_type
action union
action find
entity Eduardo Frutuoso Gaio
relation country of citizenship
action find
entity Sin Na-hee
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Eduardo Frutuoso Gaio', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Sin Na-hee', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Eduardo_Frutuoso_Gaio property:country_of_citizenship ?i } UNION { resource:Sin_Na-hee property:country_of_citizenship ?i } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
How many political territories holds diplomatic relationship with atleast 99 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action count
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 99
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?d ) WHERE { ?i property:P530 ?y . ?i rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 } GROUP BY ?i } . FILTER ( ?d >= 99 ) }
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 99
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?d ) WHERE { ?i property:diplomatic_relation ?y . ?i rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . FILTER ( ?d >= 99 ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
2
Q183 Q408
(c(Q15617994),P530,c(Q1048835))
action count
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 99
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?d ) WHERE { ?i property:P530 ?y . ?i rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 } GROUP BY ?i } . FILTER ( ?d >= 99 ) }
Germany Australia
2
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 99
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?d ) WHERE { ?i property:diplomatic_relation ?y . ?i rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . FILTER ( ?d >= 99 ) }
[]