Simple Question (Direct)
Simple Question
Q7788208
P69
Q3918
USER
Where was Thomas Cane educated ?
(Q7788208,P69,c(Q3918))
action filter_type
action find
entity Q7788208
relation P69
type Q3918
['Q7788208', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?l WHERE { resource:Q7788208 property:P69 ?l . ?l rdf:type ontology:Q3918 }
Thomas Cane
action filter_type
action find
entity Thomas Cane
relation educated at
type university
['Thomas Cane', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?l WHERE { resource:Thomas_Cane property:educated_at ?l . ?l rdf:type ontology:university }
[]
university
Q6772633
SYSTEM
Marquette University Law School
Q6772633
(Q7788208,P69,c(Q3918))
action filter_type
action find
entity Q7788208
relation P69
type Q3918
Thomas Cane was educated [ANSWER]
['Q7788208', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?l WHERE { resource:Q7788208 property:P69 ?l . ?l rdf:type ontology:Q3918 }
Marquette University Law School
Thomas Cane was educated Marquette University Law School
Marquette University Law School
action filter_type
action find
entity Thomas Cane
relation educated at
type university
['Thomas Cane', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?l WHERE { resource:Thomas_Cane property:educated_at ?l . ?l rdf:type ontology:university }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7788208
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Thomas Cane ?
(Q7788208,P27,c(Q15617994))
action filter_type
action find
entity Q7788208
relation P27
type Q15617994
['Q7788208', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q7788208 property:P27 ?r . ?r rdf:type ontology:Q15617994 }
Thomas Cane
action filter_type
action find
entity Thomas Cane
relation country of citizenship
type designation for an administrative territorial entity
['Thomas Cane', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Thomas_Cane property:country_of_citizenship ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q7788208,P27,c(Q15617994))
action filter_type
action find
entity Q7788208
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Thomas Cane
['Q7788208', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q7788208 property:P27 ?r . ?r rdf:type ontology:Q15617994 }
United States of America
United States of America is the country of citizenship of Thomas Cane
United States of America
action filter_type
action find
entity Thomas Cane
relation country of citizenship
type designation for an administrative territorial entity
['Thomas Cane', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Thomas_Cane property:country_of_citizenship ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q11669050
Q15617994
USER
And also tell me about Shuto Takajo?
(Q11669050,P27,c(Q15617994))
action filter_type
action find
entity Q11669050
relation P27
type Q15617994
['Q11669050', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q11669050 property:P27 ?q }
Shuto Takajo
action filter_type
action find
entity Shuto Takajo
relation country of citizenship
type designation for an administrative territorial entity
['Shuto Takajo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Shuto_Takajo property:country_of_citizenship ?q }
[]
designation for an administrative territorial entity
Q17
SYSTEM
Japan
Q17
(Q11669050,P27,c(Q15617994))
action filter_type
action find
entity Q11669050
relation P27
type Q15617994
[ANSWER]
['Q11669050', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q11669050 property:P27 ?q }
Japan
Japan
action filter_type
action find
entity Shuto Takajo
relation country of citizenship
type designation for an administrative territorial entity
['Shuto Takajo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Shuto_Takajo property:country_of_citizenship ?q }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P530
Q1048835 Q15617994 Q15617994
USER
Which administrative territories have diplomatic associations with min number of political territories or administrative territories ?
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action argmin
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?l ) WHERE { { ?b property:P530 ?o . ?o rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 } UNION { ?b rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 . ?b property:P530 ?o } } GROUP BY ?b } . FILTER ( ?l = ?p ) . { SELECT DISTINCT ( MIN ( ?f ) AS ?p ) { SELECT DISTINCT ?c ( COUNT ( ?h ) AS ?f ) WHERE { { ?c property:P530 ?h . ?c rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q1048835 } UNION { ?c property:P530 ?h . ?c rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 } } GROUP BY ?c } } }
action argmin
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?l ) WHERE { { ?b property:diplomatic_relation ?o . ?o rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:diplomatic_relation ?o } } GROUP BY ?b } . FILTER ( ?l = ?p ) . { SELECT DISTINCT ( MIN ( ?f ) AS ?p ) { SELECT DISTINCT ?c ( COUNT ( ?h ) AS ?f ) WHERE { { ?c property:diplomatic_relation ?h . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:political_territorial_entity } UNION { ?c property:diplomatic_relation ?h . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?c } } }
[]
political territorial entity designation for an administrative territorial entity designation for an administrative territorial entity
Q842 Q29999 Q262
SYSTEM
Oman, Kingdom of the Netherlands, Algeria
Q702 Q262 Q265 Q712 Q837 Q398 Q657 Q792 Q790 Q986 Q242 Q29999 Q854 Q819 Q424 Q730 Q236 Q232 Q921 Q1027 Q1020 Q842 Q1037 Q974 Q1032 Q965 Q967 Q697 Q695 Q754 Q912 Q1007 Q1006 Q1005 Q1008 Q971 Q683 Q686 Q836 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action argmin
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWERS] have diplomatic associations with min number of political territories or administrative territories
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?l ) WHERE { { ?b property:P530 ?o . ?o rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 } UNION { ?b rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 . ?b property:P530 ?o } } GROUP BY ?b } . FILTER ( ?l = ?p ) . { SELECT DISTINCT ( MIN ( ?f ) AS ?p ) { SELECT DISTINCT ?c ( COUNT ( ?h ) AS ?f ) WHERE { { ?c property:P530 ?h . ?c rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q1048835 } UNION { ?c property:P530 ?h . ?c rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 } } GROUP BY ?c } } }
Federated States of Micronesia Algeria Uzbekistan Fiji Nepal Bahrain Chad El Salvador Haiti Eritrea Belize Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Montenegro Kazakhstan Brunei Mauritius Malawi Oman Rwanda Democratic Republic of the Congo Niger Burkina Faso Burundi Nauru Palau Trinidad and Tobago Mali Guinea-Bissau Guinea Gambia Côte d'Ivoire Republic of the Congo Samoa Vanuatu Myanmar Kuwait Madagascar Togo Tonga New Caledonia
Oman, Kingdom of the Netherlands and Algeria have diplomatic associations with min number of political territories or administrative territories
Oman Kingdom of the Netherlands Algeria
action argmin
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?l ) WHERE { { ?b property:diplomatic_relation ?o . ?o rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:diplomatic_relation ?o } } GROUP BY ?b } . FILTER ( ?l = ?p ) . { SELECT DISTINCT ( MIN ( ?f ) AS ?p ) { SELECT DISTINCT ?c ( COUNT ( ?h ) AS ?f ) WHERE { { ?c property:diplomatic_relation ?h . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:political_territorial_entity } UNION { ?c property:diplomatic_relation ?h . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?c } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories are known to have diplomatic connections with min number of administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?q ) { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?u ) WHERE { ?i property:P530 ?v . ?i rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q15617994 } GROUP BY ?i } } . { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?e ) WHERE { ?n property:P530 ?h . ?n rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 } GROUP BY ?n } . FILTER ( ?e = ?q ) }
action argmin
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 ?n WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?q ) { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?u ) WHERE { ?i property:diplomatic_relation ?v . ?i rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } } . { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?e ) WHERE { ?n property:diplomatic_relation ?h . ?n rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } . FILTER ( ?e = ?q ) }
[]
designation for an administrative territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] are known to have diplomatic connections with min number of administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?q ) { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?u ) WHERE { ?i property:P530 ?v . ?i rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q15617994 } GROUP BY ?i } } . { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?e ) WHERE { ?n property:P530 ?h . ?n rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 } GROUP BY ?n } . FILTER ( ?e = ?q ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea
Gabon, Grenada and Papua New Guinea are known to have diplomatic connections with min number of administrative territories
Gabon Grenada Papua New Guinea
action argmin
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 ?n WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?q ) { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?u ) WHERE { ?i property:diplomatic_relation ?v . ?i rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } } . { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?e ) WHERE { ?n property:diplomatic_relation ?h . ?n rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } . FILTER ( ?e = ?q ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q142
P530
Q15617994 Q1048835
USER
Which administrative territories have a diplomatic relationship with lesser number of political territories than France ?
(c(Q1048835),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q142
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?h ) AS ?q ) WHERE { ?h property:P530 ?l . ?h rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q15617994 } GROUP BY ?l } . FILTER ( ?q < ?u ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { ?d rdf:type ontology:Q15617994 . resource:Q142 property:P530 ?d } } }
France
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity France
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?h ) AS ?q ) WHERE { ?h property:diplomatic_relation ?l . ?h rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } . FILTER ( ?q < ?u ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:France property:diplomatic_relation ?d } } }
[]
designation for an administrative territorial entity political territorial entity
Q230 Q55 Q148
SYSTEM
Georgia, Netherlands, People's Republic of China
Q702 Q804 Q800 Q805 Q419 Q668 Q414 Q55 Q262 Q148 Q783 Q784 Q265 Q37 Q712 Q710 Q717 Q837 Q399 Q398 Q657 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q32 Q31 Q924 Q928 Q929 Q983 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q184 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q117 Q754 Q750 Q213 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q858 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q1048835),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q142
relation P530
type Q15617994
[ANSWERS] have a diplomatic relationship with lesser number of political territories than France
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?h ) AS ?q ) WHERE { ?h property:P530 ?l . ?h rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q15617994 } GROUP BY ?l } . FILTER ( ?q < ?u ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { ?d rdf:type ontology:Q15617994 . resource:Q142 property:P530 ?d } } }
Federated States of Micronesia Panama Costa Rica Yemen Peru India Argentina Netherlands Algeria People's Republic of China Honduras Dominica Uzbekistan Lithuania Fiji Kiribati Venezuela Nepal Armenia Bahrain Chad Portugal Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Luxembourg Belgium Tanzania Philippines Central African Republic Equatorial Guinea Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Oman Belarus Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ghana Trinidad and Tobago Bolivia Czech Republic Latvia Republic of Moldova Slovakia Slovenia Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Syria Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
Georgia, Netherlands and People's Republic of China have a diplomatic relationship with lesser number of political territories than France
Georgia Netherlands People's Republic of China
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity France
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?h ) AS ?q ) WHERE { ?h property:diplomatic_relation ?l . ?h rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } . FILTER ( ?q < ?u ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:France property:diplomatic_relation ?d } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q218
P530
Q15617994 Q1048835
USER
And how about Romania?
(c(Q1048835),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q218
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?a ) AS ?w ) WHERE { ?a property:P530 ?g . ?g rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1048835 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) WHERE { resource:Q218 property:P530 ?l . ?l rdf:type ontology:Q15617994 } } . FILTER ( ?w < ?o ) }
Romania
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Romania
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?a ) AS ?w ) WHERE { ?a property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:political_territorial_entity } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) WHERE { resource:Romania property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?w < ?o ) }
[]
designation for an administrative territorial entity political territorial entity
Q230 Q55 Q148
SYSTEM
Georgia, Netherlands, People's Republic of China
Q702 Q804 Q800 Q805 Q419 Q668 Q414 Q55 Q262 Q148 Q783 Q784 Q265 Q37 Q712 Q710 Q717 Q837 Q399 Q398 Q657 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q32 Q31 Q924 Q928 Q929 Q983 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q184 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q117 Q754 Q750 Q213 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q858 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q1048835),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q218
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?a ) AS ?w ) WHERE { ?a property:P530 ?g . ?g rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1048835 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) WHERE { resource:Q218 property:P530 ?l . ?l rdf:type ontology:Q15617994 } } . FILTER ( ?w < ?o ) }
Federated States of Micronesia Panama Costa Rica Yemen Peru India Argentina Netherlands Algeria People's Republic of China Honduras Dominica Uzbekistan Lithuania Fiji Kiribati Venezuela Nepal Armenia Bahrain Chad Portugal Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Luxembourg Belgium Tanzania Philippines Central African Republic Equatorial Guinea Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Oman Belarus Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ghana Trinidad and Tobago Bolivia Czech Republic Latvia Republic of Moldova Slovakia Slovenia Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Syria Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
Georgia Netherlands People's Republic of China
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Romania
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?a ) AS ?w ) WHERE { ?a property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:political_territorial_entity } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) WHERE { resource:Romania property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?w < ?o ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have tactful political relations with atleast 118 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 118
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?u >= 118 ) . { SELECT DISTINCT ?c ( COUNT ( ?a ) AS ?u ) WHERE { ?c property:P530 ?a . ?c rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 } GROUP BY ?c } }
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 118
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?u >= 118 ) . { SELECT DISTINCT ?c ( COUNT ( ?a ) AS ?u ) WHERE { ?c property:diplomatic_relation ?a . ?c rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } }
[]
designation for an administrative territorial entity political territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q1048835),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 118
[ANSWER] have tactful political relations with atleast 118 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?u >= 118 ) . { SELECT DISTINCT ?c ( COUNT ( ?a ) AS ?u ) WHERE { ?c property:P530 ?a . ?c rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 } GROUP BY ?c } }
Germany
Germany have tactful political relations with atleast 118 administrative territories
Germany
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 118
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?u >= 118 ) . { SELECT DISTINCT ?c ( COUNT ( ?a ) AS ?u ) WHERE { ?c property:diplomatic_relation ?a . ?c rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P194
Q11204
USER
Which legislature governs that political territory ?
(Q183,P194,c(Q11204))
action filter_type
action find
entity Q183
relation P194
type Q11204
['Q183', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?f WHERE { resource:Q183 property:P194 ?f . ?f rdf:type ontology:Q11204 }
Germany
action filter_type
action find
entity Germany
relation legislative body
type legislature
['Germany', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?f WHERE { resource:Germany property:legislative_body ?f . ?f rdf:type ontology:legislature }
[]
legislature
Q146138
SYSTEM
Bundesrat
Q146138
(Q183,P194,c(Q11204))
action filter_type
action find
entity Q183
relation P194
type Q11204
The [ANSWER] governs that political territory
['Q183', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?f WHERE { resource:Q183 property:P194 ?f . ?f rdf:type ontology:Q11204 }
Bundesrat
The Bundesrat governs that political territory
Bundesrat
action filter_type
action find
entity Germany
relation legislative body
type legislature
['Germany', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?f WHERE { resource:Germany property:legislative_body ?f . ?f rdf:type ontology:legislature }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q146138
P466
Q811430
USER
What was inhabited by that legislature ?
(c(Q811430),P466,Q146138)
action filter_type
action find_reverse
entity Q146138
relation P466
type Q811430
[{'concept': 'Q811430'}, 'P466', 'Q146138']
SELECT DISTINCT ?f WHERE { ?f property:P466 resource:Q146138 . ?f rdf:type ontology:Q811430 }
Bundesrat
action filter_type
action find_reverse
entity Bundesrat
relation occupant
type construction
[{'concept': 'construction'}, 'occupant', 'Bundesrat']
SELECT DISTINCT ?f WHERE { ?f property:occupant resource:Bundesrat . ?f rdf:type ontology:construction }
[]
construction
Q1006170
SYSTEM
Bundeshaus
Q1006170
(c(Q811430),P466,Q146138)
action filter_type
action find_reverse
entity Q146138
relation P466
type Q811430
The [ANSWER] was inhabited by that legislature
[{'concept': 'Q811430'}, 'P466', 'Q146138']
SELECT DISTINCT ?f WHERE { ?f property:P466 resource:Q146138 . ?f rdf:type ontology:Q811430 }
Bundeshaus
The Bundeshaus was inhabited by that legislature
Bundeshaus
action filter_type
action find_reverse
entity Bundesrat
relation occupant
type construction
[{'concept': 'construction'}, 'occupant', 'Bundesrat']
SELECT DISTINCT ?f WHERE { ?f property:occupant resource:Bundesrat . ?f rdf:type ontology:construction }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P463
Q484652
USER
What international organizations were Germany a member of ?
(Q183,P463,c(Q484652))
action filter_type
action find
entity Q183
relation P463
type Q484652
['Q183', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q484652 . resource:Q183 property:P463 ?w }
Germany
action filter_type
action find
entity Germany
relation member of
type international organization
['Germany', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:international_organization . resource:Germany property:member_of ?w }
[]
international organization
Q81299 Q19771 Q42262
SYSTEM
Organization for Security and Co-operation in Europe, G20, European Space Agency
Q81299 Q789769 Q19771 Q842490 Q1065 Q188822 Q54129 Q37143 Q170424 Q7164 Q201054 Q7804 Q17495 Q566397 Q7184 Q42262 Q1043527
(Q183,P463,c(Q484652))
action filter_type
action find
entity Q183
relation P463
type Q484652
Germany were the [ANSWERS]
['Q183', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q484652 . resource:Q183 property:P463 ?w }
Organization for Security and Co-operation in Europe Council of the Baltic Sea States G20 Organisation for the Prohibition of Chemical Weapons United Nations Asian Development Bank International Labour Organization G8 World Meteorological Organization World Bank International Maritime Organization International Monetary Fund Universal Postal Union Weimar Triangle North Atlantic Treaty Organisation European Space Agency Multilateral Investment Guarantee Agency
Germany were the Organization for Security and Co-operation in Europe, G20 and European Space Agency
Organization for Security and Co-operation in Europe G20 European Space Agency
action filter_type
action find
entity Germany
relation member of
type international organization
['Germany', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:international_organization . resource:Germany property:member_of ?w }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P706
Q2221906
USER
Which geographic location is located in Germany ?
(c(Q2221906),P706,Q183)
action filter_type
action find_reverse
entity Q183
relation P706
type Q2221906
[{'concept': 'Q2221906'}, 'P706', 'Q183']
SELECT DISTINCT ?q WHERE { ?q property:P706 resource:Q183 . ?q rdf:type ontology:Q2221906 }
Germany
action filter_type
action find_reverse
entity Germany
relation located on terrain feature
type geographic location
[{'concept': 'geographic location'}, 'located on terrain feature', 'Germany']
SELECT DISTINCT ?q WHERE { ?q property:located_on_terrain_feature resource:Germany . ?q rdf:type ontology:geographic_location }
[]
geographic location
Q32530
SYSTEM
Lusatia
Q32530
(c(Q2221906),P706,Q183)
action filter_type
action find_reverse
entity Q183
relation P706
type Q2221906
[ANSWER] is located in Germany
[{'concept': 'Q2221906'}, 'P706', 'Q183']
SELECT DISTINCT ?q WHERE { ?q property:P706 resource:Q183 . ?q rdf:type ontology:Q2221906 }
Lusatia
Lusatia is located in Germany
Lusatia
action filter_type
action find_reverse
entity Germany
relation located on terrain feature
type geographic location
[{'concept': 'geographic location'}, 'located on terrain feature', 'Germany']
SELECT DISTINCT ?q WHERE { ?q property:located_on_terrain_feature resource:Germany . ?q rdf:type ontology:geographic_location }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q262
P840
Q838948
USER
Which work of art has its narrative set in Algeria ?
(c(Q838948),P840,Q262)
action filter_type
action find_reverse
entity Q262
relation P840
type Q838948
[{'concept': 'Q838948'}, 'P840', 'Q262']
SELECT DISTINCT ?q WHERE { ?q property:P840 resource:Q262 . ?q rdf:type ontology:Q838948 }
Algeria
action filter_type
action find_reverse
entity Algeria
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Algeria']
SELECT DISTINCT ?q WHERE { ?q property:narrative_location resource:Algeria . ?q rdf:type ontology:work_of_art }
[]
work of art
Q325575
SYSTEM
Sweet November
Q325575
(c(Q838948),P840,Q262)
action filter_type
action find_reverse
entity Q262
relation P840
type Q838948
[ANSWER] has its narrative set in Algeria
[{'concept': 'Q838948'}, 'P840', 'Q262']
SELECT DISTINCT ?q WHERE { ?q property:P840 resource:Q262 . ?q rdf:type ontology:Q838948 }
Sweet November
Sweet November has its narrative set in Algeria
Sweet November
action filter_type
action find_reverse
entity Algeria
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Algeria']
SELECT DISTINCT ?q WHERE { ?q property:narrative_location resource:Algeria . ?q rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q146138
P1001
Q1048835
USER
Which political territory belongs to jurisdiction of Bundesrat ?
(Q146138,P1001,c(Q1048835))
action filter_type
action find
entity Q146138
relation P1001
type Q1048835
['Q146138', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { resource:Q146138 property:P1001 ?q . ?q rdf:type ontology:Q1048835 }
Bundesrat
action filter_type
action find
entity Bundesrat
relation applies to jurisdiction
type political territorial entity
['Bundesrat', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Bundesrat property:applies_to_jurisdiction ?q . ?q rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q146138,P1001,c(Q1048835))
action filter_type
action find
entity Q146138
relation P1001
type Q1048835
[ANSWER] belongs to jurisdiction of Bundesrat
['Q146138', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { resource:Q146138 property:P1001 ?q . ?q rdf:type ontology:Q1048835 }
Germany
Germany belongs to jurisdiction of Bundesrat
Germany
action filter_type
action find
entity Bundesrat
relation applies to jurisdiction
type political territorial entity
['Bundesrat', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Bundesrat property:applies_to_jurisdiction ?q . ?q rdf:type ontology:political_territorial_entity }
[]