Simple Question (Direct)
Simple Question
Q242832
P7
Q502895
USER
Who is Lothair of France a sibling of ?
(Q242832,P7,c(Q502895))
action filter_type
action find
entity Q242832
relation P7
type Q502895
['Q242832', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q242832 property:P7 ?g . ?g rdf:type ontology:Q502895 }
Lothair of France
action filter_type
action find
entity Lothair of France
relation brother
type common name
['Lothair of France', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Lothair_of_France property:brother ?g . ?g rdf:type ontology:common_name }
[]
common name
Q469603
SYSTEM
Charles, Duke of Lower Lorraine
Q469603
(Q242832,P7,c(Q502895))
action filter_type
action find
entity Q242832
relation P7
type Q502895
[ANSWER] is Lothair of France a sibling of
['Q242832', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q242832 property:P7 ?g . ?g rdf:type ontology:Q502895 }
Charles, Duke of Lower Lorraine
Charles, Duke of Lower Lorraine is Lothair of France a sibling of
Charles, Duke of Lower Lorraine
action filter_type
action find
entity Lothair of France
relation brother
type common name
['Lothair of France', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Lothair_of_France property:brother ?g . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q469603
P40
Q502895
USER
Which people have that one as a child ?
(c(Q502895),P40,Q469603)
action filter_type
action find_reverse
entity Q469603
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q469603']
SELECT DISTINCT ?r WHERE { ?r property:P40 resource:Q469603 . ?r rdf:type ontology:Q502895 }
Charles, Duke of Lower Lorraine
action filter_type
action find_reverse
entity Charles, Duke of Lower Lorraine
relation child
type common name
[{'concept': 'common name'}, 'child', 'Charles, Duke of Lower Lorraine']
SELECT DISTINCT ?r WHERE { ?r property:child resource:Charles,_Duke_of_Lower_Lorraine . ?r rdf:type ontology:common_name }
[]
common name
Q168669 Q193658
SYSTEM
Gerberga of Saxony, Louis IV of France
Q168669 Q193658
(c(Q502895),P40,Q469603)
action filter_type
action find_reverse
entity Q469603
relation P40
type Q502895
[ANSWERS] have that one as a child
[{'concept': 'Q502895'}, 'P40', 'Q469603']
SELECT DISTINCT ?r WHERE { ?r property:P40 resource:Q469603 . ?r rdf:type ontology:Q502895 }
Gerberga of Saxony Louis IV of France
Gerberga of Saxony and Louis IV of France have that one as a child
Gerberga of Saxony Louis IV of France
action filter_type
action find_reverse
entity Charles, Duke of Lower Lorraine
relation child
type common name
[{'concept': 'common name'}, 'child', 'Charles, Duke of Lower Lorraine']
SELECT DISTINCT ?r WHERE { ?r property:child resource:Charles,_Duke_of_Lower_Lorraine . ?r rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7463189 Q193658
P27
Q15617994
USER
Which administrative territories are the native countriesof Louis IV of France or Xandria Ooi ?
OR((Q193658,P27,c(Q15617994)), (Q7463189,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q193658
relation P27
action find
entity Q7463189
relation P27
type Q15617994
{'OR': [['Q193658', 'P27', {'concept': 'Q15617994'}], ['Q7463189', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?c ) { ( resource:Q193658 ) ( resource:Q7463189 ) } . ?c property:P27 ?g } . ?g rdf:type ontology:Q15617994 }
Xandria Ooi Louis IV of France
action filter_type
action union
action find
entity Louis IV of France
relation country of citizenship
action find
entity Xandria Ooi
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Louis IV of France', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Xandria Ooi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?c ) { ( resource:Louis_IV_of_France ) ( resource:Xandria_Ooi ) } . ?c property:country_of_citizenship ?g } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q833
SYSTEM
France, Malaysia
Q142 Q833
OR((Q193658,P27,c(Q15617994)), (Q7463189,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q193658
relation P27
action find
entity Q7463189
relation P27
type Q15617994
[ANSWERS] are the native countriesof Louis IV of France or Xandria Ooi
{'OR': [['Q193658', 'P27', {'concept': 'Q15617994'}], ['Q7463189', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?c ) { ( resource:Q193658 ) ( resource:Q7463189 ) } . ?c property:P27 ?g } . ?g rdf:type ontology:Q15617994 }
France Malaysia
France and Malaysia are the native countriesof Louis IV of France or Xandria Ooi
France Malaysia
action filter_type
action union
action find
entity Louis IV of France
relation country of citizenship
action find
entity Xandria Ooi
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Louis IV of France', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Xandria Ooi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?c ) { ( resource:Louis_IV_of_France ) ( resource:Xandria_Ooi ) } . ?c property:country_of_citizenship ?g } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q408
P530
Q1048835
USER
Are Australia known to have diplomatic connections with those administrative territories ?
(Q408,P530,Q142) (Q408,P530,Q833)
action is_in
entity prev_answer
action find
entity Q408
relation P530
['Q408', 'P530', 'Q142'] ['Q408', 'P530', 'Q833']
ASK WHERE { resource:Q408 property:P530 ?m . VALUES ( ?m ) { ( resource:Q142 ) ( resource:Q833 ) } }
Australia
action is_in
entity prev_answer
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'France'] ['Australia', 'diplomatic relation', 'Malaysia']
ASK WHERE { resource:Australia property:diplomatic_relation ?m . VALUES ( ?m ) { ( resource:France ) ( resource:Malaysia ) } }
[]
political territorial entity
SYSTEM
YES
(Q408,P530,Q142) (Q408,P530,Q833)
action is_in
entity prev_answer
action find
entity Q408
relation P530
[ANSWER]
['Q408', 'P530', 'Q142'] ['Q408', 'P530', 'Q833']
ASK WHERE { resource:Q408 property:P530 ?m . VALUES ( ?m ) { ( resource:Q142 ) ( resource:Q833 ) } }
Yes
action is_in
entity prev_answer
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'France'] ['Australia', 'diplomatic relation', 'Malaysia']
ASK WHERE { resource:Australia property:diplomatic_relation ?m . VALUES ( ?m ) { ( resource:France ) ( resource:Malaysia ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q142 Q234728
P1313
Q12737077
USER
How many occupations serve as the political office that are fulfilled by the head of the government of France or Vanves ?
(Q142,P1313,c(Q12737077)) (Q234728,P1313,c(Q12737077))
action count
action union
action filter_type
action find
entity Q142
relation P1313
type Q12737077
action filter_type
action find
entity Q234728
relation P1313
type Q12737077
['Q142', 'P1313', {'concept': 'Q12737077'}] ['Q234728', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { ?b property:P1313 ?d . VALUES ( ?b ) { ( resource:Q142 ) ( resource:Q234728 ) } }
France Vanves
action count
action union
action filter_type
action find
entity France
relation office held by head of government
type occupation
action filter_type
action find
entity Vanves
relation office held by head of government
type occupation
['France', 'office held by head of government', {'concept': 'occupation'}] ['Vanves', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { ?b property:office_held_by_head_of_government ?d . VALUES ( ?b ) { ( resource:France ) ( resource:Vanves ) } }
[]
occupation
SYSTEM
2
Q382617 Q1587677
(Q142,P1313,c(Q12737077)) (Q234728,P1313,c(Q12737077))
action count
action union
action filter_type
action find
entity Q142
relation P1313
type Q12737077
action filter_type
action find
entity Q234728
relation P1313
type Q12737077
[ANSWER]
['Q142', 'P1313', {'concept': 'Q12737077'}] ['Q234728', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { ?b property:P1313 ?d . VALUES ( ?b ) { ( resource:Q142 ) ( resource:Q234728 ) } }
maire Prime Minister of France
2
action count
action union
action filter_type
action find
entity France
relation office held by head of government
type occupation
action filter_type
action find
entity Vanves
relation office held by head of government
type occupation
['France', 'office held by head of government', {'concept': 'occupation'}] ['Vanves', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { ?b property:office_held_by_head_of_government ?d . VALUES ( ?b ) { ( resource:France ) ( resource:Vanves ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q142 Q1037
P463
Q43229
USER
How many organizations were France and Rwanda a member of ?
(Q142,P463,c(Q43229)) (Q1037,P463,c(Q43229))
action count
action intersection
action filter_type
action find
entity Q142
relation P463
type Q43229
action filter_type
action find
entity Q1037
relation P463
type Q43229
['Q142', 'P463', {'concept': 'Q43229'}] ['Q1037', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { ?g rdf:type ontology:Q43229 . resource:Q142 property:P463 ?g . ?g rdf:type ontology:Q43229 . resource:Q1037 property:P463 ?g }
France Rwanda
action count
action intersection
action filter_type
action find
entity France
relation member of
type organization
action filter_type
action find
entity Rwanda
relation member of
type organization
['France', 'member of', {'concept': 'organization'}] ['Rwanda', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { ?g rdf:type ontology:organization . resource:France property:member_of ?g . ?g rdf:type ontology:organization . resource:Rwanda property:member_of ?g }
[]
organization
SYSTEM
6
Q340195 Q191384 Q899770 Q656801 Q7825 Q827525
(Q142,P463,c(Q43229)) (Q1037,P463,c(Q43229))
action count
action intersection
action filter_type
action find
entity Q142
relation P463
type Q43229
action filter_type
action find
entity Q1037
relation P463
type Q43229
[ANSWER]
['Q142', 'P463', {'concept': 'Q43229'}] ['Q1037', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { ?g rdf:type ontology:Q43229 . resource:Q142 property:P463 ?g . ?g rdf:type ontology:Q43229 . resource:Q1037 property:P463 ?g }
African Development Bank International Bank for Reconstruction and Development International Centre for Settlement of Investment Disputes International Finance Corporation World Trade Organization International Development Association
6
action count
action intersection
action filter_type
action find
entity France
relation member of
type organization
action filter_type
action find
entity Rwanda
relation member of
type organization
['France', 'member of', {'concept': 'organization'}] ['Rwanda', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { ?g rdf:type ontology:organization . resource:France property:member_of ?g . ?g rdf:type ontology:organization . resource:Rwanda property:member_of ?g }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q736
P530
Q15617994 Q15617994
USER
How many administrative territories have tactful political relations with greater number of administrative territories than Ecuador ?
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q736
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?g ) AS ?a ) WHERE { ?h property:P530 ?g . ?g rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { resource:Q736 property:P530 ?o . ?o rdf:type ontology:Q15617994 } } . FILTER ( ?a > ?r ) }
Ecuador
action count
action greater
action find_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 Ecuador
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 ( ?h ) AS ?y ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?g ) AS ?a ) WHERE { ?h property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { resource:Ecuador property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?a > ?r ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
66
Q801 Q805 Q419 Q668 Q414 Q142 Q145 Q148 Q37 Q711 Q717 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q889 Q884 Q881 Q822 Q241 Q32 Q31 Q30 Q36 Q34 Q928 Q929 Q39 Q38 Q739 Q423 Q733 Q230 Q27 Q28 Q843 Q184 Q228 Q227 Q225 Q222 Q96 Q347 Q17 Q902 Q298 Q114 Q212 Q213 Q218 Q916 Q79 Q77 Q858 Q948 Q1016 Q1011 Q29 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q736
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?g ) AS ?a ) WHERE { ?h property:P530 ?g . ?g rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { resource:Q736 property:P530 ?o . ?o rdf:type ontology:Q15617994 } } . FILTER ( ?a > ?r ) }
Israel Yemen Peru India Argentina France United Kingdom People's Republic of China Lithuania Mongolia Venezuela Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Afghanistan South Korea Vietnam Lebanon Cuba Luxembourg Belgium United States of America Poland Sweden Philippines Central African Republic Switzerland Italy Colombia North Korea Paraguay Georgia Ireland Hungary Pakistan Belarus Andorra Azerbaijan Bosnia and Herzegovina Albania Mexico Liechtenstein Japan Bangladesh Chile Kenya Ukraine Czech Republic Romania Angola Egypt Uruguay Syria Tunisia Libya Cape Verde Spain Zambia
66
action count
action greater
action find_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 Ecuador
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 ( ?h ) AS ?y ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?g ) AS ?a ) WHERE { ?h property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { resource:Ecuador property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?a > ?r ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q33788
P530
Q15617994 Q15617994
USER
And what about New Caledonia?
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q33788
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?t ) AS ?s ) WHERE { ?g property:P530 ?t . ?g rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?g } . FILTER ( ?s > ?c ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) WHERE { resource:Q33788 property:P530 ?a . ?a rdf:type ontology:Q15617994 } } }
New Caledonia
action count
action greater
action find_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 New Caledonia
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 ( ?g ) AS ?o ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?t ) AS ?s ) WHERE { ?g property:diplomatic_relation ?t . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . FILTER ( ?s > ?c ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) WHERE { resource:New_Caledonia property:diplomatic_relation ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
109
Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q37 Q711 Q717 Q252 Q399 Q398 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q822 Q241 Q244 Q33 Q32 Q31 Q30 Q36 Q34 Q928 Q929 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q734 Q736 Q236 Q230 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q1049 Q189 Q843 Q842 Q184 Q1029 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1033 Q191 Q962 Q298 Q114 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q917 Q916 Q833 Q977 Q34020 Q574 Q79 Q77 Q858 Q878 Q948 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q33788
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?t ) AS ?s ) WHERE { ?g property:P530 ?t . ?g rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?g } . FILTER ( ?s > ?c ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) WHERE { resource:Q33788 property:P530 ?a . ?a rdf:type ontology:Q15617994 } } }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Lithuania Mongolia Venezuela Indonesia Armenia Bahrain Serbia South Africa Portugal Russia Turkey Greece Brazil Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Lebanon Cuba Barbados Finland Luxembourg Belgium United States of America Poland Sweden Philippines Central African Republic Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Montenegro Georgia Malta San Marino Norway Somalia Senegal Ireland Hungary Sudan Iceland Pakistan Oman Belarus Mozambique Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Nigeria Estonia Benin Chile Kenya Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Bhutan Angola Malaysia Djibouti Niue East Timor Egypt Uruguay Syria United Arab Emirates Tunisia Jordan Libya Cape Verde Spain Thailand Zambia
109
action count
action greater
action find_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 New Caledonia
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 ( ?g ) AS ?o ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?t ) AS ?s ) WHERE { ?g property:diplomatic_relation ?t . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . FILTER ( ?s > ?c ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) WHERE { resource:New_Caledonia property:diplomatic_relation ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relationships with approximately 20 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 20
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { FILTER ( ?j = 20 ) . { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?j ) WHERE { ?i rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q15617994 . ?i property:P530 ?o } GROUP BY ?i } }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 20
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { FILTER ( ?j = 20 ) . { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?j ) WHERE { ?i rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:diplomatic_relation ?o } GROUP BY ?i } }
[]
political territorial entity designation for an administrative territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 20
[ANSWERS] have diplomatic relationships with approximately 20 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { FILTER ( ?j = 20 ) . { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?j ) WHERE { ?i rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q15617994 . ?i property:P530 ?o } GROUP BY ?i } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have diplomatic relationships with approximately 20 administrative territories
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 20
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { FILTER ( ?j = 20 ) . { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?j ) WHERE { ?i rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:diplomatic_relation ?o } GROUP BY ?i } }
[]