Simple Question (Direct)
Simple Question
Q17180852
P21
Q290
USER
Which sex does Dušan Punoševac possess ?
(Q17180852,P21,c(Q290))
action filter_type
action find
entity Q17180852
relation P21
type Q290
['Q17180852', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q17180852 property:P21 ?h . ?h rdf:type ontology:Q290 }
Dušan Punoševac
action filter_type
action find
entity Dušan Punoševac
relation gender
type sex
['Dušan Punoševac', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Dušan_Punoševac property:gender ?h . ?h rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q17180852,P21,c(Q290))
action filter_type
action find
entity Q17180852
relation P21
type Q290
Dušan Punoševac possesses un [ANSWER]
['Q17180852', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q17180852 property:P21 ?h . ?h rdf:type ontology:Q290 }
male
Dušan Punoševac possesses un male
male
action filter_type
action find
entity Dušan Punoševac
relation gender
type sex
['Dušan Punoševac', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Dušan_Punoševac property:gender ?h . ?h rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17180852
P27
Q15617994
USER
Which administrative territory is Dušan Punoševac an inhabitant of ?
(Q17180852,P27,c(Q15617994))
action filter_type
action find
entity Q17180852
relation P27
type Q15617994
['Q17180852', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q17180852 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
Dušan Punoševac
action filter_type
action find
entity Dušan Punoševac
relation country of citizenship
type designation for an administrative territorial entity
['Dušan Punoševac', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Dušan_Punoševac property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q403
SYSTEM
Serbia
Q403
(Q17180852,P27,c(Q15617994))
action filter_type
action find
entity Q17180852
relation P27
type Q15617994
[ANSWER] is Dušan Punoševac an inhabitant of
['Q17180852', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q17180852 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
Serbia
Serbia is Dušan Punoševac an inhabitant of
Serbia
action filter_type
action find
entity Dušan Punoševac
relation country of citizenship
type designation for an administrative territorial entity
['Dušan Punoševac', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Dušan_Punoševac property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P495
Q15617994 Q2031291
USER
Which administrative territories are the countries of origin of more number of releases than that administrative territory ?
(c(Q2031291),P495,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_type
action find
entity Q403
relation P495
type Q15617994
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?m ) AS ?f ) WHERE { ?m property:P495 ?y . ?y rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q2031291 } GROUP BY ?y } . FILTER ( ?f > ?q ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { resource:Q403 property:P495 ?b . ?b rdf:type ontology:Q15617994 } } }
action greater
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_type
action find
entity Serbia
relation country of origin
type designation for an administrative territorial entity
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?m ) AS ?f ) WHERE { ?m property:country_of_origin ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:release } GROUP BY ?y } . FILTER ( ?f > ?q ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { resource:Serbia property:country_of_origin ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity release
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q668 Q414 Q142 Q55 Q145 Q148 Q712 Q837 Q252 Q258 Q159 Q43 Q41 Q155 Q884 Q826 Q242 Q33 Q31 Q30 Q36 Q34 Q38 Q20 Q27 Q843 Q17 Q902 Q191 Q298 Q213 Q215 Q79 Q29
(c(Q2031291),P495,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_type
action find
entity Q403
relation P495
type Q15617994
[ANSWERS] are the countries of origin of more number of releases than that administrative territory
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?m ) AS ?f ) WHERE { ?m property:P495 ?y . ?y rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q2031291 } GROUP BY ?y } . FILTER ( ?f > ?q ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { resource:Q403 property:P495 ?b . ?b rdf:type ontology:Q15617994 } } }
Israel India Argentina France Netherlands United Kingdom People's Republic of China Fiji Nepal Indonesia South Africa Russia Turkey Greece Brazil South Korea Maldives Belize Finland Belgium United States of America Poland Sweden Italy Norway Ireland Pakistan Japan Bangladesh Estonia Chile Czech Republic Slovenia Egypt Spain
Italy, Brazil and United States of America are the countries of origin of more number of releases than that administrative territory
Italy Brazil United States of America
action greater
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_type
action find
entity Serbia
relation country of origin
type designation for an administrative territorial entity
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?m ) AS ?f ) WHERE { ?m property:country_of_origin ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:release } GROUP BY ?y } . FILTER ( ?f > ?q ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { resource:Serbia property:country_of_origin ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P36
Q56061 Q486972 Q15617994
USER
Which administrative territories contain atleast 3 administrative territories or human settlements as their capital ?
(c(Q15617994),P36,c(Q56061)|c(Q486972))
action atleast
action union
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action find_tuple_counts
relation P36
type Q15617994
type Q486972
value 3
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q56061'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ?x WHERE { FILTER ( ?d >= 3 ) . { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?d ) WHERE { { ?x property:P36 ?c . ?x rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q56061 } UNION { ?x rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q486972 . ?x property:P36 ?c } } GROUP BY ?x } }
action atleast
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type human settlement
value 3
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ?x WHERE { FILTER ( ?d >= 3 ) . { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?d ) WHERE { { ?x property:capital ?c . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:administrative_territorial_entity } UNION { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:human_settlement . ?x property:capital ?c } } GROUP BY ?x } }
[]
administrative territorial entity human settlement designation for an administrative territorial entity
Q160307
SYSTEM
Fatimid caliphate
Q160307
(c(Q15617994),P36,c(Q56061)|c(Q486972))
action atleast
action union
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action find_tuple_counts
relation P36
type Q15617994
type Q486972
value 3
[ANSWER] contain atleast 3 administrative territories or human settlements as their capital
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q56061'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ?x WHERE { FILTER ( ?d >= 3 ) . { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?d ) WHERE { { ?x property:P36 ?c . ?x rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q56061 } UNION { ?x rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q486972 . ?x property:P36 ?c } } GROUP BY ?x } }
Fatimid caliphate
Fatimid caliphate contain atleast 3 administrative territories or human settlements as their capital
Fatimid caliphate
action atleast
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type human settlement
value 3
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ?x WHERE { FILTER ( ?d >= 3 ) . { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?d ) WHERE { { ?x property:capital ?c . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:administrative_territorial_entity } UNION { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:human_settlement . ?x property:capital ?c } } GROUP BY ?x } }
[]
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 exactly 5 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 5
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?y ) WHERE { ?i property:P530 ?s . ?i rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q15617994 } GROUP BY ?i } . FILTER ( ?y = 5 ) }
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 5
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?y ) WHERE { ?i property:diplomatic_relation ?s . ?i rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . FILTER ( ?y = 5 ) }
[]
designation for an administrative territorial entity political territorial entity
Q40
SYSTEM
Austria
Q40
(c(Q1048835),P530,c(Q15617994))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 5
[ANSWER] have tactful political relations with exactly 5 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?y ) WHERE { ?i property:P530 ?s . ?i rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q15617994 } GROUP BY ?i } . FILTER ( ?y = 5 ) }
Austria
Austria have tactful political relations with exactly 5 administrative territories
Austria
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 5
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?y ) WHERE { ?i property:diplomatic_relation ?s . ?i rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . FILTER ( ?y = 5 ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q40 Q3158440
P27
Q502895
USER
Is Jacques Bégu a citizen of that political territory ?
(Q3158440,P27,Q40)
action is_in
entity Q3158440
action find
entity Q40
relation P27
['Q3158440', 'P27', 'Q40']
ASK WHERE { resource:Q40 property:P27 resource:Q3158440 }
Austria Jacques Bégu
action is_in
entity Jacques Bégu
action find
entity Austria
relation country of citizenship
['Jacques Bégu', 'country of citizenship', 'Austria']
ASK WHERE { resource:Austria property:country_of_citizenship resource:Jacques_Bégu }
[]
common name
SYSTEM
NO
(Q3158440,P27,Q40)
action is_in
entity Q3158440
action find
entity Q40
relation P27
[ANSWER]
['Q3158440', 'P27', 'Q40']
ASK WHERE { resource:Q40 property:P27 resource:Q3158440 }
No
action is_in
entity Jacques Bégu
action find
entity Austria
relation country of citizenship
['Jacques Bégu', 'country of citizenship', 'Austria']
ASK WHERE { resource:Austria property:country_of_citizenship resource:Jacques_Bégu }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q17180852 Q201442
P19
Q56061
USER
Was that person born in Kruševac ?
(Q17180852,P19,Q201442)
action is_in
entity Q201442
action find
entity Q17180852
relation P19
['Q17180852', 'P19', 'Q201442']
ASK WHERE { resource:Q17180852 property:P19 resource:Q201442 }
Dušan Punoševac Kruševac
action is_in
entity Kruševac
action find
entity Dušan Punoševac
relation place of birth
['Dušan Punoševac', 'place of birth', 'Kruševac']
ASK WHERE { resource:Dušan_Punoševac property:place_of_birth resource:Kruševac }
[]
administrative territorial entity
SYSTEM
YES
(Q17180852,P19,Q201442)
action is_in
entity Q201442
action find
entity Q17180852
relation P19
[ANSWER]
['Q17180852', 'P19', 'Q201442']
ASK WHERE { resource:Q17180852 property:P19 resource:Q201442 }
Yes
action is_in
entity Kruševac
action find
entity Dušan Punoševac
relation place of birth
['Dušan Punoševac', 'place of birth', 'Kruševac']
ASK WHERE { resource:Dušan_Punoševac property:place_of_birth resource:Kruševac }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
How many political territories have tactful political relations with around 5 political territories ?
(c(Q1048835),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 5
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?v ) WHERE { ?q property:P530 ?w . ?q rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q1048835 } GROUP BY ?q } . FILTER ( ?v = 5 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 5
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?v ) WHERE { ?q property:diplomatic_relation ?w . ?q rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:political_territorial_entity } GROUP BY ?q } . FILTER ( ?v = 5 ) }
[]
political territorial entity political territorial entity
SYSTEM
4
Q183 Q35 Q16 Q664
(c(Q1048835),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 5
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?v ) WHERE { ?q property:P530 ?w . ?q rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q1048835 } GROUP BY ?q } . FILTER ( ?v = 5 ) }
Germany Denmark Canada New Zealand
4
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 5
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?v ) WHERE { ?q property:diplomatic_relation ?w . ?q rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:political_territorial_entity } GROUP BY ?q } . FILTER ( ?v = 5 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q778
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relationships with around the same number of political territories as The Bahamas ?
(c(Q1048835),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q778
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?i ) AS ?p ) WHERE { ?v property:P530 ?i . ?v rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q1048835 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { resource:Q778 property:P530 ?a . ?a rdf:type ontology:Q1048835 } } . FILTER ( ?p = ?o ) }
The Bahamas
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity The Bahamas
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?i ) AS ?p ) WHERE { ?v property:diplomatic_relation ?i . ?v rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:political_territorial_entity } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { resource:The_Bahamas property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity } } . FILTER ( ?p = ?o ) }
[]
political territorial entity political territorial entity
Q35 Q40 Q664
SYSTEM
Denmark, Austria, New Zealand
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q778
relation P530
type Q1048835
[ANSWERS] have diplomatic relationships with around the same number of political territories as The Bahamas
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?i ) AS ?p ) WHERE { ?v property:P530 ?i . ?v rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q1048835 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { resource:Q778 property:P530 ?a . ?a rdf:type ontology:Q1048835 } } . FILTER ( ?p = ?o ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
Denmark, Austria and New Zealand have diplomatic relationships with around the same number of political territories as The Bahamas
Denmark Austria New Zealand
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity The Bahamas
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?i ) AS ?p ) WHERE { ?v property:diplomatic_relation ?i . ?v rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:political_territorial_entity } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { resource:The_Bahamas property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity } } . FILTER ( ?p = ?o ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q1000
P530
Q1048835 Q1048835
USER
And how about Gabon?
(c(Q1048835),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q1000
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?i ) WHERE { ?l property:P530 ?v . ?l rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q1048835 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { resource:Q1000 property:P530 ?g . ?g rdf:type ontology:Q1048835 } } . FILTER ( ?i = ?z ) }
Gabon
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Gabon
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?i ) WHERE { ?l property:diplomatic_relation ?v . ?l rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:political_territorial_entity } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { resource:Gabon property:diplomatic_relation ?g . ?g rdf:type ontology:political_territorial_entity } } . FILTER ( ?i = ?z ) }
[]
political territorial entity political territorial entity
Q35 Q40 Q664
SYSTEM
Denmark, Austria, New Zealand
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q1000
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?i ) WHERE { ?l property:P530 ?v . ?l rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q1048835 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { resource:Q1000 property:P530 ?g . ?g rdf:type ontology:Q1048835 } } . FILTER ( ?i = ?z ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
Denmark Austria New Zealand
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Gabon
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?i ) WHERE { ?l property:diplomatic_relation ?v . ?l rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:political_territorial_entity } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { resource:Gabon property:diplomatic_relation ?g . ?g rdf:type ontology:political_territorial_entity } } . FILTER ( ?i = ?z ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which administrative territories have diplomatic relationships with approximately 1 political territory ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 1
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?r ) WHERE { ?u property:P530 ?c . ?u rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1048835 } GROUP BY ?u } . FILTER ( ?r = 1 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 1
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?r ) WHERE { ?u property:diplomatic_relation ?c . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?u } . FILTER ( ?r = 1 ) }
[]
designation for an administrative territorial entity political territorial entity
Q230 Q184 Q32
SYSTEM
Georgia, Belarus, Luxembourg
Q702 Q262 Q265 Q37 Q712 Q717 Q837 Q657 Q792 Q958 Q986 Q822 Q241 Q242 Q244 Q32 Q929 Q983 Q29999 Q854 Q819 Q424 Q730 Q230 Q232 Q238 Q1045 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q184 Q228 Q227 Q222 Q221 Q1037 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q695 Q754 Q211 Q217 Q214 Q912 Q917 Q1007 Q1006 Q1005 Q977 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q948 Q817 Q1019 Q1016 Q1011 Q945 Q678 Q33788
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 1
[ANSWERS] have diplomatic relationships with approximately 1 political territory
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?r ) WHERE { ?u property:P530 ?c . ?u rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1048835 } GROUP BY ?u } . FILTER ( ?r = 1 ) }
Federated States of Micronesia Algeria Uzbekistan Lithuania Fiji Venezuela Nepal Chad El Salvador South Sudan Eritrea Lebanon Cuba Belize Barbados Luxembourg Central African Republic Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Georgia Kazakhstan San Marino Somalia Hungary Brunei Sudan Mauritius Malawi Iceland Belarus Andorra Azerbaijan Albania Republic of Macedonia Rwanda Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Palau Trinidad and Tobago Latvia Republic of Moldova Slovakia Mali Bhutan Guinea-Bissau Guinea Gambia Djibouti Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Tunisia Kuwait Madagascar Libya Cape Verde Togo Tonga New Caledonia
Georgia, Belarus and Luxembourg have diplomatic relationships with approximately 1 political territory
Georgia Belarus Luxembourg
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 1
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?r ) WHERE { ?u property:diplomatic_relation ?c . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?u } . FILTER ( ?r = 1 ) }
[]