Simple Question (Direct)
Simple Question
Q4061598
P166
Q1788716
USER
What was received by Aleksandr Alekseyev ?
(Q4061598,P166,c(Q1788716))
action filter_type
action find
entity Q4061598
relation P166
type Q1788716
['Q4061598', 'P166', {'concept': 'Q1788716'}]
SELECT DISTINCT ?m WHERE { resource:Q4061598 property:P166 ?m . ?m rdf:type ontology:Q1788716 }
Aleksandr Alekseyev
action filter_type
action find
entity Aleksandr Alekseyev
relation award received
type military decoration
['Aleksandr Alekseyev', 'award received', {'concept': 'military decoration'}]
SELECT DISTINCT ?m WHERE { resource:Aleksandr_Alekseyev property:award_received ?m . ?m rdf:type ontology:military_decoration }
[]
military decoration
Q241821
SYSTEM
Medal "For the Defence of Stalingrad"
Q241821
(Q4061598,P166,c(Q1788716))
action filter_type
action find
entity Q4061598
relation P166
type Q1788716
The [ANSWER] was received by Aleksandr Alekseyev
['Q4061598', 'P166', {'concept': 'Q1788716'}]
SELECT DISTINCT ?m WHERE { resource:Q4061598 property:P166 ?m . ?m rdf:type ontology:Q1788716 }
Medal "For the Defence of Stalingrad"
The Medal "For the Defence of Stalingrad" was received by Aleksandr Alekseyev
Medal "For the Defence of Stalingrad"
action filter_type
action find
entity Aleksandr Alekseyev
relation award received
type military decoration
['Aleksandr Alekseyev', 'award received', {'concept': 'military decoration'}]
SELECT DISTINCT ?m WHERE { resource:Aleksandr_Alekseyev property:award_received ?m . ?m rdf:type ontology:military_decoration }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4061598
P20
Q56061
USER
Where did Aleksandr Alekseyev expire ?
(Q4061598,P20,c(Q56061))
action filter_type
action find
entity Q4061598
relation P20
type Q56061
['Q4061598', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q56061 . resource:Q4061598 property:P20 ?d }
Aleksandr Alekseyev
action filter_type
action find
entity Aleksandr Alekseyev
relation place of death
type administrative territorial entity
['Aleksandr Alekseyev', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:administrative_territorial_entity . resource:Aleksandr_Alekseyev property:place_of_death ?d }
[]
administrative territorial entity
Q649
SYSTEM
Moscow
Q649
(Q4061598,P20,c(Q56061))
action filter_type
action find
entity Q4061598
relation P20
type Q56061
Aleksandr Alekseyev expired in [ANSWER]
['Q4061598', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q56061 . resource:Q4061598 property:P20 ?d }
Moscow
Aleksandr Alekseyev expired in Moscow
Moscow
action filter_type
action find
entity Aleksandr Alekseyev
relation place of death
type administrative territorial entity
['Aleksandr Alekseyev', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:administrative_territorial_entity . resource:Aleksandr_Alekseyev property:place_of_death ?d }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2423689
Q56061
USER
And what about Charles Haberkorn?
(Q2423689,P20,c(Q56061))
action filter_type
action find
entity Q2423689
relation P20
type Q56061
['Q2423689', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q2423689 property:P20 ?m . ?m rdf:type ontology:Q56061 }
Charles Haberkorn
action filter_type
action find
entity Charles Haberkorn
relation place of death
type administrative territorial entity
['Charles Haberkorn', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Charles_Haberkorn property:place_of_death ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q38022
SYSTEM
St. Louis
Q38022
(Q2423689,P20,c(Q56061))
action filter_type
action find
entity Q2423689
relation P20
type Q56061
[ANSWER]
['Q2423689', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q2423689 property:P20 ?m . ?m rdf:type ontology:Q56061 }
St. Louis
St. Louis
action filter_type
action find
entity Charles Haberkorn
relation place of death
type administrative territorial entity
['Charles Haberkorn', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Charles_Haberkorn property:place_of_death ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q38022 Q7107794
P190
Q486972
USER
Is Ostrowieczko twin town of that administrative territory ?
(Q38022,P190,Q7107794)
action is_in
entity Q7107794
action find
entity Q38022
relation P190
['Q38022', 'P190', 'Q7107794']
ASK WHERE { resource:Q38022 property:P190 resource:Q7107794 }
St. Louis Ostrowieczko
action is_in
entity Ostrowieczko
action find
entity St. Louis
relation sister city
['St. Louis', 'sister city', 'Ostrowieczko']
ASK WHERE { resource:St._Louis property:sister_city resource:Ostrowieczko }
[]
human settlement
SYSTEM
NO
(Q38022,P190,Q7107794)
action is_in
entity Q7107794
action find
entity Q38022
relation P190
[ANSWER]
['Q38022', 'P190', 'Q7107794']
ASK WHERE { resource:Q38022 property:P190 resource:Q7107794 }
No
action is_in
entity Ostrowieczko
action find
entity St. Louis
relation sister city
['St. Louis', 'sister city', 'Ostrowieczko']
ASK WHERE { resource:St._Louis property:sister_city resource:Ostrowieczko }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q12165081 Q4061598
P27 P17
Q15617994
USER
Which administrative territories do Aleksandr Alekseyev belong to or are Fierbinți located in ?
OR((Q4061598,P27,c(Q15617994)), (Q12165081,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q4061598
relation P27
action find
entity Q12165081
relation P17
type Q15617994
{'OR': [['Q4061598', 'P27', {'concept': 'Q15617994'}], ['Q12165081', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . { { resource:Q4061598 property:P27 ?q } UNION { resource:Q12165081 property:P17 ?q } } }
Fierbinți Aleksandr Alekseyev
action filter_type
action union
action find
entity Aleksandr Alekseyev
relation country of citizenship
action find
entity Fierbinți
relation country
type designation for an administrative territorial entity
{'OR': [['Aleksandr Alekseyev', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Fierbinți', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Aleksandr_Alekseyev property:country_of_citizenship ?q } UNION { resource:Fierbinți property:country ?q } } }
[]
designation for an administrative territorial entity
Q218 Q159
SYSTEM
Romania, Russia
Q218 Q159
OR((Q4061598,P27,c(Q15617994)), (Q12165081,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q4061598
relation P27
action find
entity Q12165081
relation P17
type Q15617994
Aleksandr Alekseyev belong to [ANSWERS]
{'OR': [['Q4061598', 'P27', {'concept': 'Q15617994'}], ['Q12165081', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . { { resource:Q4061598 property:P27 ?q } UNION { resource:Q12165081 property:P17 ?q } } }
Romania Russia
Aleksandr Alekseyev belong to Romania and Russia
Romania Russia
action filter_type
action union
action find
entity Aleksandr Alekseyev
relation country of citizenship
action find
entity Fierbinți
relation country
type designation for an administrative territorial entity
{'OR': [['Aleksandr Alekseyev', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Fierbinți', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Aleksandr_Alekseyev property:country_of_citizenship ?q } UNION { resource:Fierbinți property:country ?q } } }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P941
Q15617994 Q3895768
USER
How many administrative territories were lesser number of fictional locations inspired by than that administrative territory ?
(c(Q3895768),P941,c(Q15617994))
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q15617994 }
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity fictional location
Comparative|Count over More/Less|Single entity type|Clarification
Q159
SYSTEM
Did you mean Russia ?
(c(Q3895768),P941,c(Q15617994))
[ANSWER]
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q15617994 }
Did you mean Russia ?
Russia
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q3895768),P941,c(Q15617994))
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
1
Q55416
(c(Q3895768),P941,c(Q15617994))
[ANSWER]
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q15617994 }
Chioggia
1
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
How many political territories holds diplomatic relationship with around 85 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 85
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?x ) WHERE { ?q property:P530 ?a . ?q rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 } GROUP BY ?q } . FILTER ( ?x = 85 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 85
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?x ) WHERE { ?q property:diplomatic_relation ?a . ?q rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . FILTER ( ?x = 85 ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
2
Q183 Q408
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 85
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?x ) WHERE { ?q property:P530 ?a . ?q rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 } GROUP BY ?q } . FILTER ( ?x = 85 ) }
Germany Australia
2
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 85
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?x ) WHERE { ?q property:diplomatic_relation ?a . ?q rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . FILTER ( ?x = 85 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q159
P530
Q15617994
USER
How many administrative territories have a diplomatic relationship with Russia ?
(Q159,P530,c(Q15617994))
action count
action filter_type
action find
entity Q159
relation P530
type Q15617994
['Q159', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:Q159 property:P530 ?v . ?v rdf:type ontology:Q15617994 }
Russia
action count
action filter_type
action find
entity Russia
relation diplomatic relation
type designation for an administrative territorial entity
['Russia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:Russia property:diplomatic_relation ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
19
Q805 Q801 Q241 Q668 Q414 Q142 Q148 Q17 Q30 Q79 Q38 Q711 Q717 Q1011 Q403 Q43 Q155 Q953 Q881
(Q159,P530,c(Q15617994))
action count
action filter_type
action find
entity Q159
relation P530
type Q15617994
[ANSWER]
['Q159', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:Q159 property:P530 ?v . ?v rdf:type ontology:Q15617994 }
Yemen Israel Cuba India Argentina France People's Republic of China Japan United States of America Egypt Italy Mongolia Venezuela Cape Verde Serbia Turkey Brazil Zambia Vietnam
19
action count
action filter_type
action find
entity Russia
relation diplomatic relation
type designation for an administrative territorial entity
['Russia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:Russia property:diplomatic_relation ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q230
P530
Q15617994
USER
And how about Georgia?
(Q230,P530,c(Q15617994))
action count
action filter_type
action find
entity Q230
relation P530
type Q15617994
['Q230', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { resource:Q230 property:P530 ?f . ?f rdf:type ontology:Q15617994 }
Georgia
action count
action filter_type
action find
entity Georgia
relation diplomatic relation
type designation for an administrative territorial entity
['Georgia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { resource:Georgia property:diplomatic_relation ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
80
Q805 Q801 Q800 Q668 Q414 Q145 Q262 Q784 Q786 Q710 Q252 Q399 Q398 Q43 Q155 Q792 Q796 Q794 Q954 Q889 Q884 Q881 Q986 Q822 Q241 Q424 Q921 Q31 Q30 Q37 Q38 Q739 Q423 Q983 Q851 Q734 Q1011 Q736 Q27 Q29 Q819 Q189 Q184 Q32 Q347 Q227 Q225 Q222 Q229 Q228 Q17 Q902 Q1008 Q191 Q965 Q967 Q963 Q115 Q114 Q117 Q750 Q211 Q219 Q916 Q1007 Q1006 Q1005 Q1009 Q974 Q971 Q970 Q686 Q874 Q79 Q878 Q774 Q810 Q1016 Q1013 Q953
(Q230,P530,c(Q15617994))
action count
action filter_type
action find
entity Q230
relation P530
type Q15617994
[ANSWER]
['Q230', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { resource:Q230 property:P530 ?f . ?f rdf:type ontology:Q15617994 }
Yemen Israel Costa Rica India Argentina United Kingdom Algeria Dominica Dominican Republic Kiribati Indonesia Armenia Bahrain Turkey Brazil El Salvador Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Eritrea Lebanon Cuba Cambodia Brunei Belgium United States of America Lithuania Italy Colombia North Korea Equatorial Guinea Saudi Arabia Guyana Cape Verde Ecuador Ireland Spain Laos Iceland Belarus Luxembourg Liechtenstein Azerbaijan Bosnia and Herzegovina Albania Cyprus Andorra Japan Bangladesh Côte d'Ivoire Estonia Burkina Faso Burundi Botswana Ethiopia Kenya Ghana Bolivia Latvia Bulgaria Angola Guinea-Bissau Guinea Gambia Cameroon Democratic Republic of the Congo Republic of the Congo Comoros Vanuatu Turkmenistan Egypt United Arab Emirates Guatemala Jordan Libya Lesotho Zambia
80
action count
action filter_type
action find
entity Georgia
relation diplomatic relation
type designation for an administrative territorial entity
['Georgia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { resource:Georgia property:diplomatic_relation ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q1011
Q15617994
USER
And what about Cape Verde?
(Q1011,P530,c(Q15617994))
action count
action filter_type
action find
entity Q1011
relation P530
type Q15617994
['Q1011', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { resource:Q1011 property:P530 ?e . ?e rdf:type ontology:Q15617994 }
Cape Verde
action count
action filter_type
action find
entity Cape Verde
relation diplomatic relation
type designation for an administrative territorial entity
['Cape Verde', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { resource:Cape_Verde property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
9
(Q1011,P530,c(Q15617994))
action count
action filter_type
action find
entity Q1011
relation P530
type Q15617994
[ANSWER]
['Q1011', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { resource:Q1011 property:P530 ?e . ?e rdf:type ontology:Q15617994 }
9
action count
action filter_type
action find
entity Cape Verde
relation diplomatic relation
type designation for an administrative territorial entity
['Cape Verde', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { resource:Cape_Verde property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q408 Q159
P530
Q15617994
USER
Which administrative territories have diplomatic relationships with Russia or Australia ?
OR((Q159,P530,c(Q15617994)), (Q408,P530,c(Q15617994)))
action filter_type
action union
action find
entity Q159
relation P530
action find
entity Q408
relation P530
type Q15617994
{'OR': [['Q159', 'P530', {'concept': 'Q15617994'}], ['Q408', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . { VALUES ( ?k ) { ( resource:Q159 ) ( resource:Q408 ) } . ?k property:P530 ?f } }
Australia Russia
action filter_type
action union
action find
entity Russia
relation diplomatic relation
action find
entity Australia
relation diplomatic relation
type designation for an administrative territorial entity
{'OR': [['Russia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?k ) { ( resource:Russia ) ( resource:Australia ) } . ?k property:diplomatic_relation ?f } }
[]
designation for an administrative territorial entity
Q792 Q252 Q817 Q424 Q833 Q229 Q33 Q881 Q884 Q215
SYSTEM
Some of them are El Salvador, Indonesia, Kuwait, Cambodia, Malaysia, Cyprus, Finland, Vietnam, South Korea, Slovenia
Q805 Q801 Q800 Q702 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q786 Q924 Q712 Q711 Q836 Q837 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q796 Q794 Q954 Q953 Q884 Q881 Q822 Q241 Q244 Q33 Q921 Q31 Q30 Q37 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q424 Q851 Q733 Q854 Q734 Q736 Q233 Q20 Q1041 Q27 Q29 Q819 Q1027 Q1020 Q843 Q1029 Q225 Q224 Q221 Q96 Q229 Q17 Q902 Q1036 Q1033 Q1030 Q191 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q215 Q218 Q219 Q889 Q916 Q833 Q977 Q1009 Q683 Q686 Q717 Q574 Q79 Q77 Q878 Q774 Q817 Q810 Q811 Q1011 Q678 Q33788 Q869
OR((Q159,P530,c(Q15617994)), (Q408,P530,c(Q15617994)))
action filter_type
action union
action find
entity Q159
relation P530
action find
entity Q408
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with Russia or Australia
{'OR': [['Q159', 'P530', {'concept': 'Q15617994'}], ['Q408', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . { VALUES ( ?k ) { ( resource:Q159 ) ( resource:Q408 ) } . ?k property:P530 ?f } }
Yemen Israel Costa Rica Federated States of Micronesia Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Dominican Republic Tanzania Fiji Mongolia Myanmar Nepal Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil El Salvador Iraq Iran Zimbabwe Zambia South Korea Vietnam Lebanon Cuba Barbados Finland Brunei Belgium United States of America Lithuania Poland Sweden Philippines Switzerland Italy Colombia North Korea Cambodia Saudi Arabia Paraguay Sri Lanka Guyana Ecuador Malta Norway Senegal Ireland Spain Laos Mauritius Malawi Pakistan Mozambique Bosnia and Herzegovina Croatia Republic of Macedonia Mexico Cyprus Japan Bangladesh Uganda Nigeria Namibia Estonia Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Slovenia Romania Bulgaria Afghanistan Angola Malaysia Djibouti Cameroon Samoa Vanuatu Venezuela East Timor Egypt Uruguay United Arab Emirates Guatemala Kuwait Jordan Nicaragua Cape Verde Tonga New Caledonia Thailand
El Salvador, Indonesia, Kuwait, Cambodia, Malaysia, Cyprus, Finland, Vietnam, South Korea and Slovenia have diplomatic relationships with Russia or Australia
El Salvador Indonesia Kuwait Cambodia Malaysia Cyprus Finland Vietnam South Korea Slovenia
action filter_type
action union
action find
entity Russia
relation diplomatic relation
action find
entity Australia
relation diplomatic relation
type designation for an administrative territorial entity
{'OR': [['Russia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?k ) { ( resource:Russia ) ( resource:Australia ) } . ?k property:diplomatic_relation ?f } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q408
P1313
Q12737077
USER
What is the occupation held by Australia ?
(Q408,P1313,c(Q12737077))
action filter_type
action find
entity Q408
relation P1313
type Q12737077
['Q408', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q12737077 . resource:Q408 property:P1313 ?e }
Australia
action filter_type
action find
entity Australia
relation office held by head of government
type occupation
['Australia', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:occupation . resource:Australia property:office_held_by_head_of_government ?e }
[]
occupation
Q319145
SYSTEM
Prime Minister of Australia
Q319145
(Q408,P1313,c(Q12737077))
action filter_type
action find
entity Q408
relation P1313
type Q12737077
The occupation held by Australia is the [ANSWER]
['Q408', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q12737077 . resource:Q408 property:P1313 ?e }
Prime Minister of Australia
The occupation held by Australia is the Prime Minister of Australia
Prime Minister of Australia
action filter_type
action find
entity Australia
relation office held by head of government
type occupation
['Australia', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:occupation . resource:Australia property:office_held_by_head_of_government ?e }
[]