Simple Question (Direct)
Simple Question
Q377335
P69
Q1055028
USER
Which college of the University of Cambridge was James Douglas, 14th Earl of Morton educated at ?
(Q377335,P69,c(Q1055028))
action filter_type
action find
entity Q377335
relation P69
type Q1055028
['Q377335', 'P69', {'concept': 'Q1055028'}]
SELECT DISTINCT ?u WHERE { resource:Q377335 property:P69 ?u . ?u rdf:type ontology:Q1055028 }
James Douglas, 14th Earl of Morton
action filter_type
action find
entity James Douglas, 14th Earl of Morton
relation educated at
type college of the University of Cambridge
['James Douglas, 14th Earl of Morton', 'educated at', {'concept': 'college of the University of Cambridge'}]
SELECT DISTINCT ?u WHERE { resource:James_Douglas,_14th_Earl_of_Morton property:educated_at ?u . ?u rdf:type ontology:college_of_the_University_of_Cambridge }
[]
college of the University of Cambridge
Q924289
SYSTEM
King's College
Q924289
(Q377335,P69,c(Q1055028))
action filter_type
action find
entity Q377335
relation P69
type Q1055028
[ANSWER] was James Douglas, 14th Earl of Morton educated at
['Q377335', 'P69', {'concept': 'Q1055028'}]
SELECT DISTINCT ?u WHERE { resource:Q377335 property:P69 ?u . ?u rdf:type ontology:Q1055028 }
King's College
King's College was James Douglas, 14th Earl of Morton educated at
King's College
action filter_type
action find
entity James Douglas, 14th Earl of Morton
relation educated at
type college of the University of Cambridge
['James Douglas, 14th Earl of Morton', 'educated at', {'concept': 'college of the University of Cambridge'}]
SELECT DISTINCT ?u WHERE { resource:James_Douglas,_14th_Earl_of_Morton property:educated_at ?u . ?u rdf:type ontology:college_of_the_University_of_Cambridge }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q924289
P17
Q15617994
USER
Which administrative territory is that college of the University of Cambridge situated in ?
(Q924289,P17,c(Q15617994))
action filter_type
action find
entity Q924289
relation P17
type Q15617994
['Q924289', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q924289 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
King's College
action filter_type
action find
entity King's College
relation country
type designation for an administrative territorial entity
["King's College", 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:King's_College property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q924289,P17,c(Q15617994))
action filter_type
action find
entity Q924289
relation P17
type Q15617994
That college of the University of Cambridge is situated in [ANSWER]
['Q924289', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q924289 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
United Kingdom
That college of the University of Cambridge is situated in United Kingdom
United Kingdom
action filter_type
action find
entity King's College
relation country
type designation for an administrative territorial entity
["King's College", 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:King's_College property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q145
P47
Q15617994
USER
Which administrative territories are bordered by that one ?
(Q145,P47,c(Q15617994))
action filter_type
action find
entity Q145
relation P47
type Q15617994
['Q145', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q145 property:P47 ?y . ?y rdf:type ontology:Q15617994 }
United Kingdom
action filter_type
action find
entity United Kingdom
relation shares border with
type designation for an administrative territorial entity
['United Kingdom', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:United_Kingdom property:shares_border_with ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q717 Q27
SYSTEM
France, Venezuela, Ireland
Q142 Q717 Q27
(Q145,P47,c(Q15617994))
action filter_type
action find
entity Q145
relation P47
type Q15617994
[ANSWERS] are bordered by that one
['Q145', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q145 property:P47 ?y . ?y rdf:type ontology:Q15617994 }
France Venezuela Ireland
France, Venezuela and Ireland are bordered by that one
France Venezuela Ireland
action filter_type
action find
entity United Kingdom
relation shares border with
type designation for an administrative territorial entity
['United Kingdom', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:United_Kingdom property:shares_border_with ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q52202 Q145
P47
Q15617994
USER
Or Supersano?
OR((Q145,P47,c(Q15617994)), (Q52202,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q145
relation P47
action find
entity Q52202
relation P47
type Q15617994
{'OR': [['Q145', 'P47', {'concept': 'Q15617994'}], ['Q52202', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . { { resource:Q145 property:P47 ?x } UNION { resource:Q52202 property:P47 ?x } } }
Supersano United Kingdom
action filter_type
action union
action find
entity United Kingdom
relation shares border with
action find
entity Supersano
relation shares border with
type designation for an administrative territorial entity
{'OR': [['United Kingdom', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Supersano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:United_Kingdom property:shares_border_with ?x } UNION { resource:Supersano property:shares_border_with ?x } } }
[]
designation for an administrative territorial entity
Q142 Q52186 Q52194 Q27 Q52117 Q52164 Q52137 Q52132 Q52125 Q52171
SYSTEM
Some of them are France, San Cassiano, Scorrano, Ireland, Botrugno, Montesano Salentino, Cutrofiano, Collepasso, Casarano, Nociglia
Q142 Q717 Q52186 Q27 Q52194 Q52125 Q52137 Q52132 Q52182 Q52117 Q52171 Q52164
OR((Q145,P47,c(Q15617994)), (Q52202,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q145
relation P47
action find
entity Q52202
relation P47
type Q15617994
[ANSWERS]
{'OR': [['Q145', 'P47', {'concept': 'Q15617994'}], ['Q52202', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . { { resource:Q145 property:P47 ?x } UNION { resource:Q52202 property:P47 ?x } } }
France Venezuela San Cassiano Ireland Scorrano Casarano Cutrofiano Collepasso Ruffano Botrugno Nociglia Montesano Salentino
France San Cassiano Scorrano Ireland Botrugno Montesano Salentino Cutrofiano Collepasso Casarano Nociglia
action filter_type
action union
action find
entity United Kingdom
relation shares border with
action find
entity Supersano
relation shares border with
type designation for an administrative territorial entity
{'OR': [['United Kingdom', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Supersano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:United_Kingdom property:shares_border_with ?x } UNION { resource:Supersano property:shares_border_with ?x } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q114
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relations with lesser number of administrative territories than Kenya ?
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q114
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?j ) AS ?p ) WHERE { ?j property:P530 ?y . ?y rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15617994 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { resource:Q114 property:P530 ?k . ?k rdf:type ontology:Q15617994 } } . FILTER ( ?p < ?f ) }
Kenya
action count
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Kenya
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?j ) AS ?p ) WHERE { ?j property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { resource:Kenya property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?p < ?f ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
103
Q702 Q804 Q800 Q419 Q55 Q783 Q784 Q265 Q712 Q710 Q717 Q837 Q398 Q657 Q792 Q790 Q958 Q986 Q242 Q244 Q811 Q33 Q924 Q929 Q983 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q28 Q921 Q1027 Q1020 Q189 Q842 Q184 Q1029 Q1028 Q736 Q786 Q225 Q221 Q96 Q229 Q902 Q1036 Q1037 Q1032 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q695 Q117 Q754 Q750 Q217 Q214 Q218 Q219 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q77 Q858 Q878 Q774 Q948 Q817 Q1019 Q945 Q678 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q114
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?j ) AS ?p ) WHERE { ?j property:P530 ?y . ?y rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15617994 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { resource:Q114 property:P530 ?k . ?k rdf:type ontology:Q15617994 } } . FILTER ( ?p < ?f ) }
Federated States of Micronesia Panama Costa Rica Peru Netherlands Honduras Dominica Uzbekistan Fiji Kiribati Venezuela Nepal Bahrain Chad El Salvador Haiti South Sudan Eritrea Belize Barbados Nicaragua Finland Tanzania Central African Republic Equatorial Guinea Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Hungary Brunei Mauritius Malawi Iceland Oman Belarus Mozambique Morocco Ecuador Dominican Republic Bosnia and Herzegovina Republic of Macedonia Mexico Cyprus Bangladesh Uganda Rwanda Niger Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Palau Ghana Trinidad and Tobago Bolivia Republic of Moldova Slovakia Romania Bulgaria Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Madagascar Togo Tonga New Caledonia Thailand
103
action count
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Kenya
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?j ) AS ?p ) WHERE { ?j property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { resource:Kenya property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?p < ?f ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q252
P530
Q15617994 Q15617994
USER
And how about Indonesia?
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q252
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?s ) WHERE { ?c rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 . ?e property:P530 ?c } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { ?i property:P530 resource:Q252 . ?i rdf:type ontology:Q15617994 } } . FILTER ( ?s < ?b ) }
Indonesia
action count
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find_reverse
entity Indonesia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?s ) WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e property:diplomatic_relation ?c } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { ?i property:diplomatic_relation resource:Indonesia . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?s < ?b ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
132
Q702 Q804 Q800 Q419 Q55 Q262 Q783 Q784 Q265 Q712 Q710 Q717 Q837 Q398 Q657 Q45 Q792 Q790 Q954 Q889 Q884 Q958 Q881 Q986 Q242 Q244 Q811 Q33 Q32 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q221 Q96 Q229 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q252
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?s ) WHERE { ?c rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 . ?e property:P530 ?c } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { ?i property:P530 resource:Q252 . ?i rdf:type ontology:Q15617994 } } . FILTER ( ?s < ?b ) }
Federated States of Micronesia Panama Costa Rica Peru Netherlands Algeria Honduras Dominica Uzbekistan Fiji Kiribati Venezuela Nepal Bahrain Chad Portugal El Salvador Haiti Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Belize Barbados Nicaragua Finland Luxembourg Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Republic of Macedonia Mexico Cyprus Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Togo Tonga Spain New Caledonia Thailand
132
action count
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find_reverse
entity Indonesia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?s ) WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e property:diplomatic_relation ?c } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { ?i property:diplomatic_relation resource:Indonesia . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?s < ?b ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic associations with max number of administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?q ) { SELECT DISTINCT ?l ( COUNT ( ?p ) AS ?w ) WHERE { ?l rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15617994 . ?l property:P530 ?p } GROUP BY ?l } } . { SELECT DISTINCT ?j ( COUNT ( ?h ) AS ?i ) WHERE { ?j rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 . ?j property:P530 ?h } GROUP BY ?j } . FILTER ( ?i = ?q ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?q ) { SELECT DISTINCT ?l ( COUNT ( ?p ) AS ?w ) WHERE { ?l rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l property:diplomatic_relation ?p } GROUP BY ?l } } . { SELECT DISTINCT ?j ( COUNT ( ?h ) AS ?i ) WHERE { ?j rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j property:diplomatic_relation ?h } GROUP BY ?j } . FILTER ( ?i = ?q ) }
[]
designation for an administrative territorial entity political territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q1048835),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWER] have diplomatic associations with max number of administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?q ) { SELECT DISTINCT ?l ( COUNT ( ?p ) AS ?w ) WHERE { ?l rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15617994 . ?l property:P530 ?p } GROUP BY ?l } } . { SELECT DISTINCT ?j ( COUNT ( ?h ) AS ?i ) WHERE { ?j rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 . ?j property:P530 ?h } GROUP BY ?j } . FILTER ( ?i = ?q ) }
Germany
Germany have diplomatic associations with max number of administrative territories
Germany
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?q ) { SELECT DISTINCT ?l ( COUNT ( ?p ) AS ?w ) WHERE { ?l rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l property:diplomatic_relation ?p } GROUP BY ?l } } . { SELECT DISTINCT ?j ( COUNT ( ?h ) AS ?i ) WHERE { ?j rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j property:diplomatic_relation ?h } GROUP BY ?j } . FILTER ( ?i = ?q ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q183 Q11586969
P27
Q502895
USER
Is Sae Ishida a citizen of that political territory ?
(Q11586969,P27,Q183)
action is_in
entity Q11586969
action find
entity Q183
relation P27
['Q11586969', 'P27', 'Q183']
ASK WHERE { resource:Q183 property:P27 resource:Q11586969 }
Germany Sae Ishida
action is_in
entity Sae Ishida
action find
entity Germany
relation country of citizenship
['Sae Ishida', 'country of citizenship', 'Germany']
ASK WHERE { resource:Germany property:country_of_citizenship resource:Sae_Ishida }
[]
common name
SYSTEM
NO
(Q11586969,P27,Q183)
action is_in
entity Q11586969
action find
entity Q183
relation P27
[ANSWER]
['Q11586969', 'P27', 'Q183']
ASK WHERE { resource:Q183 property:P27 resource:Q11586969 }
No
action is_in
entity Sae Ishida
action find
entity Germany
relation country of citizenship
['Sae Ishida', 'country of citizenship', 'Germany']
ASK WHERE { resource:Germany property:country_of_citizenship resource:Sae_Ishida }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q52194 Q38 Q149621
P17
Q15617994
USER
Is Scorrano situated in Italy and district ?
(Q52194,P17,Q38) (Q52194,P17,Q149621)
action is_in
entity Q52194
action intersection
action find_reverse
entity Q38
relation P17
action find_reverse
entity Q149621
relation P17
['Q52194', 'P17', 'Q38'] ['Q52194', 'P17', 'Q149621']
ASK WHERE { resource:Q52194 property:P17 resource:Q38 . resource:Q52194 property:P17 resource:Q149621 }
Scorrano Italy district
action is_in
entity Scorrano
action intersection
action find_reverse
entity Italy
relation country
action find_reverse
entity district
relation country
['Scorrano', 'country', 'Italy'] ['Scorrano', 'country', 'district']
ASK WHERE { resource:Scorrano property:country resource:Italy . resource:Scorrano property:country resource:district }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q52194,P17,Q38) (Q52194,P17,Q149621)
action is_in
entity Q52194
action intersection
action find_reverse
entity Q38
relation P17
action find_reverse
entity Q149621
relation P17
[ANSWER]
['Q52194', 'P17', 'Q38'] ['Q52194', 'P17', 'Q149621']
ASK WHERE { resource:Q52194 property:P17 resource:Q38 . resource:Q52194 property:P17 resource:Q149621 }
YES and NO respectively
action is_in
entity Scorrano
action intersection
action find_reverse
entity Italy
relation country
action find_reverse
entity district
relation country
['Scorrano', 'country', 'Italy'] ['Scorrano', 'country', 'district']
ASK WHERE { resource:Scorrano property:country resource:Italy . resource:Scorrano property:country resource:district }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q85541 Q142
P47 P27
Q1048835
USER
Which political territories are bordered by France and are Hubert Petschnigg a civilian of ?
AND((Q142,P47,c(Q1048835)), (Q85541,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q142
relation P47
action find
entity Q85541
relation P27
type Q1048835
{'AND': [['Q142', 'P47', {'concept': 'Q1048835'}], ['Q85541', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q1048835 . resource:Q142 property:P47 ?j . resource:Q85541 property:P27 ?j }
Hubert Petschnigg France
action filter_type
action intersection
action find
entity France
relation shares border with
action find
entity Hubert Petschnigg
relation country of citizenship
type political territorial entity
{'AND': [['France', 'shares border with', {'concept': 'political territorial entity'}], ['Hubert Petschnigg', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:political_territorial_entity . resource:France property:shares_border_with ?j . resource:Hubert_Petschnigg property:country_of_citizenship ?j }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
AND((Q142,P47,c(Q1048835)), (Q85541,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q142
relation P47
action find
entity Q85541
relation P27
type Q1048835
[ANSWER] is bordered by France and is Hubert Petschnigg a civilian of
{'AND': [['Q142', 'P47', {'concept': 'Q1048835'}], ['Q85541', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q1048835 . resource:Q142 property:P47 ?j . resource:Q85541 property:P27 ?j }
Germany
Germany is bordered by France and is Hubert Petschnigg a civilian of
Germany
action filter_type
action intersection
action find
entity France
relation shares border with
action find
entity Hubert Petschnigg
relation country of citizenship
type political territorial entity
{'AND': [['France', 'shares border with', {'concept': 'political territorial entity'}], ['Hubert Petschnigg', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:political_territorial_entity . resource:France property:shares_border_with ?j . resource:Hubert_Petschnigg property:country_of_citizenship ?j }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P610
Q14524493
USER
Which is the highest peak of that political territory ?
(Q183,P610,c(Q14524493))
action filter_type
action find
entity Q183
relation P610
type Q14524493
['Q183', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?z WHERE { resource:Q183 property:P610 ?z . ?z rdf:type ontology:Q14524493 }
Germany
action filter_type
action find
entity Germany
relation highest point
type terrain
['Germany', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?z WHERE { resource:Germany property:highest_point ?z . ?z rdf:type ontology:terrain }
[]
terrain
Q3375
SYSTEM
Zugspitze
Q3375
(Q183,P610,c(Q14524493))
action filter_type
action find
entity Q183
relation P610
type Q14524493
The highest peak of that political territory is the [ANSWER]
['Q183', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?z WHERE { resource:Q183 property:P610 ?z . ?z rdf:type ontology:Q14524493 }
Zugspitze
The highest peak of that political territory is the Zugspitze
Zugspitze
action filter_type
action find
entity Germany
relation highest point
type terrain
['Germany', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?z WHERE { resource:Germany property:highest_point ?z . ?z rdf:type ontology:terrain }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P793
Q820655
USER
Which significant events are that political territory associated with ?
(Q3375,P793,c(Q820655))
action filter_type
action find
entity Q183
relation P793
type Q820655
['Q3375', 'P793', {'concept': 'Q820655'}]
SELECT DISTINCT ?a WHERE { resource:Q183 property:P793 ?a . ?a rdf:type ontology:Q820655 }
Germany
action filter_type
action find
entity Germany
relation significant event
type statute
['Zugspitze', 'significant event', {'concept': 'statute'}]
SELECT DISTINCT ?a WHERE { resource:Germany property:significant_event ?a . ?a rdf:type ontology:statute }
[]
statute
Q672112 Q274811 Q2307326
SYSTEM
Basic Treaty, Élysée Treaty, Treaty of Rome
Q672112 Q274811 Q2307326
(Q3375,P793,c(Q820655))
action filter_type
action find
entity Q183
relation P793
type Q820655
That political territory are associated with [ANSWERS]
['Q3375', 'P793', {'concept': 'Q820655'}]
SELECT DISTINCT ?a WHERE { resource:Q183 property:P793 ?a . ?a rdf:type ontology:Q820655 }
Basic Treaty Élysée Treaty Treaty of Rome
That political territory are associated with Basic Treaty, Élysée Treaty and Treaty of Rome
Basic Treaty Élysée Treaty Treaty of Rome
action filter_type
action find
entity Germany
relation significant event
type statute
['Zugspitze', 'significant event', {'concept': 'statute'}]
SELECT DISTINCT ?a WHERE { resource:Germany property:significant_event ?a . ?a rdf:type ontology:statute }
[]