Simple Question (Direct)
Simple Question
Q1378300
P1435
Q2065736
USER
Which cultural property heritage status does St. Maria unter dem Kreuz have ?
(Q1378300,P1435,c(Q2065736))
action filter_type
action find
entity Q1378300
relation P1435
type Q2065736
['Q1378300', 'P1435', {'concept': 'Q2065736'}]
SELECT DISTINCT ?p WHERE { resource:Q1378300 property:P1435 ?p . ?p rdf:type ontology:Q2065736 }
St. Maria unter dem Kreuz
action filter_type
action find
entity St. Maria unter dem Kreuz
relation heritage status
type cultural property
['St. Maria unter dem Kreuz', 'heritage status', {'concept': 'cultural property'}]
SELECT DISTINCT ?p WHERE { resource:St._Maria_unter_dem_Kreuz property:heritage_status ?p . ?p rdf:type ontology:cultural_property }
[]
cultural property
Q15632117
SYSTEM
Baudenkmal
Q15632117
(Q1378300,P1435,c(Q2065736))
action filter_type
action find
entity Q1378300
relation P1435
type Q2065736
[ANSWER] St. Maria unter dem Kreuz has
['Q1378300', 'P1435', {'concept': 'Q2065736'}]
SELECT DISTINCT ?p WHERE { resource:Q1378300 property:P1435 ?p . ?p rdf:type ontology:Q2065736 }
Baudenkmal
Baudenkmal St. Maria unter dem Kreuz has
Baudenkmal
action filter_type
action find
entity St. Maria unter dem Kreuz
relation heritage status
type cultural property
['St. Maria unter dem Kreuz', 'heritage status', {'concept': 'cultural property'}]
SELECT DISTINCT ?p WHERE { resource:St._Maria_unter_dem_Kreuz property:heritage_status ?p . ?p rdf:type ontology:cultural_property }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1378300
P800
Q502895
USER
Which person is accredited with being the author of the notable work that temple ?
(c(Q502895),P800,Q15632117)
action filter_type
action find_reverse
entity Q1378300
relation P800
type Q502895
[{'concept': 'Q502895'}, 'P800', 'Q15632117']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . ?e property:P800 resource:Q1378300 }
St. Maria unter dem Kreuz
action filter_type
action find_reverse
entity St. Maria unter dem Kreuz
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'Baudenkmal']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . ?e property:notable_work resource:St._Maria_unter_dem_Kreuz }
[]
common name
Q763596
SYSTEM
August Rincklake
Q763596
(c(Q502895),P800,Q15632117)
action filter_type
action find_reverse
entity Q1378300
relation P800
type Q502895
[ANSWER] is accredited with being the author of the notable work that temple
[{'concept': 'Q502895'}, 'P800', 'Q15632117']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . ?e property:P800 resource:Q1378300 }
August Rincklake
August Rincklake is accredited with being the author of the notable work that temple
August Rincklake
action filter_type
action find_reverse
entity St. Maria unter dem Kreuz
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'Baudenkmal']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . ?e property:notable_work resource:St._Maria_unter_dem_Kreuz }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7057241 Q1378300
P17
Q1048835
USER
Which political territories are St. Maria unter dem Kreuz or North West Cornice situated in ?
OR((Q1378300,P17,c(Q1048835)), (Q7057241,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q1378300
relation P17
action find
entity Q7057241
relation P17
type Q1048835
{'OR': [['Q1378300', 'P17', {'concept': 'Q1048835'}], ['Q7057241', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q1378300 property:P17 ?k } UNION { resource:Q7057241 property:P17 ?k } } . ?k rdf:type ontology:Q1048835 }
North West Cornice St. Maria unter dem Kreuz
action filter_type
action union
action find
entity St. Maria unter dem Kreuz
relation country
action find
entity North West Cornice
relation country
type political territorial entity
{'OR': [['St. Maria unter dem Kreuz', 'country', {'concept': 'political territorial entity'}], ['North West Cornice', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:St._Maria_unter_dem_Kreuz property:country ?k } UNION { resource:North_West_Cornice property:country ?k } } . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q183
SYSTEM
Australia, Germany
Q408 Q183
OR((Q1378300,P17,c(Q1048835)), (Q7057241,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q1378300
relation P17
action find
entity Q7057241
relation P17
type Q1048835
[ANSWERS] are St. Maria unter dem Kreuz or North West Cornice situated in
{'OR': [['Q1378300', 'P17', {'concept': 'Q1048835'}], ['Q7057241', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q1378300 property:P17 ?k } UNION { resource:Q7057241 property:P17 ?k } } . ?k rdf:type ontology:Q1048835 }
Australia Germany
Australia and Germany are St. Maria unter dem Kreuz or North West Cornice situated in
Australia Germany
action filter_type
action union
action find
entity St. Maria unter dem Kreuz
relation country
action find
entity North West Cornice
relation country
type political territorial entity
{'OR': [['St. Maria unter dem Kreuz', 'country', {'concept': 'political territorial entity'}], ['North West Cornice', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:St._Maria_unter_dem_Kreuz property:country ?k } UNION { resource:North_West_Cornice property:country ?k } } . ?k rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6388973 Q7057241
P17
Q1048835
USER
Which political territories do North West Cornice or Kendenup belong to ?
OR((Q7057241,P17,c(Q1048835)), (Q6388973,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q7057241
relation P17
action find
entity Q6388973
relation P17
type Q1048835
{'OR': [['Q7057241', 'P17', {'concept': 'Q1048835'}], ['Q6388973', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q7057241 property:P17 ?y } UNION { resource:Q6388973 property:P17 ?y } } . ?y rdf:type ontology:Q1048835 }
Kendenup North West Cornice
action filter_type
action union
action find
entity North West Cornice
relation country
action find
entity Kendenup
relation country
type political territorial entity
{'OR': [['North West Cornice', 'country', {'concept': 'political territorial entity'}], ['Kendenup', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:North_West_Cornice property:country ?y } UNION { resource:Kendenup property:country ?y } } . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408
SYSTEM
Australia
Q408
OR((Q7057241,P17,c(Q1048835)), (Q6388973,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q7057241
relation P17
action find
entity Q6388973
relation P17
type Q1048835
[ANSWER] North West Cornice or Kendenup belong to
{'OR': [['Q7057241', 'P17', {'concept': 'Q1048835'}], ['Q6388973', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q7057241 property:P17 ?y } UNION { resource:Q6388973 property:P17 ?y } } . ?y rdf:type ontology:Q1048835 }
Australia
Australia North West Cornice or Kendenup belong to
Australia
action filter_type
action union
action find
entity North West Cornice
relation country
action find
entity Kendenup
relation country
type political territorial entity
{'OR': [['North West Cornice', 'country', {'concept': 'political territorial entity'}], ['Kendenup', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:North_West_Cornice property:country ?y } UNION { resource:Kendenup property:country ?y } } . ?y rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q408 Q7648452
P27
Q502895
USER
Is Susan Tegg a citizen of that political territory ?
(Q7648452,P27,Q408)
action is_in
entity Q408
action find
entity Q7648452
relation P27
['Q7648452', 'P27', 'Q408']
ASK WHERE { resource:Q7648452 property:P27 resource:Q408 }
Australia Susan Tegg
action is_in
entity Australia
action find
entity Susan Tegg
relation country of citizenship
['Susan Tegg', 'country of citizenship', 'Australia']
ASK WHERE { resource:Susan_Tegg property:country_of_citizenship resource:Australia }
[]
common name
SYSTEM
YES
(Q7648452,P27,Q408)
action is_in
entity Q408
action find
entity Q7648452
relation P27
[ANSWER]
['Q7648452', 'P27', 'Q408']
ASK WHERE { resource:Q7648452 property:P27 resource:Q408 }
Yes
action is_in
entity Australia
action find
entity Susan Tegg
relation country of citizenship
['Susan Tegg', 'country of citizenship', 'Australia']
ASK WHERE { resource:Susan_Tegg property:country_of_citizenship resource:Australia }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have a diplomatic relationship with min number of political territories ?
(c(Q1048835),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q766']
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?d ) { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?j ) WHERE { ?u property:P530 ?b . ?b rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q1048835 } GROUP BY ?u } } . { SELECT DISTINCT ?o ( COUNT ( ?k ) AS ?n ) WHERE { ?o property:P530 ?k . ?o rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q1048835 } GROUP BY ?o } . FILTER ( ?n = ?d ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?d ) { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?j ) WHERE { ?u property:diplomatic_relation ?b . ?b rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:political_territorial_entity } GROUP BY ?u } } . { SELECT DISTINCT ?o ( COUNT ( ?k ) AS ?n ) WHERE { ?o property:diplomatic_relation ?k . ?o rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:political_territorial_entity } GROUP BY ?o } . FILTER ( ?n = ?d ) }
[]
political territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691 Q766
(c(Q1048835),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[ANSWERS] have a diplomatic relationship with min number of political territories
[{'concept': 'Q1048835'}, 'P530', 'Q766']
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?d ) { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?j ) WHERE { ?u property:P530 ?b . ?b rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q1048835 } GROUP BY ?u } } . { SELECT DISTINCT ?o ( COUNT ( ?k ) AS ?n ) WHERE { ?o property:P530 ?k . ?o rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q1048835 } GROUP BY ?o } . FILTER ( ?n = ?d ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
Gabon, Grenada and Papua New Guinea have a diplomatic relationship with min number of political territories
Gabon Grenada Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?d ) { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?j ) WHERE { ?u property:diplomatic_relation ?b . ?b rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:political_territorial_entity } GROUP BY ?u } } . { SELECT DISTINCT ?o ( COUNT ( ?k ) AS ?n ) WHERE { ?o property:diplomatic_relation ?k . ?o rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:political_territorial_entity } GROUP BY ?o } . FILTER ( ?n = ?d ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q408
P530
Q15617994
USER
How many administrative territories holds diplomatic relationship with Australia ?
(Q408,P530,c(Q15617994))
action count
action filter_type
action find
entity Q408
relation P530
type Q15617994
['Q408', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { resource:Q408 property:P530 ?t . ?t rdf:type ontology:Q15617994 }
Australia
action count
action filter_type
action find
entity Australia
relation diplomatic relation
type designation for an administrative territorial entity
['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { resource:Australia property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
106
Q702 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q786 Q924 Q833 Q711 Q836 Q837 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q796 Q794 Q954 Q889 Q884 Q881 Q822 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 Q916 Q712 Q977 Q1009 Q683 Q686 Q574 Q79 Q77 Q878 Q774 Q817 Q810 Q811 Q678 Q33788 Q869 Q953
(Q408,P530,c(Q15617994))
action count
action filter_type
action find
entity Q408
relation P530
type Q15617994
[ANSWER]
['Q408', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { resource:Q408 property:P530 ?t . ?t rdf:type ontology:Q15617994 }
Federated States of Micronesia Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Dominican Republic Tanzania Malaysia Mongolia Myanmar Nepal Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil El Salvador Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Lebanon 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 Angola Fiji Djibouti Cameroon Samoa Vanuatu East Timor Egypt Uruguay United Arab Emirates Guatemala Kuwait Jordan Nicaragua Tonga New Caledonia Thailand Zambia
106
action count
action filter_type
action find
entity Australia
relation diplomatic relation
type designation for an administrative territorial entity
['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { resource:Australia property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q38
P530
Q15617994
USER
And also tell me about Italy?
(Q38,P530,c(Q15617994))
action count
action filter_type
action find
entity Q38
relation P530
type Q15617994
['Q38', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { resource:Q38 property:P530 ?n . ?n rdf:type ontology:Q15617994 }
Italy
action count
action filter_type
action find
entity Italy
relation diplomatic relation
type designation for an administrative territorial entity
['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { resource:Italy property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
74
Q739 Q805 Q801 Q189 Q843 Q928 Q184 Q822 Q419 Q668 Q347 Q414 Q142 Q225 Q224 Q55 Q222 Q221 Q145 Q148 Q96 Q17 Q229 Q228 Q33 Q32 Q31 Q37 Q36 Q34 Q77 Q39 Q1016 Q227 Q215 Q79 Q191 Q733 Q948 Q869 Q298 Q45 Q252 Q30 Q399 Q403 Q230 Q233 Q258 Q43 Q212 Q213 Q236 Q211 Q159 Q217 Q214 Q41 Q155 Q218 Q219 Q238 Q796 Q794 Q20 Q1045 Q889 Q27 Q28 Q29 Q884 Q423 Q881 Q114
(Q38,P530,c(Q15617994))
action count
action filter_type
action find
entity Q38
relation P530
type Q15617994
[ANSWER]
['Q38', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { resource:Q38 property:P530 ?n . ?n rdf:type ontology:Q15617994 }
Colombia Yemen Israel Iceland Pakistan Philippines Belarus Lebanon Peru India Liechtenstein Argentina France Bosnia and Herzegovina Croatia Netherlands Albania Republic of Macedonia United Kingdom People's Republic of China Mexico Japan Cyprus Andorra Finland Luxembourg Belgium Lithuania Poland Sweden Uruguay Switzerland Libya Azerbaijan Slovenia Egypt Estonia Paraguay Tunisia Thailand Chile Portugal Indonesia United States of America Armenia Serbia Georgia Malta South Africa Turkey Ukraine Czech Republic Montenegro Latvia Russia Republic of Moldova Slovakia Greece Brazil Romania Bulgaria San Marino Iraq Iran Norway Somalia Afghanistan Ireland Hungary Spain South Korea North Korea Vietnam Kenya
74
action count
action filter_type
action find
entity Italy
relation diplomatic relation
type designation for an administrative territorial entity
['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { resource:Italy property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q230
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 ( ?g ) AS ?d ) WHERE { resource:Q230 property:P530 ?g . ?g 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 ( ?g ) AS ?d ) WHERE { resource:Georgia property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
80
(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 ( ?g ) AS ?d ) WHERE { resource:Q230 property:P530 ?g . ?g rdf:type ontology:Q15617994 }
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 ( ?g ) AS ?d ) WHERE { resource:Georgia property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have ambassadorial relations with max number of political territories ?
(c(Q1048835),P530,c(Q1048835))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?p ) { SELECT DISTINCT ?f ( COUNT ( ?q ) AS ?k ) WHERE { ?f property:P530 ?q . ?f rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q1048835 } GROUP BY ?f } } . { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?n ) WHERE { ?r property:P530 ?t . ?r rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q1048835 } GROUP BY ?r } . FILTER ( ?n = ?p ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?p ) { SELECT DISTINCT ?f ( COUNT ( ?q ) AS ?k ) WHERE { ?f property:diplomatic_relation ?q . ?f rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?f } } . { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?n ) WHERE { ?r property:diplomatic_relation ?t . ?r rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?r } . FILTER ( ?n = ?p ) }
[]
political territorial entity political territorial entity
Q408
SYSTEM
Australia
Q408
(c(Q1048835),P530,c(Q1048835))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
To [ANSWER] have ambassadorial relations with max number of political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?p ) { SELECT DISTINCT ?f ( COUNT ( ?q ) AS ?k ) WHERE { ?f property:P530 ?q . ?f rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q1048835 } GROUP BY ?f } } . { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?n ) WHERE { ?r property:P530 ?t . ?r rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q1048835 } GROUP BY ?r } . FILTER ( ?n = ?p ) }
Australia
To Australia have ambassadorial relations with max number of political territories
Australia
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?p ) { SELECT DISTINCT ?f ( COUNT ( ?q ) AS ?k ) WHERE { ?f property:diplomatic_relation ?q . ?f rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?f } } . { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?n ) WHERE { ?r property:diplomatic_relation ?t . ?r rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?r } . FILTER ( ?n = ?p ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q408 Q96
P530
Q15617994
USER
Does Mexico have diplomatic associations with that political territory ?
(Q96,P530,Q408)
action is_in
entity Q96
action find
entity Q408
relation P530
['Q96', 'P530', 'Q408']
ASK WHERE { resource:Q408 property:P530 resource:Q96 }
Australia Mexico
action is_in
entity Mexico
action find
entity Australia
relation diplomatic relation
['Mexico', 'diplomatic relation', 'Australia']
ASK WHERE { resource:Australia property:diplomatic_relation resource:Mexico }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q96,P530,Q408)
action is_in
entity Q96
action find
entity Q408
relation P530
[ANSWER]
['Q96', 'P530', 'Q408']
ASK WHERE { resource:Q408 property:P530 resource:Q96 }
Yes
action is_in
entity Mexico
action find
entity Australia
relation diplomatic relation
['Mexico', 'diplomatic relation', 'Australia']
ASK WHERE { resource:Australia property:diplomatic_relation resource:Mexico }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q183 Q270536
P530
Q15617994
USER
Does Boissano have diplomatic relationships with Germany ?
(Q183,P530,Q270536)
action is_in
entity Q270536
action find
entity Q183
relation P530
['Q183', 'P530', 'Q270536']
ASK WHERE { resource:Q183 property:P530 resource:Q270536 }
Germany Boissano
action is_in
entity Boissano
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Boissano']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Boissano }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q183,P530,Q270536)
action is_in
entity Q270536
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q270536']
ASK WHERE { resource:Q183 property:P530 resource:Q270536 }
No
action is_in
entity Boissano
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Boissano']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Boissano }
[]