Simple Question (Direct)
Simple Question
Q5616283
P21
Q290
USER
What is the sex of Guillermo Tomasevich ?
(Q5616283,P21,c(Q290))
action filter_type
action find
entity Q5616283
relation P21
type Q290
['Q5616283', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q290 . resource:Q5616283 property:P21 ?f }
Guillermo Tomasevich
action filter_type
action find
entity Guillermo Tomasevich
relation gender
type sex
['Guillermo Tomasevich', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:sex . resource:Guillermo_Tomasevich property:gender ?f }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5616283,P21,c(Q290))
action filter_type
action find
entity Q5616283
relation P21
type Q290
The sex of Guillermo Tomasevich is the [ANSWER]
['Q5616283', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q290 . resource:Q5616283 property:P21 ?f }
male
The sex of Guillermo Tomasevich is the male
male
action filter_type
action find
entity Guillermo Tomasevich
relation gender
type sex
['Guillermo Tomasevich', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:sex . resource:Guillermo_Tomasevich property:gender ?f }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5616283
P27
Q15617994
USER
Which administrative territory does Guillermo Tomasevich belong to ?
(Q5616283,P27,c(Q15617994))
action filter_type
action find
entity Q5616283
relation P27
type Q15617994
['Q5616283', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q5616283 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
Guillermo Tomasevich
action filter_type
action find
entity Guillermo Tomasevich
relation country of citizenship
type designation for an administrative territorial entity
['Guillermo Tomasevich', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Guillermo_Tomasevich property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q419
SYSTEM
Peru
Q419
(Q5616283,P27,c(Q15617994))
action filter_type
action find
entity Q5616283
relation P27
type Q15617994
Guillermo Tomasevich belongs to [ANSWER]
['Q5616283', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q5616283 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
Peru
Guillermo Tomasevich belongs to Peru
Peru
action filter_type
action find
entity Guillermo Tomasevich
relation country of citizenship
type designation for an administrative territorial entity
['Guillermo Tomasevich', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Guillermo_Tomasevich property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q419
P159
Q874405
USER
Which social group has headquarters located at that administrative territory ?
(c(Q874405),P159,Q419)
action filter_type
action find_reverse
entity Q419
relation P159
type Q874405
[{'concept': 'Q874405'}, 'P159', 'Q419']
SELECT DISTINCT ?e WHERE { ?e property:P159 resource:Q419 . ?e rdf:type ontology:Q874405 }
Peru
action filter_type
action find_reverse
entity Peru
relation headquarters location
type social group
[{'concept': 'social group'}, 'headquarters location', 'Peru']
SELECT DISTINCT ?e WHERE { ?e property:headquarters_location resource:Peru . ?e rdf:type ontology:social_group }
[]
social group
Q6024634
SYSTEM
Indigenous Peoples Climate Change Assessment Initiative
Q6024634
(c(Q874405),P159,Q419)
action filter_type
action find_reverse
entity Q419
relation P159
type Q874405
[ANSWER] has headquarters located at that administrative territory
[{'concept': 'Q874405'}, 'P159', 'Q419']
SELECT DISTINCT ?e WHERE { ?e property:P159 resource:Q419 . ?e rdf:type ontology:Q874405 }
Indigenous Peoples Climate Change Assessment Initiative
Indigenous Peoples Climate Change Assessment Initiative has headquarters located at that administrative territory
Indigenous Peoples Climate Change Assessment Initiative
action filter_type
action find_reverse
entity Peru
relation headquarters location
type social group
[{'concept': 'social group'}, 'headquarters location', 'Peru']
SELECT DISTINCT ?e WHERE { ?e property:headquarters_location resource:Peru . ?e rdf:type ontology:social_group }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q419
P47
Q15617994
USER
Which administrative territories share border with Peru ?
(Q419,P47,c(Q15617994))
action filter_type
action find
entity Q419
relation P47
type Q15617994
['Q419', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q419 property:P47 ?h . ?h rdf:type ontology:Q15617994 }
Peru
action filter_type
action find
entity Peru
relation shares border with
type designation for an administrative territorial entity
['Peru', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Peru property:shares_border_with ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q739 Q298
SYSTEM
Brazil, Colombia, Chile
Q739 Q155 Q298 Q736 Q750
(Q419,P47,c(Q15617994))
action filter_type
action find
entity Q419
relation P47
type Q15617994
[ANSWERS] share border with Peru
['Q419', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q419 property:P47 ?h . ?h rdf:type ontology:Q15617994 }
Colombia Brazil Chile Ecuador Bolivia
Brazil, Colombia and Chile share border with Peru
Brazil Colombia Chile
action filter_type
action find
entity Peru
relation shares border with
type designation for an administrative territorial entity
['Peru', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Peru property:shares_border_with ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q34432
Q15617994
USER
And how about San Pietro in Gu?
(Q34432,P47,c(Q15617994))
action filter_type
action find
entity Q34432
relation P47
type Q15617994
['Q34432', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q34432 property:P47 ?t . ?t rdf:type ontology:Q15617994 }
San Pietro in Gu
action filter_type
action find
entity San Pietro in Gu
relation shares border with
type designation for an administrative territorial entity
['San Pietro in Gu', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:San_Pietro_in_Gu property:shares_border_with ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q46451 Q34449 Q34521
SYSTEM
Pozzoleone, Grantorto, Gazzo
Q46406 Q34683 Q34521 Q46451 Q46214 Q34449 Q46549
(Q34432,P47,c(Q15617994))
action filter_type
action find
entity Q34432
relation P47
type Q15617994
[ANSWERS]
['Q34432', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q34432 property:P47 ?t . ?t rdf:type ontology:Q15617994 }
Bressanvido Carmignano di Brenta Gazzo Pozzoleone Bolzano Vicentino Grantorto Quinto Vicentino
Pozzoleone Grantorto Gazzo
action filter_type
action find
entity San Pietro in Gu
relation shares border with
type designation for an administrative territorial entity
['San Pietro in Gu', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:San_Pietro_in_Gu property:shares_border_with ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q72449
P194
Q701632 Q11204 Q15617994
USER
How many administrative territories have greater number of municipal councils and legislatures as their council than Roccarainola ?
(c(Q15617994),P194,c(Q701632)|c(Q11204))
action count
action greater
action union
action find_tuple_counts
relation P194
type Q15617994
type Q701632
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action count
action filter_multi_types
action find
entity Q72449
relation P194
type Q701632
type Q11204
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q701632'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?m ) AS ?y ) WHERE { { ?m rdf:type ontology:Q701632 . ?n rdf:type ontology:Q15617994 . ?n property:P194 ?m } UNION { ?n property:P194 ?m . ?n rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q11204 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { resource:Q72449 property:P194 ?k . { VALUES ( ?s ) { ( ontology:Q701632 ) ( ontology:Q11204 ) } . ?k rdf:type ?s } } } . FILTER ( ?y > ?z ) }
Roccarainola
action count
action greater
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action count
action filter_multi_types
action find
entity Roccarainola
relation legislative body
type municipal council
type legislature
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'municipal council'}, {'concept': 'legislature'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?m ) AS ?y ) WHERE { { ?m rdf:type ontology:municipal_council . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n property:legislative_body ?m } UNION { ?n property:legislative_body ?m . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:legislature } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { resource:Roccarainola property:legislative_body ?k . { VALUES ( ?s ) { ( ontology:municipal_council ) ( ontology:legislature ) } . ?k rdf:type ?s } } } . FILTER ( ?y > ?z ) }
[]
municipal council legislature designation for an administrative territorial entity
SYSTEM
55
Q805 Q800 Q1462 Q1250 Q2806757 Q148 Q189 Q786 Q710 Q1460 Q159 Q43 Q792 Q779011 Q889 Q884 Q958 Q12574 Q12761 Q244 Q31 Q30 Q37 Q1447 Q1282 Q1284 Q3389 Q236 Q12661 Q1273 Q1279 Q1049 Q1458 Q227 Q347 Q17 Q902 Q191 Q114 Q1210 Q917 Q736 Q34020 Q686 Q760 Q574 Q1222 Q774 Q948 Q1016 Q27 Q1243 Q12626 Q672 Q1237
(c(Q15617994),P194,c(Q701632)|c(Q11204))
action count
action greater
action union
action find_tuple_counts
relation P194
type Q15617994
type Q701632
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action count
action filter_multi_types
action find
entity Q72449
relation P194
type Q701632
type Q11204
[ANSWER]
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q701632'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?m ) AS ?y ) WHERE { { ?m rdf:type ontology:Q701632 . ?n rdf:type ontology:Q15617994 . ?n property:P194 ?m } UNION { ?n property:P194 ?m . ?n rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q11204 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { resource:Q72449 property:P194 ?k . { VALUES ( ?s ) { ( ontology:Q701632 ) ( ontology:Q11204 ) } . ?k rdf:type ?s } } } . FILTER ( ?y > ?z ) }
Yemen Costa Rica Sardinia Friuli–Venezia Giulia 105 Mile Post Indian Reserve No. 2 People's Republic of China Iceland Dominican Republic Kiribati Sicily Russia Turkey El Salvador Principality of Montenegro Afghanistan South Korea South Sudan Loiret Seine-Saint-Denis Barbados Belgium United States of America Lithuania Apulia Lazio Abruzzo Finistère Montenegro Nord Tuscany Marche Sudan Calabria Azerbaijan Liechtenstein Japan Bangladesh Estonia Kenya Lombardy Bhutan Ecuador Niue Vanuatu Saint Lucia East Timor Aosta Valley Guatemala Tunisia Libya Ireland Veneto Meurthe-et-Moselle Tuvalu Trentino-South Tyrol
55
action count
action greater
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action count
action filter_multi_types
action find
entity Roccarainola
relation legislative body
type municipal council
type legislature
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'municipal council'}, {'concept': 'legislature'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?m ) AS ?y ) WHERE { { ?m rdf:type ontology:municipal_council . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n property:legislative_body ?m } UNION { ?n property:legislative_body ?m . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:legislature } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { resource:Roccarainola property:legislative_body ?k . { VALUES ( ?s ) { ( ontology:municipal_council ) ( ontology:legislature ) } . ?k rdf:type ?s } } } . FILTER ( ?y > ?z ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q854
P194
Q701632 Q11204 Q15617994
USER
And how about Sri Lanka?
(c(Q15617994),P194,c(Q701632)|c(Q11204))
action count
action greater
action union
action find_tuple_counts
relation P194
type Q15617994
type Q701632
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action count
action filter_multi_types
action find
entity Q854
relation P194
type Q701632
type Q11204
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q701632'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { FILTER ( ?q > ?b ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { resource:Q854 property:P194 ?v . { { ?v rdf:type ontology:Q701632 } UNION { ?v rdf:type ontology:Q11204 } } } } . { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?q ) WHERE { ?l rdf:type ?z . VALUES ( ?z ) { ( ontology:Q11204 ) ( ontology:Q701632 ) } } GROUP BY ?x } }
Sri Lanka
action count
action greater
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action count
action filter_multi_types
action find
entity Sri Lanka
relation legislative body
type municipal council
type legislature
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'municipal council'}, {'concept': 'legislature'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { FILTER ( ?q > ?b ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { resource:Sri_Lanka property:legislative_body ?v . { { ?v rdf:type ontology:municipal_council } UNION { ?v rdf:type ontology:legislature } } } } . { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?q ) WHERE { ?l rdf:type ?z . VALUES ( ?z ) { ( ontology:legislature ) ( ontology:municipal_council ) } } GROUP BY ?x } }
[]
municipal council legislature designation for an administrative territorial entity
SYSTEM
55
Q805 Q800 Q1462 Q1250 Q2806757 Q148 Q189 Q786 Q710 Q1460 Q159 Q43 Q792 Q779011 Q889 Q884 Q958 Q12574 Q12761 Q244 Q31 Q30 Q37 Q1447 Q1282 Q1284 Q3389 Q236 Q12661 Q1273 Q1279 Q1049 Q1458 Q227 Q347 Q17 Q902 Q191 Q114 Q1210 Q917 Q736 Q34020 Q686 Q760 Q574 Q1222 Q774 Q948 Q1016 Q27 Q1243 Q12626 Q672 Q1237
(c(Q15617994),P194,c(Q701632)|c(Q11204))
action count
action greater
action union
action find_tuple_counts
relation P194
type Q15617994
type Q701632
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action count
action filter_multi_types
action find
entity Q854
relation P194
type Q701632
type Q11204
[ANSWER]
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q701632'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { FILTER ( ?q > ?b ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { resource:Q854 property:P194 ?v . { { ?v rdf:type ontology:Q701632 } UNION { ?v rdf:type ontology:Q11204 } } } } . { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?q ) WHERE { ?l rdf:type ?z . VALUES ( ?z ) { ( ontology:Q11204 ) ( ontology:Q701632 ) } } GROUP BY ?x } }
Yemen Costa Rica Sardinia Friuli–Venezia Giulia 105 Mile Post Indian Reserve No. 2 People's Republic of China Iceland Dominican Republic Kiribati Sicily Russia Turkey El Salvador Principality of Montenegro Afghanistan South Korea South Sudan Loiret Seine-Saint-Denis Barbados Belgium United States of America Lithuania Apulia Lazio Abruzzo Finistère Montenegro Nord Tuscany Marche Sudan Calabria Azerbaijan Liechtenstein Japan Bangladesh Estonia Kenya Lombardy Bhutan Ecuador Niue Vanuatu Saint Lucia East Timor Aosta Valley Guatemala Tunisia Libya Ireland Veneto Meurthe-et-Moselle Tuvalu Trentino-South Tyrol
55
action count
action greater
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action count
action filter_multi_types
action find
entity Sri Lanka
relation legislative body
type municipal council
type legislature
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'municipal council'}, {'concept': 'legislature'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { FILTER ( ?q > ?b ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { resource:Sri_Lanka property:legislative_body ?v . { { ?v rdf:type ontology:municipal_council } UNION { ?v rdf:type ontology:legislature } } } } . { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?q ) WHERE { ?l rdf:type ?z . VALUES ( ?z ) { ( ontology:legislature ) ( ontology:municipal_council ) } } GROUP BY ?x } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q19850224 Q72449
P17
Q15617994
USER
Which administrative territories are Roccarainola or Chamborgneau located in ?
OR((Q72449,P17,c(Q15617994)), (Q19850224,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q72449
relation P17
action find
entity Q19850224
relation P17
type Q15617994
{'OR': [['Q72449', 'P17', {'concept': 'Q15617994'}], ['Q19850224', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q19850224 property:P17 ?d } UNION { resource:Q72449 property:P17 ?d } } . ?d rdf:type ontology:Q15617994 }
Chamborgneau Roccarainola
action filter_type
action union
action find
entity Roccarainola
relation country
action find
entity Chamborgneau
relation country
type designation for an administrative territorial entity
{'OR': [['Roccarainola', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Chamborgneau', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Chamborgneau property:country ?d } UNION { resource:Roccarainola property:country ?d } } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q31 Q38
SYSTEM
Belgium, Italy
Q31 Q38
OR((Q72449,P17,c(Q15617994)), (Q19850224,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q72449
relation P17
action find
entity Q19850224
relation P17
type Q15617994
Roccarainola or Chamborgneau are located in [ANSWERS]
{'OR': [['Q72449', 'P17', {'concept': 'Q15617994'}], ['Q19850224', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q19850224 property:P17 ?d } UNION { resource:Q72449 property:P17 ?d } } . ?d rdf:type ontology:Q15617994 }
Belgium Italy
Roccarainola or Chamborgneau are located in Belgium and Italy
Belgium Italy
action filter_type
action union
action find
entity Roccarainola
relation country
action find
entity Chamborgneau
relation country
type designation for an administrative territorial entity
{'OR': [['Roccarainola', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Chamborgneau', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Chamborgneau property:country ?d } UNION { resource:Roccarainola property:country ?d } } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q3814502
P27
Q502895
USER
Are Ken Paisli a citizen of those administrative territories ?
(Q3814502,P27,Q31) (Q3814502,P27,Q38)
action is_in
entity prev_answer
action find
entity Q3814502
relation P27
['Q3814502', 'P27', 'Q31'] ['Q3814502', 'P27', 'Q38']
ASK WHERE { resource:Q3814502 property:P27 ?a . VALUES ( ?a ) { ( resource:Q31 ) ( resource:Q38 ) } }
Ken Paisli
action is_in
entity prev_answer
action find
entity Ken Paisli
relation country of citizenship
['Ken Paisli', 'country of citizenship', 'Belgium'] ['Ken Paisli', 'country of citizenship', 'Italy']
ASK WHERE { resource:Ken_Paisli property:country_of_citizenship ?a . VALUES ( ?a ) { ( resource:Belgium ) ( resource:Italy ) } }
[]
common name
SYSTEM
NO
(Q3814502,P27,Q31) (Q3814502,P27,Q38)
action is_in
entity prev_answer
action find
entity Q3814502
relation P27
[ANSWER]
['Q3814502', 'P27', 'Q31'] ['Q3814502', 'P27', 'Q38']
ASK WHERE { resource:Q3814502 property:P27 ?a . VALUES ( ?a ) { ( resource:Q31 ) ( resource:Q38 ) } }
No
action is_in
entity prev_answer
action find
entity Ken Paisli
relation country of citizenship
['Ken Paisli', 'country of citizenship', 'Belgium'] ['Ken Paisli', 'country of citizenship', 'Italy']
ASK WHERE { resource:Ken_Paisli property:country_of_citizenship ?a . VALUES ( ?a ) { ( resource:Belgium ) ( resource:Italy ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have tactful political relations 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 ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?p ) WHERE { ?e rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q15617994 . ?e property:P530 ?j } GROUP BY ?e } . FILTER ( ?p = ?a ) . { SELECT DISTINCT ( MIN ( ?d ) AS ?a ) { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?d ) WHERE { ?i property:P530 ?g . ?i rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q15617994 } GROUP BY ?i } } }
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 ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?p ) WHERE { ?e rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e property:diplomatic_relation ?j } GROUP BY ?e } . FILTER ( ?p = ?a ) . { SELECT DISTINCT ( MIN ( ?d ) AS ?a ) { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?d ) WHERE { ?i property:diplomatic_relation ?g . ?i rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } } }
[]
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] have tactful political relations with min number of administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?p ) WHERE { ?e rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q15617994 . ?e property:P530 ?j } GROUP BY ?e } . FILTER ( ?p = ?a ) . { SELECT DISTINCT ( MIN ( ?d ) AS ?a ) { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?d ) WHERE { ?i property:P530 ?g . ?i rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q15617994 } GROUP BY ?i } } }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea
Gabon, Grenada and Papua New Guinea have tactful political relations 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 ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?p ) WHERE { ?e rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e property:diplomatic_relation ?j } GROUP BY ?e } . FILTER ( ?p = ?a ) . { SELECT DISTINCT ( MIN ( ?d ) AS ?a ) { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?d ) WHERE { ?i property:diplomatic_relation ?g . ?i rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } } }
[]