Simple Question (Direct)
Simple Question
Q717528
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Arvo Viitanen ?
(Q717528,P27,c(Q15617994))
action filter_type
action find
entity Q717528
relation P27
type Q15617994
['Q717528', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q717528 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
Arvo Viitanen
action filter_type
action find
entity Arvo Viitanen
relation country of citizenship
type designation for an administrative territorial entity
['Arvo Viitanen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Arvo_Viitanen property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q33
SYSTEM
Finland
Q33
(Q717528,P27,c(Q15617994))
action filter_type
action find
entity Q717528
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Arvo Viitanen
['Q717528', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q717528 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
Finland
Finland is the country of citizenship of Arvo Viitanen
Finland
action filter_type
action find
entity Arvo Viitanen
relation country of citizenship
type designation for an administrative territorial entity
['Arvo Viitanen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Arvo_Viitanen property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q717528
P20
Q56061
USER
Where did the expiration of that person occur ?
(Q33,P20,c(Q56061))
action filter_type
action find
entity Q717528
relation P20
type Q56061
['Q33', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q717528 property:P20 ?k . ?k rdf:type ontology:Q56061 }
Arvo Viitanen
action filter_type
action find
entity Arvo Viitanen
relation place of death
type administrative territorial entity
['Finland', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Arvo_Viitanen property:place_of_death ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q551368
SYSTEM
Anjalankoski
Q551368
(Q33,P20,c(Q56061))
action filter_type
action find
entity Q717528
relation P20
type Q56061
The expiration of that person occurred in [ANSWER]
['Q33', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q717528 property:P20 ?k . ?k rdf:type ontology:Q56061 }
Anjalankoski
The expiration of that person occurred in Anjalankoski
Anjalankoski
action filter_type
action find
entity Arvo Viitanen
relation place of death
type administrative territorial entity
['Finland', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Arvo_Viitanen property:place_of_death ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1098320 Q717528
P19 P20
Q56061
USER
Which administrative territories did Arvo Viitanen expire or are the places of birth of Sándor Istvánfi ?
OR((Q717528,P20,c(Q56061)), (Q1098320,P19,c(Q56061)))
action filter_type
action union
action find
entity Q717528
relation P20
action find
entity Q1098320
relation P19
type Q56061
{'OR': [['Q717528', 'P20', {'concept': 'Q56061'}], ['Q1098320', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q56061 . { { resource:Q717528 property:P20 ?s } UNION { resource:Q1098320 property:P19 ?s } } }
Sándor Istvánfi Arvo Viitanen
action filter_type
action union
action find
entity Arvo Viitanen
relation place of death
action find
entity Sándor Istvánfi
relation place of birth
type administrative territorial entity
{'OR': [['Arvo Viitanen', 'place of death', {'concept': 'administrative territorial entity'}], ['Sándor Istvánfi', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:administrative_territorial_entity . { { resource:Arvo_Viitanen property:place_of_death ?s } UNION { resource:Sándor_Istvánfi property:place_of_birth ?s } } }
[]
administrative territorial entity
Q1781 Q551368
SYSTEM
Budapest, Anjalankoski
Q1781 Q551368
OR((Q717528,P20,c(Q56061)), (Q1098320,P19,c(Q56061)))
action filter_type
action union
action find
entity Q717528
relation P20
action find
entity Q1098320
relation P19
type Q56061
Arvo Viitanen expired in [ANSWERS] or are the places of birth of Sándor Istvánfi
{'OR': [['Q717528', 'P20', {'concept': 'Q56061'}], ['Q1098320', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q56061 . { { resource:Q717528 property:P20 ?s } UNION { resource:Q1098320 property:P19 ?s } } }
Budapest Anjalankoski
Arvo Viitanen expired in Budapest and Anjalankoski or are the places of birth of Sándor Istvánfi
Budapest Anjalankoski
action filter_type
action union
action find
entity Arvo Viitanen
relation place of death
action find
entity Sándor Istvánfi
relation place of birth
type administrative territorial entity
{'OR': [['Arvo Viitanen', 'place of death', {'concept': 'administrative territorial entity'}], ['Sándor Istvánfi', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:administrative_territorial_entity . { { resource:Arvo_Viitanen property:place_of_death ?s } UNION { resource:Sándor_Istvánfi property:place_of_birth ?s } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q79529 Q15619164 Q56061
USER
Which administrative territories come from max number of chemical substances or abstract beings ?
(c(Q56061),P138,c(Q79529)|c(Q15619164))
action argmax
action union
action find_tuple_counts
relation P138
type Q56061
type Q79529
action find_tuple_counts
relation P138
type Q56061
type Q15619164
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q79529'}, {'concept': 'Q15619164'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?t ) AS ?y ) WHERE { VALUES ( ?k ) { ( ontology:Q79529 ) ( ontology:Q15619164 ) } . ?t rdf:type ?k } GROUP BY ?n } . FILTER ( ?y = ?i ) . { SELECT DISTINCT ( MAX ( ?q ) AS ?i ) { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?q ) WHERE { { ?b property:P138 ?m . ?m rdf:type ontology:Q79529 . ?b rdf:type ontology:Q56061 } UNION { ?b property:P138 ?m . ?m rdf:type ontology:Q15619164 . ?b rdf:type ontology:Q56061 } } GROUP BY ?b } } }
action argmax
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type chemical substance
action find_tuple_counts
relation named after
type administrative territorial entity
type abstract being
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'chemical substance'}, {'concept': 'abstract being'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?t ) AS ?y ) WHERE { VALUES ( ?k ) { ( ontology:chemical_substance ) ( ontology:abstract_being ) } . ?t rdf:type ?k } GROUP BY ?n } . FILTER ( ?y = ?i ) . { SELECT DISTINCT ( MAX ( ?q ) AS ?i ) { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?q ) WHERE { { ?b property:named_after ?m . ?m rdf:type ontology:chemical_substance . ?b rdf:type ontology:administrative_territorial_entity } UNION { ?b property:named_after ?m . ?m rdf:type ontology:abstract_being . ?b rdf:type ontology:administrative_territorial_entity } } GROUP BY ?b } } }
[]
chemical substance abstract being administrative territorial entity
Q3239732 Q13652348 Q103661
SYSTEM
Sulphur, Nebo, Apatity
Q3239732 Q13652348 Q103661
(c(Q56061),P138,c(Q79529)|c(Q15619164))
action argmax
action union
action find_tuple_counts
relation P138
type Q56061
type Q79529
action find_tuple_counts
relation P138
type Q56061
type Q15619164
[ANSWERS] come from max number of chemical substances or abstract beings
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q79529'}, {'concept': 'Q15619164'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?t ) AS ?y ) WHERE { VALUES ( ?k ) { ( ontology:Q79529 ) ( ontology:Q15619164 ) } . ?t rdf:type ?k } GROUP BY ?n } . FILTER ( ?y = ?i ) . { SELECT DISTINCT ( MAX ( ?q ) AS ?i ) { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?q ) WHERE { { ?b property:P138 ?m . ?m rdf:type ontology:Q79529 . ?b rdf:type ontology:Q56061 } UNION { ?b property:P138 ?m . ?m rdf:type ontology:Q15619164 . ?b rdf:type ontology:Q56061 } } GROUP BY ?b } } }
Sulphur Nebo Apatity
Sulphur, Nebo and Apatity come from max number of chemical substances or abstract beings
Sulphur Nebo Apatity
action argmax
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type chemical substance
action find_tuple_counts
relation named after
type administrative territorial entity
type abstract being
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'chemical substance'}, {'concept': 'abstract being'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?t ) AS ?y ) WHERE { VALUES ( ?k ) { ( ontology:chemical_substance ) ( ontology:abstract_being ) } . ?t rdf:type ?k } GROUP BY ?n } . FILTER ( ?y = ?i ) . { SELECT DISTINCT ( MAX ( ?q ) AS ?i ) { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?q ) WHERE { { ?b property:named_after ?m . ?m rdf:type ontology:chemical_substance . ?b rdf:type ontology:administrative_territorial_entity } UNION { ?b property:named_after ?m . ?m rdf:type ontology:abstract_being . ?b rdf:type ontology:administrative_territorial_entity } } GROUP BY ?b } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q13652348
P17
Q1048835
USER
Which political territory is Nebo situated in ?
(Q13652348,P17,c(Q1048835))
action filter_type
action find
entity Q13652348
relation P17
type Q1048835
['Q13652348', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { resource:Q13652348 property:P17 ?v . ?v rdf:type ontology:Q1048835 }
Nebo
action filter_type
action find
entity Nebo
relation country
type political territorial entity
['Nebo', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Nebo property:country ?v . ?v rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408
SYSTEM
Australia
Q408
(Q13652348,P17,c(Q1048835))
action filter_type
action find
entity Q13652348
relation P17
type Q1048835
Nebo is situated in [ANSWER]
['Q13652348', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { resource:Q13652348 property:P17 ?v . ?v rdf:type ontology:Q1048835 }
Australia
Nebo is situated in Australia
Australia
action filter_type
action find
entity Nebo
relation country
type political territorial entity
['Nebo', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Nebo property:country ?v . ?v rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q408 Q555786 Q633154
P530
Q15617994
USER
Is Australia known to have diplomatic connections with Westfeld and Lübbow ?
(Q408,P530,Q555786) (Q408,P530,Q633154)
action is_in
entity Q408
action intersection
action find_reverse
entity Q555786
relation P530
action find_reverse
entity Q633154
relation P530
['Q408', 'P530', 'Q555786'] ['Q408', 'P530', 'Q633154']
ASK WHERE { resource:Q408 property:P530 resource:Q555786 . resource:Q408 property:P530 resource:Q633154 }
Australia Westfeld Lübbow
action is_in
entity Australia
action intersection
action find_reverse
entity Westfeld
relation diplomatic relation
action find_reverse
entity Lübbow
relation diplomatic relation
['Australia', 'diplomatic relation', 'Westfeld'] ['Australia', 'diplomatic relation', 'Lübbow']
ASK WHERE { resource:Australia property:diplomatic_relation resource:Westfeld . resource:Australia property:diplomatic_relation resource:Lübbow }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q408,P530,Q555786) (Q408,P530,Q633154)
action is_in
entity Q408
action intersection
action find_reverse
entity Q555786
relation P530
action find_reverse
entity Q633154
relation P530
[ANSWER]
['Q408', 'P530', 'Q555786'] ['Q408', 'P530', 'Q633154']
ASK WHERE { resource:Q408 property:P530 resource:Q555786 . resource:Q408 property:P530 resource:Q633154 }
No
action is_in
entity Australia
action intersection
action find_reverse
entity Westfeld
relation diplomatic relation
action find_reverse
entity Lübbow
relation diplomatic relation
['Australia', 'diplomatic relation', 'Westfeld'] ['Australia', 'diplomatic relation', 'Lübbow']
ASK WHERE { resource:Australia property:diplomatic_relation resource:Westfeld . resource:Australia property:diplomatic_relation resource:Lübbow }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q33 Q8029866 Q656801
P463
Q43229
USER
Is Finland a part of Wolf Minerals and International Finance Corporation ?
(Q33,P463,Q8029866) (Q33,P463,Q656801)
action is_in
entity Q33
action intersection
action find_reverse
entity Q8029866
relation P463
action find_reverse
entity Q656801
relation P463
['Q33', 'P463', 'Q8029866'] ['Q33', 'P463', 'Q656801']
ASK WHERE { resource:Q33 property:P463 resource:Q8029866 . resource:Q33 property:P463 resource:Q656801 }
Finland Wolf Minerals International Finance Corporation
action is_in
entity Finland
action intersection
action find_reverse
entity Wolf Minerals
relation member of
action find_reverse
entity International Finance Corporation
relation member of
['Finland', 'member of', 'Wolf Minerals'] ['Finland', 'member of', 'International Finance Corporation']
ASK WHERE { resource:Finland property:member_of resource:Wolf_Minerals . resource:Finland property:member_of resource:International_Finance_Corporation }
[]
organization
SYSTEM
NO and YES respectively
(Q33,P463,Q8029866) (Q33,P463,Q656801)
action is_in
entity Q33
action intersection
action find_reverse
entity Q8029866
relation P463
action find_reverse
entity Q656801
relation P463
[ANSWER]
['Q33', 'P463', 'Q8029866'] ['Q33', 'P463', 'Q656801']
ASK WHERE { resource:Q33 property:P463 resource:Q8029866 . resource:Q33 property:P463 resource:Q656801 }
NO and YES respectively
action is_in
entity Finland
action intersection
action find_reverse
entity Wolf Minerals
relation member of
action find_reverse
entity International Finance Corporation
relation member of
['Finland', 'member of', 'Wolf Minerals'] ['Finland', 'member of', 'International Finance Corporation']
ASK WHERE { resource:Finland property:member_of resource:Wolf_Minerals . resource:Finland property:member_of resource:International_Finance_Corporation }
[]