Simple Question (Direct)
Simple Question
Q400619
P21
Q290
USER
What is the sex of Ahmad Khomeini ?
(Q400619,P21,c(Q290))
action filter_type
action find
entity Q400619
relation P21
type Q290
['Q400619', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q400619 property:P21 ?q . ?q rdf:type ontology:Q290 }
Ahmad Khomeini
action filter_type
action find
entity Ahmad Khomeini
relation gender
type sex
['Ahmad Khomeini', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Ahmad_Khomeini property:gender ?q . ?q rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q400619,P21,c(Q290))
action filter_type
action find
entity Q400619
relation P21
type Q290
The sex of Ahmad Khomeini is the [ANSWER]
['Q400619', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q400619 property:P21 ?q . ?q rdf:type ontology:Q290 }
male
The sex of Ahmad Khomeini is the male
male
action filter_type
action find
entity Ahmad Khomeini
relation gender
type sex
['Ahmad Khomeini', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Ahmad_Khomeini property:gender ?q . ?q rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q400619
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q400619
relation P27
type Q15617994
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q400619 property:P27 ?n . ?n rdf:type ontology:Q15617994 }
Ahmad Khomeini
action filter_type
action find
entity Ahmad Khomeini
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Ahmad_Khomeini property:country_of_citizenship ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q794
SYSTEM
Iran
Q794
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q400619
relation P27
type Q15617994
[ANSWER] is the country of citizenship of that person
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q400619 property:P27 ?n . ?n rdf:type ontology:Q15617994 }
Iran
Iran is the country of citizenship of that person
Iran
action filter_type
action find
entity Ahmad Khomeini
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Ahmad_Khomeini property:country_of_citizenship ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q794 Q874
P47
Q15617994
USER
Does Turkmenistan share border with that one ?
(Q794,P47,Q874)
action is_in
entity Q874
action find
entity Q794
relation P47
['Q794', 'P47', 'Q874']
ASK WHERE { resource:Q794 property:P47 resource:Q874 }
Iran Turkmenistan
action is_in
entity Turkmenistan
action find
entity Iran
relation shares border with
['Iran', 'shares border with', 'Turkmenistan']
ASK WHERE { resource:Iran property:shares_border_with resource:Turkmenistan }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q794,P47,Q874)
action is_in
entity Q874
action find
entity Q794
relation P47
[ANSWER]
['Q794', 'P47', 'Q874']
ASK WHERE { resource:Q794 property:P47 resource:Q874 }
Yes
action is_in
entity Turkmenistan
action find
entity Iran
relation shares border with
['Iran', 'shares border with', 'Turkmenistan']
ASK WHERE { resource:Iran property:shares_border_with resource:Turkmenistan }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q794
P47
Q7275 Q56061
USER
How many states and administrative territories share the border with Iran ?
(Q794,P47,c(Q7275)) (Q794,P47,c(Q56061))
action count
action union
action filter_type
action find
entity Q794
relation P47
type Q7275
action filter_type
action find
entity Q794
relation P47
type Q56061
['Q794', 'P47', {'concept': 'Q7275'}] ['Q794', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { VALUES ( ?g ) { ( ontology:Q7275 ) ( ontology:Q56061 ) } . ?e rdf:type ?g }
Iran
action count
action union
action filter_type
action find
entity Iran
relation shares border with
type state
action filter_type
action find
entity Iran
relation shares border with
type administrative territorial entity
['Iran', 'shares border with', {'concept': 'state'}] ['Iran', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { VALUES ( ?g ) { ( ontology:state ) ( ontology:administrative_territorial_entity ) } . ?e rdf:type ?g }
[]
state administrative territorial entity
SYSTEM
1 states and 1 administrative territories
Q15180 Q7172
(Q794,P47,c(Q7275)) (Q794,P47,c(Q56061))
action count
action union
action filter_type
action find
entity Q794
relation P47
type Q7275
action filter_type
action find
entity Q794
relation P47
type Q56061
[ANSWER]
['Q794', 'P47', {'concept': 'Q7275'}] ['Q794', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { VALUES ( ?g ) { ( ontology:Q7275 ) ( ontology:Q56061 ) } . ?e rdf:type ?g }
Soviet Union Arab League
1 states and 1 administrative territories
action count
action union
action filter_type
action find
entity Iran
relation shares border with
type state
action filter_type
action find
entity Iran
relation shares border with
type administrative territorial entity
['Iran', 'shares border with', {'concept': 'state'}] ['Iran', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { VALUES ( ?g ) { ( ontology:state ) ( ontology:administrative_territorial_entity ) } . ?e rdf:type ?g }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q794
P463
Q43229
USER
What organizations were that administrative territory a member of ?
action filter_type
action find
entity Q794
relation P463
type Q43229
SELECT DISTINCT ?i WHERE { resource:Q794 property:P463 ?i . ?i rdf:type ontology:Q43229 }
Iran
action filter_type
action find
entity Iran
relation member of
type organization
SELECT DISTINCT ?i WHERE { resource:Iran property:member_of ?i . ?i rdf:type ontology:organization }
[]
organization
Q7795 Q191384 Q656801
SYSTEM
OPEC, International Bank for Reconstruction and Development, International Finance Corporation
Q7795 Q191384 Q656801 Q827525
action filter_type
action find
entity Q794
relation P463
type Q43229
[ANSWERS]
SELECT DISTINCT ?i WHERE { resource:Q794 property:P463 ?i . ?i rdf:type ontology:Q43229 }
OPEC International Bank for Reconstruction and Development International Finance Corporation International Development Association
What organizations were that administrative territory a member of
OPEC International Bank for Reconstruction and Development International Finance Corporation
action filter_type
action find
entity Iran
relation member of
type organization
SELECT DISTINCT ?i WHERE { resource:Iran property:member_of ?i . ?i rdf:type ontology:organization }
[]
Clarification
Simple Question|Single Entity|Indirect
Q191384
P17
Q15617994
USER
Which administrative territory is that organization a part of ?
(Q191384,P17,c(Q15617994))
action filter_type
action find
entity Q191384
relation P17
type Q15617994
['Q191384', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q191384 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
International Bank for Reconstruction and Development
action filter_type
action find
entity International Bank for Reconstruction and Development
relation country
type designation for an administrative territorial entity
['International Bank for Reconstruction and Development', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:International_Bank_for_Reconstruction_and_Development property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q656801
SYSTEM
Did you mean International Finance Corporation ?
Q7795 Q191384 Q656801
(Q7795,P17,c(Q15617994)) (Q191384,P17,c(Q15617994)) (Q656801,P17,c(Q15617994))
[ANSWER]
['Q7795', 'P17', {'concept': 'Q15617994'}] ['Q191384', 'P17', {'concept': 'Q15617994'}] ['Q656801', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q191384 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
OPEC International Bank for Reconstruction and Development International Finance Corporation
Did you mean International Finance Corporation ?
International Finance Corporation
['OPEC', 'country', {'concept': 'designation for an administrative territorial entity'}] ['International Bank for Reconstruction and Development', 'country', {'concept': 'designation for an administrative territorial entity'}] ['International Finance Corporation', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:International_Bank_for_Reconstruction_and_Development property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant International Bank for Reconstruction and Development. Could you tell me the answer for that?
(Q191384,P17,c(Q15617994))
Q191384
['Q191384', 'P17', {'concept': 'Q15617994'}]
['International Bank for Reconstruction and Development', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q30
SYSTEM
United States of America
Q30
(Q191384,P17,c(Q15617994))
action filter_type
action find
entity Q191384
relation P17
type Q15617994
The [ANSWER] is that organization a part of
['Q191384', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q191384 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
United States of America
The United States of America is that organization a part of
United States of America
action filter_type
action find
entity International Bank for Reconstruction and Development
relation country
type designation for an administrative territorial entity
['International Bank for Reconstruction and Development', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:International_Bank_for_Reconstruction_and_Development property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q30
P101
Q502895
USER
Who works in the domain of that administrative territory ?
(c(Q502895),P101,Q30)
action filter_type
action find_reverse
entity Q30
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q30']
SELECT DISTINCT ?b WHERE { ?b property:P101 resource:Q30 . ?b rdf:type ontology:Q502895 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'United States of America']
SELECT DISTINCT ?b WHERE { ?b property:field_of_work resource:United_States_of_America . ?b rdf:type ontology:common_name }
[]
common name
Q498840
SYSTEM
David Janssen
Q498840
(c(Q502895),P101,Q30)
action filter_type
action find_reverse
entity Q30
relation P101
type Q502895
[ANSWER] works in the domain of that administrative territory
[{'concept': 'Q502895'}, 'P101', 'Q30']
SELECT DISTINCT ?b WHERE { ?b property:P101 resource:Q30 . ?b rdf:type ontology:Q502895 }
David Janssen
David Janssen works in the domain of that administrative territory
David Janssen
action filter_type
action find_reverse
entity United States of America
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'United States of America']
SELECT DISTINCT ?b WHERE { ?b property:field_of_work resource:United_States_of_America . ?b rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q30
P1001
Q4164871
USER
Which position applies to jurisdiction over that administrative territory ?
(c(Q4164871),P1001,Q498840)
action filter_type
action find_reverse
entity Q30
relation P1001
type Q4164871
[{'concept': 'Q4164871'}, 'P1001', 'Q498840']
SELECT DISTINCT ?z WHERE { ?z property:P1001 resource:Q30 . ?z rdf:type ontology:Q4164871 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation applies to jurisdiction
type position
[{'concept': 'position'}, 'applies to jurisdiction', 'David Janssen']
SELECT DISTINCT ?z WHERE { ?z property:applies_to_jurisdiction resource:United_States_of_America . ?z rdf:type ontology:position }
[]
position
Q533501
SYSTEM
Secretary of state
Q533501
(c(Q4164871),P1001,Q498840)
action filter_type
action find_reverse
entity Q30
relation P1001
type Q4164871
The [ANSWER] applies to jurisdiction over that administrative territory
[{'concept': 'Q4164871'}, 'P1001', 'Q498840']
SELECT DISTINCT ?z WHERE { ?z property:P1001 resource:Q30 . ?z rdf:type ontology:Q4164871 }
Secretary of state
The Secretary of state applies to jurisdiction over that administrative territory
Secretary of state
action filter_type
action find_reverse
entity United States of America
relation applies to jurisdiction
type position
[{'concept': 'position'}, 'applies to jurisdiction', 'David Janssen']
SELECT DISTINCT ?z WHERE { ?z property:applies_to_jurisdiction resource:United_States_of_America . ?z rdf:type ontology:position }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7795
P127
Q41176
USER
Which building is owned by OPEC ?
(c(Q41176),P127,Q7795)
action filter_type
action find_reverse
entity Q7795
relation P127
type Q41176
[{'concept': 'Q41176'}, 'P127', 'Q7795']
SELECT DISTINCT ?w WHERE { ?w property:P127 resource:Q7795 . ?w rdf:type ontology:Q41176 }
OPEC
action filter_type
action find_reverse
entity OPEC
relation owned by
type building
[{'concept': 'building'}, 'owned by', 'OPEC']
SELECT DISTINCT ?w WHERE { ?w property:owned_by resource:OPEC . ?w rdf:type ontology:building }
[]
building
Q2046973
SYSTEM
Deutschmeister-Palais
Q2046973
(c(Q41176),P127,Q7795)
action filter_type
action find_reverse
entity Q7795
relation P127
type Q41176
[ANSWER] is owned by OPEC
[{'concept': 'Q41176'}, 'P127', 'Q7795']
SELECT DISTINCT ?w WHERE { ?w property:P127 resource:Q7795 . ?w rdf:type ontology:Q41176 }
Deutschmeister-Palais
Deutschmeister-Palais is owned by OPEC
Deutschmeister-Palais
action filter_type
action find_reverse
entity OPEC
relation owned by
type building
[{'concept': 'building'}, 'owned by', 'OPEC']
SELECT DISTINCT ?w WHERE { ?w property:owned_by resource:OPEC . ?w rdf:type ontology:building }
[]