Simple Question (Direct)
Simple Question
Q7608797
P21
Q290
USER
Which sex does Stephen Bråthen possess ?
(Q7608797,P21,c(Q290))
action filter_type
action find
entity Q7608797
relation P21
type Q290
['Q7608797', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q290 . resource:Q7608797 property:P21 ?u }
Stephen Bråthen
action filter_type
action find
entity Stephen Bråthen
relation gender
type sex
['Stephen Bråthen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:sex . resource:Stephen_Bråthen property:gender ?u }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7608797,P21,c(Q290))
action filter_type
action find
entity Q7608797
relation P21
type Q290
Stephen Bråthen possesses [ANSWER]
['Q7608797', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q290 . resource:Q7608797 property:P21 ?u }
male
Stephen Bråthen possesses male
male
action filter_type
action find
entity Stephen Bråthen
relation gender
type sex
['Stephen Bråthen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:sex . resource:Stephen_Bråthen property:gender ?u }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7608797
P937
Q56061
USER
What is the location where that person worked ?
(Q6581097,P937,c(Q56061))
action filter_type
action find
entity Q7608797
relation P937
type Q56061
['Q6581097', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . resource:Q7608797 property:P937 ?p }
Stephen Bråthen
action filter_type
action find
entity Stephen Bråthen
relation work location
type administrative territorial entity
['male', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . resource:Stephen_Bråthen property:work_location ?p }
[]
administrative territorial entity
Q585
SYSTEM
Oslo
Q585
(Q6581097,P937,c(Q56061))
action filter_type
action find
entity Q7608797
relation P937
type Q56061
The location that person worked is for [ANSWER]
['Q6581097', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . resource:Q7608797 property:P937 ?p }
Oslo
The location that person worked is for Oslo
Oslo
action filter_type
action find
entity Stephen Bråthen
relation work location
type administrative territorial entity
['male', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . resource:Stephen_Bråthen property:work_location ?p }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7608797
P39
Q12737077
USER
Which occupation was a position held by that person ?
(Q585,P39,c(Q12737077))
action filter_type
action find
entity Q7608797
relation P39
type Q12737077
['Q585', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q7608797 property:P39 ?q . ?q rdf:type ontology:Q12737077 }
Stephen Bråthen
action filter_type
action find
entity Stephen Bråthen
relation position held
type occupation
['Oslo', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Stephen_Bråthen property:position_held ?q . ?q rdf:type ontology:occupation }
[]
occupation
Q9045502
SYSTEM
member of the Parliament of Norway
Q9045502
(Q585,P39,c(Q12737077))
action filter_type
action find
entity Q7608797
relation P39
type Q12737077
A [ANSWER] was a position held by that person
['Q585', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q7608797 property:P39 ?q . ?q rdf:type ontology:Q12737077 }
member of the Parliament of Norway
A member of the Parliament of Norway was a position held by that person
member of the Parliament of Norway
action filter_type
action find
entity Stephen Bråthen
relation position held
type occupation
['Oslo', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Stephen_Bråthen property:position_held ?q . ?q rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7608797
P27
Q15617994
USER
Which administrative territory is the native country of Stephen Bråthen ?
(Q7608797,P27,c(Q15617994))
action filter_type
action find
entity Q7608797
relation P27
type Q15617994
['Q7608797', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q7608797 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Stephen Bråthen
action filter_type
action find
entity Stephen Bråthen
relation country of citizenship
type designation for an administrative territorial entity
['Stephen Bråthen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Stephen_Bråthen property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20
SYSTEM
Norway
Q20
(Q7608797,P27,c(Q15617994))
action filter_type
action find
entity Q7608797
relation P27
type Q15617994
In [ANSWER] is the native country of Stephen Bråthen
['Q7608797', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q7608797 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Norway
In Norway is the native country of Stephen Bråthen
Norway
action filter_type
action find
entity Stephen Bråthen
relation country of citizenship
type designation for an administrative territorial entity
['Stephen Bråthen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Stephen_Bråthen property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7937789
Q15617994
USER
And what about Vivian Velez?
(Q7937789,P27,c(Q15617994))
action filter_type
action find
entity Q7937789
relation P27
type Q15617994
['Q7937789', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q7937789 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Vivian Velez
action filter_type
action find
entity Vivian Velez
relation country of citizenship
type designation for an administrative territorial entity
['Vivian Velez', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Vivian_Velez property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q928
SYSTEM
Philippines
Q928
(Q7937789,P27,c(Q15617994))
action filter_type
action find
entity Q7937789
relation P27
type Q15617994
[ANSWER]
['Q7937789', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q7937789 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Philippines
Philippines
action filter_type
action find
entity Vivian Velez
relation country of citizenship
type designation for an administrative territorial entity
['Vivian Velez', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Vivian_Velez property:country_of_citizenship ?q . ?q 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
Q928 Q977 Q34
P530
Q15617994
USER
Does that administrative territory have diplomatic associations with Djibouti and Sweden ?
(Q928,P530,Q977) (Q928,P530,Q34)
action is_in
entity Q928
action intersection
action find_reverse
entity Q977
relation P530
action find_reverse
entity Q34
relation P530
['Q928', 'P530', 'Q977'] ['Q928', 'P530', 'Q34']
ASK WHERE { resource:Q928 property:P530 resource:Q977 . resource:Q928 property:P530 resource:Q34 }
Philippines Djibouti Sweden
action is_in
entity Philippines
action intersection
action find_reverse
entity Djibouti
relation diplomatic relation
action find_reverse
entity Sweden
relation diplomatic relation
['Philippines', 'diplomatic relation', 'Djibouti'] ['Philippines', 'diplomatic relation', 'Sweden']
ASK WHERE { resource:Philippines property:diplomatic_relation resource:Djibouti . resource:Philippines property:diplomatic_relation resource:Sweden }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q928,P530,Q977) (Q928,P530,Q34)
action is_in
entity Q928
action intersection
action find_reverse
entity Q977
relation P530
action find_reverse
entity Q34
relation P530
[ANSWER]
['Q928', 'P530', 'Q977'] ['Q928', 'P530', 'Q34']
ASK WHERE { resource:Q928 property:P530 resource:Q977 . resource:Q928 property:P530 resource:Q34 }
Yes
action is_in
entity Philippines
action intersection
action find_reverse
entity Djibouti
relation diplomatic relation
action find_reverse
entity Sweden
relation diplomatic relation
['Philippines', 'diplomatic relation', 'Djibouti'] ['Philippines', 'diplomatic relation', 'Sweden']
ASK WHERE { resource:Philippines property:diplomatic_relation resource:Djibouti . resource:Philippines property:diplomatic_relation resource:Sweden }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q20 Q340195 Q827525
P463
Q43229
USER
Does Norway have a membership of African Development Bank and International Development Association ?
(Q20,P463,Q340195) (Q20,P463,Q827525)
action is_in
entity Q20
action intersection
action find_reverse
entity Q340195
relation P463
action find_reverse
entity Q827525
relation P463
['Q20', 'P463', 'Q340195'] ['Q20', 'P463', 'Q827525']
ASK WHERE { resource:Q20 property:P463 resource:Q827525 . resource:Q20 property:P463 resource:Q340195 }
Norway African Development Bank International Development Association
action is_in
entity Norway
action intersection
action find_reverse
entity African Development Bank
relation member of
action find_reverse
entity International Development Association
relation member of
['Norway', 'member of', 'African Development Bank'] ['Norway', 'member of', 'International Development Association']
ASK WHERE { resource:Norway property:member_of resource:International_Development_Association . resource:Norway property:member_of resource:African_Development_Bank }
[]
organization
SYSTEM
YES
(Q20,P463,Q340195) (Q20,P463,Q827525)
action is_in
entity Q20
action intersection
action find_reverse
entity Q340195
relation P463
action find_reverse
entity Q827525
relation P463
[ANSWER]
['Q20', 'P463', 'Q340195'] ['Q20', 'P463', 'Q827525']
ASK WHERE { resource:Q20 property:P463 resource:Q827525 . resource:Q20 property:P463 resource:Q340195 }
Yes
action is_in
entity Norway
action intersection
action find_reverse
entity African Development Bank
relation member of
action find_reverse
entity International Development Association
relation member of
['Norway', 'member of', 'African Development Bank'] ['Norway', 'member of', 'International Development Association']
ASK WHERE { resource:Norway property:member_of resource:International_Development_Association . resource:Norway property:member_of resource:African_Development_Bank }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have tactful political relations with approximately 28 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 28
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?y ) WHERE { ?q property:P530 ?r . ?q rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q15617994 } GROUP BY ?q } . FILTER ( ?y = 28 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 28
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?y ) WHERE { ?q property:diplomatic_relation ?r . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . FILTER ( ?y = 28 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
4
Q801 Q159 Q184 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 28
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?y ) WHERE { ?q property:P530 ?r . ?q rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q15617994 } GROUP BY ?q } . FILTER ( ?y = 28 ) }
Israel Russia Belarus Zambia
4
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 28
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?y ) WHERE { ?q property:diplomatic_relation ?r . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . FILTER ( ?y = 28 ) }
[]