Simple Question (Direct)
Simple Question
Q569816
P172
Q2472587
USER
What is the ethnicity of Arayik Gevorgyan ?
(Q569816,P172,c(Q2472587))
action filter_type
action find
entity Q569816
relation P172
type Q2472587
['Q569816', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?s WHERE { resource:Q569816 property:P172 ?s . ?s rdf:type ontology:Q2472587 }
Arayik Gevorgyan
action filter_type
action find
entity Arayik Gevorgyan
relation ethnic group
type people
['Arayik Gevorgyan', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?s WHERE { resource:Arayik_Gevorgyan property:ethnic_group ?s . ?s rdf:type ontology:people }
[]
people
Q79797
SYSTEM
Armenians
Q79797
(Q569816,P172,c(Q2472587))
action filter_type
action find
entity Q569816
relation P172
type Q2472587
The ethnicity of Arayik Gevorgyan is ethnic [ANSWER]
['Q569816', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?s WHERE { resource:Q569816 property:P172 ?s . ?s rdf:type ontology:Q2472587 }
Armenians
The ethnicity of Arayik Gevorgyan is ethnic Armenians
Armenians
action filter_type
action find
entity Arayik Gevorgyan
relation ethnic group
type people
['Arayik Gevorgyan', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?s WHERE { resource:Arayik_Gevorgyan property:ethnic_group ?s . ?s rdf:type ontology:people }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q569816
P21
Q290
USER
What is the sex of that person ?
(Q79797,P21,c(Q290))
action filter_type
action find
entity Q569816
relation P21
type Q290
['Q79797', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q569816 property:P21 ?m . ?m rdf:type ontology:Q290 }
Arayik Gevorgyan
action filter_type
action find
entity Arayik Gevorgyan
relation gender
type sex
['Armenians', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Arayik_Gevorgyan property:gender ?m . ?m rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q79797,P21,c(Q290))
action filter_type
action find
entity Q569816
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q79797', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q569816 property:P21 ?m . ?m rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Arayik Gevorgyan
relation gender
type sex
['Armenians', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Arayik_Gevorgyan property:gender ?m . ?m rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q15943291 Q569816
P21
Q290
USER
And also Donald Muylle
AND((Q569816,P21,c(Q290)), (Q15943291,P21,c(Q290)))
action filter_type
action intersection
action find
entity Q569816
relation P21
action find
entity Q15943291
relation P21
type Q290
{'AND': [['Q569816', 'P21', {'concept': 'Q290'}], ['Q15943291', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q290 . resource:Q569816 property:P21 ?b . resource:Q15943291 property:P21 ?b }
Donald Muylle Arayik Gevorgyan
action filter_type
action intersection
action find
entity Arayik Gevorgyan
relation gender
action find
entity Donald Muylle
relation gender
type sex
{'AND': [['Arayik Gevorgyan', 'gender', {'concept': 'sex'}], ['Donald Muylle', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:sex . resource:Arayik_Gevorgyan property:gender ?b . resource:Donald_Muylle property:gender ?b }
[]
sex
Q6581097
SYSTEM
male
Q6581097
AND((Q569816,P21,c(Q290)), (Q15943291,P21,c(Q290)))
action filter_type
action intersection
action find
entity Q569816
relation P21
action find
entity Q15943291
relation P21
type Q290
[ANSWER]
{'AND': [['Q569816', 'P21', {'concept': 'Q290'}], ['Q15943291', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q290 . resource:Q569816 property:P21 ?b . resource:Q15943291 property:P21 ?b }
male
male
action filter_type
action intersection
action find
entity Arayik Gevorgyan
relation gender
action find
entity Donald Muylle
relation gender
type sex
{'AND': [['Arayik Gevorgyan', 'gender', {'concept': 'sex'}], ['Donald Muylle', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:sex . resource:Arayik_Gevorgyan property:gender ?b . resource:Donald_Muylle property:gender ?b }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15943291
P27
Q15617994
USER
Which administrative territory is Donald Muylle an inhabitant of ?
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q15943291
relation P27
type Q15617994
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q15943291 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
Donald Muylle
action filter_type
action find
entity Donald Muylle
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Donald_Muylle property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q31
SYSTEM
Belgium
Q31
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q15943291
relation P27
type Q15617994
[ANSWER] is Donald Muylle an inhabitant of
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q15943291 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
Belgium
Belgium is Donald Muylle an inhabitant of
Belgium
action filter_type
action find
entity Donald Muylle
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Donald_Muylle property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q18187049 Q31
P530 P27
Q1048835
USER
Which political territories holds diplomatic relationship with Belgium or are John Heslop an inhabitant of ?
OR((Q31,P530,c(Q1048835)), (Q18187049,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q31
relation P530
action find
entity Q18187049
relation P27
type Q1048835
{'OR': [['Q31', 'P530', {'concept': 'Q1048835'}], ['Q18187049', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q31 property:P530 ?m } UNION { resource:Q18187049 property:P27 ?m } } . ?m rdf:type ontology:Q1048835 }
John Heslop Belgium
action filter_type
action union
action find
entity Belgium
relation diplomatic relation
action find
entity John Heslop
relation country of citizenship
type political territorial entity
{'OR': [['Belgium', 'diplomatic relation', {'concept': 'political territorial entity'}], ['John Heslop', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Belgium property:diplomatic_relation ?m } UNION { resource:John_Heslop property:country_of_citizenship ?m } } . ?m rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q664 Q183
SYSTEM
Australia, New Zealand, Germany
Q408 Q664 Q183
OR((Q31,P530,c(Q1048835)), (Q18187049,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q31
relation P530
action find
entity Q18187049
relation P27
type Q1048835
[ANSWERS] hold diplomatic relationship with Belgium or are John Heslop an inhabitant of
{'OR': [['Q31', 'P530', {'concept': 'Q1048835'}], ['Q18187049', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q31 property:P530 ?m } UNION { resource:Q18187049 property:P27 ?m } } . ?m rdf:type ontology:Q1048835 }
Australia New Zealand Germany
Australia, New Zealand and Germany hold diplomatic relationship with Belgium or are John Heslop an inhabitant of
Australia New Zealand Germany
action filter_type
action union
action find
entity Belgium
relation diplomatic relation
action find
entity John Heslop
relation country of citizenship
type political territorial entity
{'OR': [['Belgium', 'diplomatic relation', {'concept': 'political territorial entity'}], ['John Heslop', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Belgium property:diplomatic_relation ?m } UNION { resource:John_Heslop property:country_of_citizenship ?m } } . ?m rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q666324
P530
Q15617994
USER
Are Irnfritz-Messern known to have diplomatic connections with those political territories ?
(Q666324,P530,Q408) (Q666324,P530,Q664) (Q666324,P530,Q183)
action is_in
entity prev_answer
action find
entity Q666324
relation P530
['Q666324', 'P530', 'Q408'] ['Q666324', 'P530', 'Q664'] ['Q666324', 'P530', 'Q183']
ASK WHERE { resource:Q666324 property:P530 ?f . VALUES ( ?f ) { ( resource:Q408 ) ( resource:Q664 ) ( resource:Q183 ) } }
Irnfritz-Messern
action is_in
entity prev_answer
action find
entity Irnfritz-Messern
relation diplomatic relation
['Irnfritz-Messern', 'diplomatic relation', 'Australia'] ['Irnfritz-Messern', 'diplomatic relation', 'New Zealand'] ['Irnfritz-Messern', 'diplomatic relation', 'Germany']
ASK WHERE { resource:Irnfritz-Messern property:diplomatic_relation ?f . VALUES ( ?f ) { ( resource:Australia ) ( resource:New_Zealand ) ( resource:Germany ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q666324,P530,Q408) (Q666324,P530,Q664) (Q666324,P530,Q183)
action is_in
entity prev_answer
action find
entity Q666324
relation P530
[ANSWER]
['Q666324', 'P530', 'Q408'] ['Q666324', 'P530', 'Q664'] ['Q666324', 'P530', 'Q183']
ASK WHERE { resource:Q666324 property:P530 ?f . VALUES ( ?f ) { ( resource:Q408 ) ( resource:Q664 ) ( resource:Q183 ) } }
No
action is_in
entity prev_answer
action find
entity Irnfritz-Messern
relation diplomatic relation
['Irnfritz-Messern', 'diplomatic relation', 'Australia'] ['Irnfritz-Messern', 'diplomatic relation', 'New Zealand'] ['Irnfritz-Messern', 'diplomatic relation', 'Germany']
ASK WHERE { resource:Irnfritz-Messern property:diplomatic_relation ?f . VALUES ( ?f ) { ( resource:Australia ) ( resource:New_Zealand ) ( resource:Germany ) } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which administrative territories have ambassadorial relations with around 4 political territories ?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 4
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?w ) WHERE { ?e property:P530 ?o . ?e rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q1048835 } GROUP BY ?e } . FILTER ( ?w = 4 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 4
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?w ) WHERE { ?e property:diplomatic_relation ?o . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?e } . FILTER ( ?w = 4 ) }
[]
political territorial entity designation for an administrative territorial entity
Q155 Q30 Q159
SYSTEM
Brazil, United States of America, Russia
Q801 Q142 Q145 Q711 Q252 Q403 Q258 Q159 Q43 Q155 Q889 Q884 Q33 Q30 Q36 Q34 Q39 Q739 Q423 Q851 Q20 Q27 Q843 Q1029 Q229 Q1030 Q115 Q114 Q212 Q218 Q833 Q79 Q77 Q878 Q953
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 4
[ANSWERS] have ambassadorial relations with around 4 political territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?w ) WHERE { ?e property:P530 ?o . ?e rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q1048835 } GROUP BY ?e } . FILTER ( ?w = 4 ) }
Israel France United Kingdom Mongolia Indonesia Serbia South Africa Russia Turkey Brazil Afghanistan South Korea Finland United States of America Poland Sweden Switzerland Colombia North Korea Saudi Arabia Norway Ireland Pakistan Mozambique Cyprus Namibia Ethiopia Kenya Ukraine Romania Malaysia Egypt Uruguay United Arab Emirates Zambia
Brazil, United States of America and Russia have ambassadorial relations with around 4 political territories
Brazil United States of America Russia
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 4
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?w ) WHERE { ?e property:diplomatic_relation ?o . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?e } . FILTER ( ?w = 4 ) }
[]