Simple Question (Direct)
Simple Question
Q1232602
P106
Q12737077
USER
Which occupations have Elek Peregriny as his/her 's career ?
(Q1232602,P106,c(Q12737077))
action filter_type
action find
entity Q1232602
relation P106
type Q12737077
['Q1232602', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q1232602 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
Elek Peregriny
action filter_type
action find
entity Elek Peregriny
relation occupation
type occupation
['Elek Peregriny', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Elek_Peregriny property:occupation ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q36180 Q1622272
SYSTEM
writer, university teacher
Q36180 Q1622272
(Q1232602,P106,c(Q12737077))
action filter_type
action find
entity Q1232602
relation P106
type Q12737077
[ANSWERS] have Elek Peregriny as his/her 's career
['Q1232602', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q1232602 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
writer university teacher
Writer and university teacher have Elek Peregriny as his/her 's career
writer university teacher
action filter_type
action find
entity Elek Peregriny
relation occupation
type occupation
['Elek Peregriny', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Elek_Peregriny property:occupation ?b . ?b rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1232602
P27
Q15617994
USER
Which administrative territory is that person a civilian of ?
(Q36180,P27,c(Q15617994)) (Q1622272,P27,c(Q15617994))
action filter_type
action find
entity Q1232602
relation P27
type Q15617994
['Q36180', 'P27', {'concept': 'Q15617994'}] ['Q1622272', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q1232602 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Elek Peregriny
action filter_type
action find
entity Elek Peregriny
relation country of citizenship
type designation for an administrative territorial entity
['writer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['university teacher', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Elek_Peregriny property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q28
SYSTEM
Hungary
Q28
(Q36180,P27,c(Q15617994)) (Q1622272,P27,c(Q15617994))
action filter_type
action find
entity Q1232602
relation P27
type Q15617994
[ANSWER] is that person a civilian of
['Q36180', 'P27', {'concept': 'Q15617994'}] ['Q1622272', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q1232602 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Hungary
Hungary is that person a civilian of
Hungary
action filter_type
action find
entity Elek Peregriny
relation country of citizenship
type designation for an administrative territorial entity
['writer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['university teacher', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Elek_Peregriny property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q28 Q6319498 Q183
P530
Q1048835
USER
Does that administrative territory have ambassadorial relations with José Gálvez District and Germany ?
(Q28,P530,Q6319498) (Q28,P530,Q183)
action is_in
entity Q28
action intersection
action find_reverse
entity Q6319498
relation P530
action find_reverse
entity Q183
relation P530
['Q28', 'P530', 'Q6319498'] ['Q28', 'P530', 'Q183']
ASK WHERE { resource:Q28 property:P530 resource:Q6319498 . resource:Q28 property:P530 resource:Q183 }
Hungary José Gálvez District Germany
action is_in
entity Hungary
action intersection
action find_reverse
entity José Gálvez District
relation diplomatic relation
action find_reverse
entity Germany
relation diplomatic relation
['Hungary', 'diplomatic relation', 'José Gálvez District'] ['Hungary', 'diplomatic relation', 'Germany']
ASK WHERE { resource:Hungary property:diplomatic_relation resource:José_Gálvez_District . resource:Hungary property:diplomatic_relation resource:Germany }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q28,P530,Q6319498) (Q28,P530,Q183)
action is_in
entity Q28
action intersection
action find_reverse
entity Q6319498
relation P530
action find_reverse
entity Q183
relation P530
[ANSWER]
['Q28', 'P530', 'Q6319498'] ['Q28', 'P530', 'Q183']
ASK WHERE { resource:Q28 property:P530 resource:Q6319498 . resource:Q28 property:P530 resource:Q183 }
NO and YES respectively
action is_in
entity Hungary
action intersection
action find_reverse
entity José Gálvez District
relation diplomatic relation
action find_reverse
entity Germany
relation diplomatic relation
['Hungary', 'diplomatic relation', 'José Gálvez District'] ['Hungary', 'diplomatic relation', 'Germany']
ASK WHERE { resource:Hungary property:diplomatic_relation resource:José_Gálvez_District . resource:Hungary property:diplomatic_relation resource:Germany }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1964936 Q1232602
P20
Q56061
USER
Which administrative territories are the places of death of Elek Peregriny or Napoleon Bonaparte Giddings ?
OR((Q1232602,P20,c(Q56061)), (Q1964936,P20,c(Q56061)))
action filter_type
action union
action find
entity Q1232602
relation P20
action find
entity Q1964936
relation P20
type Q56061
{'OR': [['Q1232602', 'P20', {'concept': 'Q56061'}], ['Q1964936', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q1232602 property:P20 ?z } UNION { resource:Q1964936 property:P20 ?z } } . ?z rdf:type ontology:Q56061 }
Napoleon Bonaparte Giddings Elek Peregriny
action filter_type
action union
action find
entity Elek Peregriny
relation place of death
action find
entity Napoleon Bonaparte Giddings
relation place of death
type administrative territorial entity
{'OR': [['Elek Peregriny', 'place of death', {'concept': 'administrative territorial entity'}], ['Napoleon Bonaparte Giddings', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Elek_Peregriny property:place_of_death ?z } UNION { resource:Napoleon_Bonaparte_Giddings property:place_of_death ?z } } . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q966006 Q1781
SYSTEM
Savannah, Budapest
Q966006 Q1781
OR((Q1232602,P20,c(Q56061)), (Q1964936,P20,c(Q56061)))
action filter_type
action union
action find
entity Q1232602
relation P20
action find
entity Q1964936
relation P20
type Q56061
[ANSWERS] are the places of death of Elek Peregriny or Napoleon Bonaparte Giddings
{'OR': [['Q1232602', 'P20', {'concept': 'Q56061'}], ['Q1964936', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q1232602 property:P20 ?z } UNION { resource:Q1964936 property:P20 ?z } } . ?z rdf:type ontology:Q56061 }
Savannah Budapest
Savannah and Budapest are the places of death of Elek Peregriny or Napoleon Bonaparte Giddings
Savannah Budapest
action filter_type
action union
action find
entity Elek Peregriny
relation place of death
action find
entity Napoleon Bonaparte Giddings
relation place of death
type administrative territorial entity
{'OR': [['Elek Peregriny', 'place of death', {'concept': 'administrative territorial entity'}], ['Napoleon Bonaparte Giddings', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Elek_Peregriny property:place_of_death ?z } UNION { resource:Napoleon_Bonaparte_Giddings property:place_of_death ?z } } . ?z rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q966006 Q1781
P17
Q15617994
USER
Which administrative territories are Savannah and Budapest situated in ?
(Q966006,P17,c(Q15617994)) (Q1781,P17,c(Q15617994))
action union
action filter_type
action find
entity Q966006
relation P17
type Q15617994
action filter_type
action find
entity Q1781
relation P17
type Q15617994
['Q966006', 'P17', {'concept': 'Q15617994'}] ['Q1781', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { ?k rdf:type ontology:Q15617994 . resource:Q966006 property:P17 ?k } UNION { resource:Q1781 property:P17 ?k . ?k rdf:type ontology:Q15617994 } }
Savannah Budapest
action union
action filter_type
action find
entity Savannah
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Budapest
relation country
type designation for an administrative territorial entity
['Savannah', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Budapest', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Savannah property:country ?k } UNION { resource:Budapest property:country ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q30 Q28
SYSTEM
United States of America, Hungary
Q30 Q28
(Q966006,P17,c(Q15617994)) (Q1781,P17,c(Q15617994))
action union
action filter_type
action find
entity Q966006
relation P17
type Q15617994
action filter_type
action find
entity Q1781
relation P17
type Q15617994
Savannah and Budapest are situated in [ANSWERS]
['Q966006', 'P17', {'concept': 'Q15617994'}] ['Q1781', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { ?k rdf:type ontology:Q15617994 . resource:Q966006 property:P17 ?k } UNION { resource:Q1781 property:P17 ?k . ?k rdf:type ontology:Q15617994 } }
United States of America Hungary
Savannah and Budapest are situated in United States of America and Hungary
United States of America Hungary
action union
action filter_type
action find
entity Savannah
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Budapest
relation country
type designation for an administrative territorial entity
['Savannah', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Budapest', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Savannah property:country ?k } UNION { resource:Budapest property:country ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q30 Q28
P530
Q15617994
USER
Which administrative territories have tactful political relations with those ones ?
(c(Q15617994),P530,Q30) (c(Q15617994),P530,Q28)
action filter_type
action find_reverse
entity prev_answer
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q30'] [{'concept': 'Q15617994'}, 'P530', 'Q28']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . ?p property:P530 ?t . VALUES ( ?t ) { ( resource:Q30 ) ( resource:Q28 ) } }
United States of America Hungary
action filter_type
action find_reverse
entity prev_answer
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'United States of America'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Hungary']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p property:diplomatic_relation ?t . VALUES ( ?t ) { ( resource:United_States_of_America ) ( resource:Hungary ) } }
[]
designation for an administrative territorial entity
Q38 Q38 Q155
SYSTEM
Brazil for 3rd, Italy for 1st, 2nd
Q222 Q796 Q889 Q884 Q948 Q347 Q1011 Q230 Q212 Q414 Q403 Q37 Q252 Q902 Q142 Q148 Q159 Q155 Q953 Q668 Q929 Q184 Q38 Q17 Q805 Q801 Q858 Q403 Q38
(c(Q15617994),P530,Q30) (c(Q15617994),P530,Q28)
action filter_type
action find_reverse
entity prev_answer
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', 'Q30'] [{'concept': 'Q15617994'}, 'P530', 'Q28']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . ?p property:P530 ?t . VALUES ( ?t ) { ( resource:Q30 ) ( resource:Q28 ) } }
Albania Iraq Afghanistan South Korea Tunisia Liechtenstein Cape Verde Georgia Ukraine Argentina Serbia Lithuania Indonesia Bangladesh France People's Republic of China Russia Brazil Zambia India Central African Republic Belarus Italy Japan Yemen Israel Syria Serbia Italy
Italy, Italy and Brazil have tactful political relations with those ones
Italy Italy Brazil
action filter_type
action find_reverse
entity prev_answer
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'United States of America'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Hungary']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p property:diplomatic_relation ?t . VALUES ( ?t ) { ( resource:United_States_of_America ) ( resource:Hungary ) } }
[]