Simple Question (Direct)
Simple Question
Q231171
P1412
Q34770
USER
Which language is Fabiola of Belgium capable of writing ?
(Q231171,P1412,c(Q34770))
action filter_type
action find
entity Q231171
relation P1412
type Q34770
['Q231171', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { resource:Q231171 property:P1412 ?k . ?k rdf:type ontology:Q34770 }
Fabiola of Belgium
action filter_type
action find
entity Fabiola of Belgium
relation languages spoken, written or signed
type language
['Fabiola of Belgium', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { resource:Fabiola_of_Belgium property:languages_spoken,_written_or_signed ?k . ?k rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q231171,P1412,c(Q34770))
action filter_type
action find
entity Q231171
relation P1412
type Q34770
[ANSWER] is Fabiola of Belgium capable of writing
['Q231171', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { resource:Q231171 property:P1412 ?k . ?k rdf:type ontology:Q34770 }
Spanish
Spanish is Fabiola of Belgium capable of writing
Spanish
action filter_type
action find
entity Fabiola of Belgium
relation languages spoken, written or signed
type language
['Fabiola of Belgium', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { resource:Fabiola_of_Belgium property:languages_spoken,_written_or_signed ?k . ?k rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q231171
P19
Q56061
USER
Where was Fabiola of Belgium born ?
(Q231171,P19,c(Q56061))
action filter_type
action find
entity Q231171
relation P19
type Q56061
['Q231171', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q231171 property:P19 ?q . ?q rdf:type ontology:Q56061 }
Fabiola of Belgium
action filter_type
action find
entity Fabiola of Belgium
relation place of birth
type administrative territorial entity
['Fabiola of Belgium', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Fabiola_of_Belgium property:place_of_birth ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2807
SYSTEM
Madrid
Q2807
(Q231171,P19,c(Q56061))
action filter_type
action find
entity Q231171
relation P19
type Q56061
Fabiola of Belgium was born in [ANSWER]
['Q231171', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q231171 property:P19 ?q . ?q rdf:type ontology:Q56061 }
Madrid
Fabiola of Belgium was born in Madrid
Madrid
action filter_type
action find
entity Fabiola of Belgium
relation place of birth
type administrative territorial entity
['Fabiola of Belgium', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Fabiola_of_Belgium property:place_of_birth ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q16235710
Q56061
USER
And what about Carmine Palumbo?
(Q16235710,P19,c(Q56061))
action filter_type
action find
entity Q16235710
relation P19
type Q56061
['Q16235710', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q16235710 property:P19 ?e }
Carmine Palumbo
action filter_type
action find
entity Carmine Palumbo
relation place of birth
type administrative territorial entity
['Carmine Palumbo', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:Carmine_Palumbo property:place_of_birth ?e }
[]
administrative territorial entity
Q2634
SYSTEM
Naples
Q2634
(Q16235710,P19,c(Q56061))
action filter_type
action find
entity Q16235710
relation P19
type Q56061
[ANSWER]
['Q16235710', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q16235710 property:P19 ?e }
Naples
Naples
action filter_type
action find
entity Carmine Palumbo
relation place of birth
type administrative territorial entity
['Carmine Palumbo', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:Carmine_Palumbo property:place_of_birth ?e }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2634
P1071
Q2235308
USER
Which ship type has that administrative territory as its final assembly location ?
(c(Q2235308),P1071,Q2634)
action filter_type
action find_reverse
entity Q2634
relation P1071
type Q2235308
[{'concept': 'Q2235308'}, 'P1071', 'Q2634']
SELECT DISTINCT ?g WHERE { ?g property:P1071 resource:Q2634 . ?g rdf:type ontology:Q2235308 }
Naples
action filter_type
action find_reverse
entity Naples
relation location of final assembly
type ship type
[{'concept': 'ship type'}, 'location of final assembly', 'Naples']
SELECT DISTINCT ?g WHERE { ?g property:location_of_final_assembly resource:Naples . ?g rdf:type ontology:ship_type }
[]
ship type
Q2623271
SYSTEM
Quintino Sella-class destroyer
Q2623271
(c(Q2235308),P1071,Q2634)
action filter_type
action find_reverse
entity Q2634
relation P1071
type Q2235308
[ANSWER] has that administrative territory as its final assembly location
[{'concept': 'Q2235308'}, 'P1071', 'Q2634']
SELECT DISTINCT ?g WHERE { ?g property:P1071 resource:Q2634 . ?g rdf:type ontology:Q2235308 }
Quintino Sella-class destroyer
Quintino Sella-class destroyer has that administrative territory as its final assembly location
Quintino Sella-class destroyer
action filter_type
action find_reverse
entity Naples
relation location of final assembly
type ship type
[{'concept': 'ship type'}, 'location of final assembly', 'Naples']
SELECT DISTINCT ?g WHERE { ?g property:location_of_final_assembly resource:Naples . ?g rdf:type ontology:ship_type }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q2623271 Q2990110
P289
Q2235308
USER
Does York class cruiser possess a vessel class called that one ?
(Q2990110,P289,Q2623271)
action is_in
entity Q2990110
action find
entity Q2623271
relation P289
['Q2990110', 'P289', 'Q2623271']
ASK WHERE { resource:Q2623271 property:P289 resource:Q2990110 }
Quintino Sella-class destroyer York class cruiser
action is_in
entity York class cruiser
action find
entity Quintino Sella-class destroyer
relation vessel class
['York class cruiser', 'vessel class', 'Quintino Sella-class destroyer']
ASK WHERE { resource:Quintino_Sella-class_destroyer property:vessel_class resource:York_class_cruiser }
[]
ship type
SYSTEM
NO
(Q2990110,P289,Q2623271)
action is_in
entity Q2990110
action find
entity Q2623271
relation P289
[ANSWER]
['Q2990110', 'P289', 'Q2623271']
ASK WHERE { resource:Q2623271 property:P289 resource:Q2990110 }
No
action is_in
entity York class cruiser
action find
entity Quintino Sella-class destroyer
relation vessel class
['York class cruiser', 'vessel class', 'Quintino Sella-class destroyer']
ASK WHERE { resource:Quintino_Sella-class_destroyer property:vessel_class resource:York_class_cruiser }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P532
Q15617994 Q2235308
USER
Which administrative territories are the ports of registry of atmost 1 ship type ?
(c(Q2235308),P532,c(Q15617994))
action atmost
action find_reverse_tuple_counts
relation P532
type Q15617994
type Q2235308
value 1
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?u <= 1 ) . { SELECT DISTINCT ?k ( COUNT ( ?f ) AS ?u ) WHERE { ?f property:P532 ?k . ?f rdf:type ontology:Q2235308 . ?k rdf:type ontology:Q15617994 } GROUP BY ?k } }
action atmost
action find_reverse_tuple_counts
relation port of registry
type designation for an administrative territorial entity
type ship type
value 1
[{'concept': 'ship type'}, 'port of registry', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?u <= 1 ) . { SELECT DISTINCT ?k ( COUNT ( ?f ) AS ?u ) WHERE { ?f property:port_of_registry ?k . ?f rdf:type ontology:ship_type . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } }
[]
designation for an administrative territorial entity ship type
Q38 Q55 Q145
SYSTEM
Italy, Netherlands, United Kingdom
Q55 Q233 Q709 Q145 Q20 Q38
(c(Q2235308),P532,c(Q15617994))
action atmost
action find_reverse_tuple_counts
relation P532
type Q15617994
type Q2235308
value 1
[ANSWERS] are the ports of registry of atmost 1 ship type
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?u <= 1 ) . { SELECT DISTINCT ?k ( COUNT ( ?f ) AS ?u ) WHERE { ?f property:P532 ?k . ?f rdf:type ontology:Q2235308 . ?k rdf:type ontology:Q15617994 } GROUP BY ?k } }
Netherlands Malta Marshall Islands United Kingdom Norway Italy
Italy, Netherlands and United Kingdom are the ports of registry of atmost 1 ship type
Italy Netherlands United Kingdom
action atmost
action find_reverse_tuple_counts
relation port of registry
type designation for an administrative territorial entity
type ship type
value 1
[{'concept': 'ship type'}, 'port of registry', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?u <= 1 ) . { SELECT DISTINCT ?k ( COUNT ( ?f ) AS ?u ) WHERE { ?f property:port_of_registry ?k . ?f rdf:type ontology:ship_type . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q212
P530
Q15617994 Q15617994
USER
Which administrative territories have ambassadorial relations with more number of administrative territories than Ukraine ?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q212
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?t ) WHERE { ?q rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 . ?q property:P530 ?i } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { resource:Q212 property:P530 ?j . ?j rdf:type ontology:Q15617994 } } . FILTER ( ?t > ?h ) }
Ukraine
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 Ukraine
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 ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?t ) WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q property:diplomatic_relation ?i } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { resource:Ukraine property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?t > ?h ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q142 Q145 Q148 Q403 Q159 Q155 Q30 Q929 Q38 Q230 Q184 Q225 Q17 Q114 Q858 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q212
relation P530
type Q15617994
[ANSWERS] have ambassadorial relations with more number of administrative territories than Ukraine
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?t ) WHERE { ?q rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 . ?q property:P530 ?i } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { resource:Q212 property:P530 ?j . ?j rdf:type ontology:Q15617994 } } . FILTER ( ?t > ?h ) }
Israel Yemen France United Kingdom People's Republic of China Serbia Russia Brazil United States of America Central African Republic Italy Georgia Belarus Bosnia and Herzegovina Japan Kenya Syria Cape Verde Zambia
Italy, Brazil and United States of America have ambassadorial relations with more number of administrative territories than Ukraine
Italy Brazil United States of America
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 Ukraine
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 ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?t ) WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q property:diplomatic_relation ?i } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { resource:Ukraine property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?t > ?h ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q155
P30
Q2221906
USER
Which geographic location is that administrative territory a part of ?
(Q155,P30,c(Q2221906))
action filter_type
action find
entity Q155
relation P30
type Q2221906
['Q155', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q2221906 . resource:Q155 property:P30 ?l }
Brazil
action filter_type
action find
entity Brazil
relation continent
type geographic location
['Brazil', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:geographic_location . resource:Brazil property:continent ?l }
[]
geographic location
Clarification for simple ques.
Q30
SYSTEM
Did you mean United States of America ?
Q38 Q155 Q30
(Q38,P30,c(Q2221906)) (Q155,P30,c(Q2221906)) (Q30,P30,c(Q2221906))
[ANSWER]
['Q38', 'P30', {'concept': 'Q2221906'}] ['Q155', 'P30', {'concept': 'Q2221906'}] ['Q30', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q2221906 . resource:Q155 property:P30 ?l }
Italy Brazil United States of America
Did you mean United States of America ?
United States of America
['Italy', 'continent', {'concept': 'geographic location'}] ['Brazil', 'continent', {'concept': 'geographic location'}] ['United States of America', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:geographic_location . resource:Brazil property:continent ?l }
[]
Simple Question (Coreferenced)
USER
No, I meant Brazil. Could you tell me the answer for that?
(Q155,P30,c(Q2221906))
Q155
['Q155', 'P30', {'concept': 'Q2221906'}]
['Brazil', 'continent', {'concept': 'geographic location'}]
[]
Q18
SYSTEM
South America
Q18
(Q155,P30,c(Q2221906))
action filter_type
action find
entity Q155
relation P30
type Q2221906
The [ANSWER] is that administrative territory a part of
['Q155', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q2221906 . resource:Q155 property:P30 ?l }
South America
The South America is that administrative territory a part of
South America
action filter_type
action find
entity Brazil
relation continent
type geographic location
['Brazil', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:geographic_location . resource:Brazil property:continent ?l }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q7023617 Q145
P530 P17
Q1048835
USER
Which political territories have diplomatic relationships with United Kingdom and are not Niagara District Secondary School present in ?
AND((Q145,P530,c(Q1048835)), NOT((Q7023617,P17,c(Q1048835))))
action filter_type
action difference
action find
entity Q145
relation P530
action find
entity Q7023617
relation P17
type Q1048835
{'AND': [['Q145', 'P530', {'concept': 'Q1048835'}], {'NOT': [['Q7023617', 'P17', {'concept': 'Q1048835'}]]}]}
SELECT DISTINCT ?y WHERE { FILTER NOT EXISTS { resource:Q7023617 property:P17 ?y } . resource:Q145 property:P530 ?y . ?y rdf:type ontology:Q1048835 }
Niagara District Secondary School United Kingdom
action filter_type
action difference
action find
entity United Kingdom
relation diplomatic relation
action find
entity Niagara District Secondary School
relation country
type political territorial entity
{'AND': [['United Kingdom', 'diplomatic relation', {'concept': 'political territorial entity'}], {'NOT': [['Niagara District Secondary School', 'country', {'concept': 'political territorial entity'}]]}]}
SELECT DISTINCT ?y WHERE { FILTER NOT EXISTS { resource:Niagara_District_Secondary_School property:country ?y } . resource:United_Kingdom property:diplomatic_relation ?y . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q183
SYSTEM
Australia, Germany
Q408 Q183
AND((Q145,P530,c(Q1048835)), NOT((Q7023617,P17,c(Q1048835))))
action filter_type
action difference
action find
entity Q145
relation P530
action find
entity Q7023617
relation P17
type Q1048835
[ANSWERS] have diplomatic relationships with United Kingdom and are not Niagara District Secondary School present in
{'AND': [['Q145', 'P530', {'concept': 'Q1048835'}], {'NOT': [['Q7023617', 'P17', {'concept': 'Q1048835'}]]}]}
SELECT DISTINCT ?y WHERE { FILTER NOT EXISTS { resource:Q7023617 property:P17 ?y } . resource:Q145 property:P530 ?y . ?y rdf:type ontology:Q1048835 }
Australia Germany
Australia and Germany have diplomatic relationships with United Kingdom and are not Niagara District Secondary School present in
Australia Germany
action filter_type
action difference
action find
entity United Kingdom
relation diplomatic relation
action find
entity Niagara District Secondary School
relation country
type political territorial entity
{'AND': [['United Kingdom', 'diplomatic relation', {'concept': 'political territorial entity'}], {'NOT': [['Niagara District Secondary School', 'country', {'concept': 'political territorial entity'}]]}]}
SELECT DISTINCT ?y WHERE { FILTER NOT EXISTS { resource:Niagara_District_Secondary_School property:country ?y } . resource:United_Kingdom property:diplomatic_relation ?y . ?y rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q792
P530
Q15617994 Q1048835 Q15617994
USER
How many administrative territories have tactful political relations with around the same number of administrative territories and political territories as El Salvador ?
(c(Q15617994),P530,c(Q15617994)|c(Q1048835))
action count
action approx
action union
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find
entity Q792
relation P530
type Q15617994
type Q1048835
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?n ) AS ?v ) WHERE { { ?j property:P530 ?n . ?j rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 } UNION { ?j property:P530 ?n . ?n rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q15617994 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { resource:Q792 property:P530 ?e . { { ?e rdf:type ontology:Q15617994 } UNION { ?e rdf:type ontology:Q1048835 } } } } . FILTER ( ?v = ?r ) }
El Salvador
action count
action approx
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find
entity El Salvador
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?n ) AS ?v ) WHERE { { ?j property:diplomatic_relation ?n . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?j property:diplomatic_relation ?n . ?n rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { resource:El_Salvador property:diplomatic_relation ?e . { { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?e rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?v = ?r ) }
[]
designation for an administrative territorial entity political territorial entity designation for an administrative territorial entity
SYSTEM
147
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994)|c(Q1048835))
action count
action approx
action union
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find
entity Q792
relation P530
type Q15617994
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?n ) AS ?v ) WHERE { { ?j property:P530 ?n . ?j rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 } UNION { ?j property:P530 ?n . ?n rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q15617994 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { resource:Q792 property:P530 ?e . { { ?e rdf:type ontology:Q15617994 } UNION { ?e rdf:type ontology:Q1048835 } } } } . FILTER ( ?v = ?r ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
147
action count
action approx
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find
entity El Salvador
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?n ) AS ?v ) WHERE { { ?j property:diplomatic_relation ?n . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?j property:diplomatic_relation ?n . ?n rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { resource:El_Salvador property:diplomatic_relation ?e . { { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?e rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?v = ?r ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q800
P530
Q15617994 Q1048835 Q15617994
USER
And what about Costa Rica?
(c(Q15617994),P530,c(Q15617994)|c(Q1048835))
action count
action approx
action union
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find
entity Q800
relation P530
type Q15617994
type Q1048835
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) ?z WHERE { ?k rdf:type ?j . VALUES ( ?j ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) WHERE { resource:Q800 property:P530 ?f . { { ?f rdf:type ontology:Q15617994 } UNION { ?f rdf:type ontology:Q1048835 } } } } . FILTER ( ?r = ?m ) }
Costa Rica
action count
action approx
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find
entity Costa Rica
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) ?z WHERE { ?k rdf:type ?j . VALUES ( ?j ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) WHERE { resource:Costa_Rica property:diplomatic_relation ?f . { { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?f rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?r = ?m ) }
[]
designation for an administrative territorial entity political territorial entity designation for an administrative territorial entity
SYSTEM
149
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994)|c(Q1048835))
action count
action approx
action union
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find
entity Q800
relation P530
type Q15617994
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) ?z WHERE { ?k rdf:type ?j . VALUES ( ?j ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) WHERE { resource:Q800 property:P530 ?f . { { ?f rdf:type ontology:Q15617994 } UNION { ?f rdf:type ontology:Q1048835 } } } } . FILTER ( ?r = ?m ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
149
action count
action approx
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find
entity Costa Rica
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) ?z WHERE { ?k rdf:type ?j . VALUES ( ?j ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) WHERE { resource:Costa_Rica property:diplomatic_relation ?f . { { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?f rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?r = ?m ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many administrative territories have diplomatic relationships with atmost 3 political territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
value 3
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { FILTER ( ?a <= 3 ) . { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?a ) WHERE { ?m rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q1048835 . ?u property:P530 ?m } GROUP BY ?m } }
action count
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 3
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { FILTER ( ?a <= 3 ) . { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?a ) WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:political_territorial_entity . ?u property:diplomatic_relation ?m } GROUP BY ?m } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
164
Q702 Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q30 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 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q1048835),P530,c(Q15617994))
action count
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
value 3
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { FILTER ( ?a <= 3 ) . { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?a ) WHERE { ?m rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q1048835 . ?u property:P530 ?m } GROUP BY ?m } }
Federated States of Micronesia Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium United States of America 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 Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan 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 Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
164
action count
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 3
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { FILTER ( ?a <= 3 ) . { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?a ) WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:political_territorial_entity . ?u property:diplomatic_relation ?m } GROUP BY ?m } }
[]