Simple Question (Direct)
Simple Question
Q181168
P641
Q349
USER
What did Bernardo Fernandes da Silva participate in ?
(Q181168,P641,c(Q349))
action filter_type
action find
entity Q181168
relation P641
type Q349
['Q181168', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q349 . resource:Q181168 property:P641 ?v }
Bernardo Fernandes da Silva
action filter_type
action find
entity Bernardo Fernandes da Silva
relation sport
type sport
['Bernardo Fernandes da Silva', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:sport . resource:Bernardo_Fernandes_da_Silva property:sport ?v }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q181168,P641,c(Q349))
action filter_type
action find
entity Q181168
relation P641
type Q349
Bernardo Fernandes da Silva participated in [ANSWER]
['Q181168', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q349 . resource:Q181168 property:P641 ?v }
association football
Bernardo Fernandes da Silva participated in association football
association football
action filter_type
action find
entity Bernardo Fernandes da Silva
relation sport
type sport
['Bernardo Fernandes da Silva', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:sport . resource:Bernardo_Fernandes_da_Silva property:sport ?v }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q181168
P54
Q618123
USER
Which sports team has Bernardo Fernandes da Silva as its member ?
(Q181168,P54,c(Q618123))
action filter_type
action find
entity Q181168
relation P54
type Q618123
['Q181168', 'P54', {'concept': 'Q618123'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q618123 . resource:Q181168 property:P54 ?m }
Bernardo Fernandes da Silva
action filter_type
action find
entity Bernardo Fernandes da Silva
relation member of sports team
type geographical object
['Bernardo Fernandes da Silva', 'member of sports team', {'concept': 'geographical object'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:geographical_object . resource:Bernardo_Fernandes_da_Silva property:member_of_sports_team ?m }
[]
geographical object
Q5014111
SYSTEM
CR Vasco da Gama
Q5014111
(Q181168,P54,c(Q618123))
action filter_type
action find
entity Q181168
relation P54
type Q618123
[ANSWER] has Bernardo Fernandes da Silva as its member
['Q181168', 'P54', {'concept': 'Q618123'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q618123 . resource:Q181168 property:P54 ?m }
CR Vasco da Gama
CR Vasco da Gama has Bernardo Fernandes da Silva as its member
CR Vasco da Gama
action filter_type
action find
entity Bernardo Fernandes da Silva
relation member of sports team
type geographical object
['Bernardo Fernandes da Silva', 'member of sports team', {'concept': 'geographical object'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:geographical_object . resource:Bernardo_Fernandes_da_Silva property:member_of_sports_team ?m }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q181168
P27
Q15617994
USER
Which administrative territory is Bernardo Fernandes da Silva an inhabitant of ?
(Q181168,P27,c(Q15617994))
action filter_type
action find
entity Q181168
relation P27
type Q15617994
['Q181168', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q181168 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
Bernardo Fernandes da Silva
action filter_type
action find
entity Bernardo Fernandes da Silva
relation country of citizenship
type designation for an administrative territorial entity
['Bernardo Fernandes da Silva', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Bernardo_Fernandes_da_Silva property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155
SYSTEM
Brazil
Q155
(Q181168,P27,c(Q15617994))
action filter_type
action find
entity Q181168
relation P27
type Q15617994
[ANSWER] is Bernardo Fernandes da Silva an inhabitant of
['Q181168', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q181168 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
Brazil
Brazil is Bernardo Fernandes da Silva an inhabitant of
Brazil
action filter_type
action find
entity Bernardo Fernandes da Silva
relation country of citizenship
type designation for an administrative territorial entity
['Bernardo Fernandes da Silva', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Bernardo_Fernandes_da_Silva property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5854305
Q15617994
USER
And also tell me about Fabián Villalabeitia?
(Q5854305,P27,c(Q15617994))
action filter_type
action find
entity Q5854305
relation P27
type Q15617994
['Q5854305', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q5854305 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Fabián Villalabeitia
action filter_type
action find
entity Fabián Villalabeitia
relation country of citizenship
type designation for an administrative territorial entity
['Fabián Villalabeitia', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Fabián_Villalabeitia property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q5854305,P27,c(Q15617994))
action filter_type
action find
entity Q5854305
relation P27
type Q15617994
[ANSWER]
['Q5854305', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q5854305 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Spain
Spain
action filter_type
action find
entity Fabián Villalabeitia
relation country of citizenship
type designation for an administrative territorial entity
['Fabián Villalabeitia', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Fabián_Villalabeitia property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q29
P194
Q1752346
USER
Which assembly represents that administrative territory ?
(Q29,P194,c(Q1752346))
action filter_type
action find
entity Q29
relation P194
type Q1752346
['Q29', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?t WHERE { resource:Q29 property:P194 ?t . ?t rdf:type ontology:Q1752346 }
Spain
action filter_type
action find
entity Spain
relation legislative body
type assembly
['Spain', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?t WHERE { resource:Spain property:legislative_body ?t . ?t rdf:type ontology:assembly }
[]
assembly
Q219692
SYSTEM
Cortes Generales
Q219692
(Q29,P194,c(Q1752346))
action filter_type
action find
entity Q29
relation P194
type Q1752346
[ANSWER] represents that administrative territory
['Q29', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?t WHERE { resource:Q29 property:P194 ?t . ?t rdf:type ontology:Q1752346 }
Cortes Generales
Cortes Generales represents that administrative territory
Cortes Generales
action filter_type
action find
entity Spain
relation legislative body
type assembly
['Spain', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?t WHERE { resource:Spain property:legislative_body ?t . ?t rdf:type ontology:assembly }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29
P272
Q838948
USER
Which work of art had Spain as the production company ?
(c(Q838948),P272,Q29)
action filter_type
action find_reverse
entity Q29
relation P272
type Q838948
[{'concept': 'Q838948'}, 'P272', 'Q29']
SELECT DISTINCT ?x WHERE { ?x property:P272 resource:Q29 . ?x rdf:type ontology:Q838948 }
Spain
action filter_type
action find_reverse
entity Spain
relation production company
type work of art
[{'concept': 'work of art'}, 'production company', 'Spain']
SELECT DISTINCT ?x WHERE { ?x property:production_company resource:Spain . ?x rdf:type ontology:work_of_art }
[]
work of art
Q5664643
SYSTEM
Foosball
Q5664643
(c(Q838948),P272,Q29)
action filter_type
action find_reverse
entity Q29
relation P272
type Q838948
[ANSWER] had Spain as the production company
[{'concept': 'Q838948'}, 'P272', 'Q29']
SELECT DISTINCT ?x WHERE { ?x property:P272 resource:Q29 . ?x rdf:type ontology:Q838948 }
Foosball
Foosball had Spain as the production company
Foosball
action filter_type
action find_reverse
entity Spain
relation production company
type work of art
[{'concept': 'work of art'}, 'production company', 'Spain']
SELECT DISTINCT ?x WHERE { ?x property:production_company resource:Spain . ?x rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5664643
P86
Q502895
USER
Who was that work of art composed by ?
(Q5664643,P86,c(Q502895))
action filter_type
action find
entity Q5664643
relation P86
type Q502895
['Q5664643', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q5664643 property:P86 ?t . ?t rdf:type ontology:Q502895 }
Foosball
action filter_type
action find
entity Foosball
relation composer
type common name
['Foosball', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Foosball property:composer ?t . ?t rdf:type ontology:common_name }
[]
common name
Q1337478
SYSTEM
Emilio Kauderer
Q1337478
(Q5664643,P86,c(Q502895))
action filter_type
action find
entity Q5664643
relation P86
type Q502895
[ANSWER] by that work of art was composed
['Q5664643', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q5664643 property:P86 ?t . ?t rdf:type ontology:Q502895 }
Emilio Kauderer
Emilio Kauderer by that work of art was composed
Emilio Kauderer
action filter_type
action find
entity Foosball
relation composer
type common name
['Foosball', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Foosball property:composer ?t . ?t rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1337478 Q5978013
P86
Q838948
USER
Does I Live on Danger have that person as the melodist ?
(Q5978013,P86,Q1337478)
action is_in
entity Q5978013
action find
entity Q1337478
relation P86
['Q5978013', 'P86', 'Q1337478']
ASK WHERE { resource:Q1337478 property:P86 resource:Q5978013 }
Emilio Kauderer I Live on Danger
action is_in
entity I Live on Danger
action find
entity Emilio Kauderer
relation composer
['I Live on Danger', 'composer', 'Emilio Kauderer']
ASK WHERE { resource:Emilio_Kauderer property:composer resource:I_Live_on_Danger }
[]
work of art
SYSTEM
NO
(Q5978013,P86,Q1337478)
action is_in
entity Q5978013
action find
entity Q1337478
relation P86
[ANSWER]
['Q5978013', 'P86', 'Q1337478']
ASK WHERE { resource:Q1337478 property:P86 resource:Q5978013 }
No
action is_in
entity I Live on Danger
action find
entity Emilio Kauderer
relation composer
['I Live on Danger', 'composer', 'Emilio Kauderer']
ASK WHERE { resource:Emilio_Kauderer property:composer resource:I_Live_on_Danger }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q206526 Q5978013
P495 P159
Q15617994
USER
Which administrative territories are the origins of I Live on Danger or are the HQ of Franzburg-Richtenberg ?
OR((Q5978013,P495,c(Q15617994)), (Q206526,P159,c(Q15617994)))
action filter_type
action union
action find
entity Q5978013
relation P495
action find
entity Q206526
relation P159
type Q15617994
{'OR': [['Q5978013', 'P495', {'concept': 'Q15617994'}], ['Q206526', 'P159', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q5978013 property:P495 ?h } UNION { resource:Q206526 property:P159 ?h } } . ?h rdf:type ontology:Q15617994 }
Franzburg-Richtenberg I Live on Danger
action filter_type
action union
action find
entity I Live on Danger
relation country of origin
action find
entity Franzburg-Richtenberg
relation headquarters location
type designation for an administrative territorial entity
{'OR': [['I Live on Danger', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Franzburg-Richtenberg', 'headquarters location', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:I_Live_on_Danger property:country_of_origin ?h } UNION { resource:Franzburg-Richtenberg property:headquarters_location ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q571954
SYSTEM
United States of America, Franzburg
Q30 Q571954
OR((Q5978013,P495,c(Q15617994)), (Q206526,P159,c(Q15617994)))
action filter_type
action union
action find
entity Q5978013
relation P495
action find
entity Q206526
relation P159
type Q15617994
[ANSWERS] are the origins of I Live on Danger or are the HQ of Franzburg-Richtenberg
{'OR': [['Q5978013', 'P495', {'concept': 'Q15617994'}], ['Q206526', 'P159', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q5978013 property:P495 ?h } UNION { resource:Q206526 property:P159 ?h } } . ?h rdf:type ontology:Q15617994 }
United States of America Franzburg
United States of America and Franzburg are the origins of I Live on Danger or are the HQ of Franzburg-Richtenberg
United States of America Franzburg
action filter_type
action union
action find
entity I Live on Danger
relation country of origin
action find
entity Franzburg-Richtenberg
relation headquarters location
type designation for an administrative territorial entity
{'OR': [['I Live on Danger', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Franzburg-Richtenberg', 'headquarters location', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:I_Live_on_Danger property:country_of_origin ?h } UNION { resource:Franzburg-Richtenberg property:headquarters_location ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P495
Q15617994 Q15416 Q2088357
USER
How many administrative territories did atmost 2969 television programs and musical ensembles originate ?
(c(Q15416)|c(Q2088357),P495,c(Q15617994))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
value 2969
[[{'concept': 'Q15416'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?z ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?b ) WHERE { { ?o property:P495 ?j . ?j rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15416 } UNION { ?o property:P495 ?j . ?j rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q2088357 } } GROUP BY ?j } . FILTER ( ?b <= 2969 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
value 2969
[[{'concept': 'television program'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?z ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?b ) WHERE { { ?o property:country_of_origin ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:television_program } UNION { ?o property:country_of_origin ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:musical_ensemble } } GROUP BY ?j } . FILTER ( ?b <= 2969 ) }
[]
designation for an administrative territorial entity television program musical ensemble
SYSTEM
167
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q142 Q55 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q15416)|c(Q2088357),P495,c(Q15617994))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
value 2969
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?z ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?b ) WHERE { { ?o property:P495 ?j . ?j rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15416 } UNION { ?o property:P495 ?j . ?j rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q2088357 } } GROUP BY ?j } . FILTER ( ?b <= 2969 ) }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina France Netherlands Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland 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 Chile 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 Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
167
action count
action atmost
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
value 2969
[[{'concept': 'television program'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?z ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?b ) WHERE { { ?o property:country_of_origin ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:television_program } UNION { ?o property:country_of_origin ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:musical_ensemble } } GROUP BY ?j } . FILTER ( ?b <= 2969 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relations with min number of administrative territories ?
(c(Q15617994),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?n ) { SELECT DISTINCT ?d ( COUNT ( ?h ) AS ?w ) WHERE { ?h rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q1048835 . ?d property:P530 ?h } GROUP BY ?d } } . { SELECT DISTINCT ?y ( COUNT ( ?l ) AS ?x ) WHERE { ?y property:P530 ?l . ?y rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q15617994 } GROUP BY ?y } . FILTER ( ?x = ?n ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?n ) { SELECT DISTINCT ?d ( COUNT ( ?h ) AS ?w ) WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:political_territorial_entity . ?d property:diplomatic_relation ?h } GROUP BY ?d } } . { SELECT DISTINCT ?y ( COUNT ( ?l ) AS ?x ) WHERE { ?y property:diplomatic_relation ?l . ?y rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . FILTER ( ?x = ?n ) }
[]
political territorial entity designation for an administrative territorial entity
Q685 Q691
SYSTEM
Solomon Islands, Papua New Guinea
Q685 Q691
(c(Q15617994),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] have diplomatic relations with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?n ) { SELECT DISTINCT ?d ( COUNT ( ?h ) AS ?w ) WHERE { ?h rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q1048835 . ?d property:P530 ?h } GROUP BY ?d } } . { SELECT DISTINCT ?y ( COUNT ( ?l ) AS ?x ) WHERE { ?y property:P530 ?l . ?y rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q15617994 } GROUP BY ?y } . FILTER ( ?x = ?n ) }
Solomon Islands Papua New Guinea
Solomon Islands and Papua New Guinea have diplomatic relations with min number of administrative territories
Solomon Islands Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?n ) { SELECT DISTINCT ?d ( COUNT ( ?h ) AS ?w ) WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:political_territorial_entity . ?d property:diplomatic_relation ?h } GROUP BY ?d } } . { SELECT DISTINCT ?y ( COUNT ( ?l ) AS ?x ) WHERE { ?y property:diplomatic_relation ?l . ?y rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . FILTER ( ?x = ?n ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q258
P194
Q35749 Q1752346 Q15617994
USER
Which administrative territories have less number of parliaments and assemblies as their representative body than South Africa ?
(c(Q15617994),P194,c(Q35749)|c(Q1752346))
action less
action union
action find_tuple_counts
relation P194
type Q15617994
type Q35749
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
action count
action filter_multi_types
action find
entity Q258
relation P194
type Q35749
type Q1752346
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q35749'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) WHERE { resource:Q258 property:P194 ?j . { VALUES ( ?r ) { ( ontology:Q1752346 ) ( ontology:Q35749 ) } . ?j rdf:type ?r } } } . FILTER ( ?l < ?u ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) ?d WHERE { VALUES ( ?z ) { ( ontology:Q35749 ) ( ontology:Q1752346 ) } . ?n rdf:type ?z } GROUP BY ?d } }
South Africa
action less
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type parliament
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
action count
action filter_multi_types
action find
entity South Africa
relation legislative body
type parliament
type assembly
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'parliament'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) WHERE { resource:South_Africa property:legislative_body ?j . { VALUES ( ?r ) { ( ontology:assembly ) ( ontology:parliament ) } . ?j rdf:type ?r } } } . FILTER ( ?l < ?u ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) ?d WHERE { VALUES ( ?z ) { ( ontology:parliament ) ( ontology:assembly ) } . ?n rdf:type ?z } GROUP BY ?d } }
[]
parliament assembly designation for an administrative territorial entity
Q30 Q148 Q17
SYSTEM
United States of America, People's Republic of China, Japan
Q805 Q800 Q1462 Q1250 Q2806757 Q148 Q189 Q786 Q710 Q252320 Q187035 Q1460 Q3361 Q43 Q792 Q779011 Q889 Q884 Q958 Q12574 Q153529 Q12761 Q244 Q32 Q31 Q30 Q37 Q1447 Q104192 Q603676 Q1282 Q1284 Q3389 Q236 Q12661 Q1273 Q1279 Q1049 Q1458 Q227 Q347 Q17 Q902 Q191 Q114 Q1210 Q917 Q736 Q34020 Q686 Q760 Q574 Q694594 Q1222 Q774 Q948 Q1016 Q27 Q1011 Q1243 Q12620 Q12626 Q672 Q1237
(c(Q15617994),P194,c(Q35749)|c(Q1752346))
action less
action union
action find_tuple_counts
relation P194
type Q15617994
type Q35749
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
action count
action filter_multi_types
action find
entity Q258
relation P194
type Q35749
type Q1752346
[ANSWERS] have less number of parliaments and assemblies as their representative body than South Africa
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q35749'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) WHERE { resource:Q258 property:P194 ?j . { VALUES ( ?r ) { ( ontology:Q1752346 ) ( ontology:Q35749 ) } . ?j rdf:type ?r } } } . FILTER ( ?l < ?u ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) ?d WHERE { VALUES ( ?z ) { ( ontology:Q35749 ) ( ontology:Q1752346 ) } . ?n rdf:type ?z } GROUP BY ?d } }
Yemen Costa Rica Sardinia Friuli–Venezia Giulia 105 Mile Post Indian Reserve No. 2 People's Republic of China Iceland Dominican Republic Kiribati Pleinfeld Principality of Albania Sicily Doubs Turkey El Salvador Principality of Montenegro Afghanistan South Korea South Sudan Loiret Duchy of Milan Seine-Saint-Denis Barbados Luxembourg Belgium United States of America Lithuania Apulia Kleinmachnow District of Keewatin 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 Bremen-Verden Aosta Valley Guatemala Tunisia Libya Ireland Cape Verde Veneto Mayenne Meurthe-et-Moselle Tuvalu Trentino-South Tyrol
United States of America, People's Republic of China and Japan have less number of parliaments and assemblies as their representative body than South Africa
United States of America People's Republic of China Japan
action less
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type parliament
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
action count
action filter_multi_types
action find
entity South Africa
relation legislative body
type parliament
type assembly
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'parliament'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) WHERE { resource:South_Africa property:legislative_body ?j . { VALUES ( ?r ) { ( ontology:assembly ) ( ontology:parliament ) } . ?j rdf:type ?r } } } . FILTER ( ?l < ?u ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) ?d WHERE { VALUES ( ?z ) { ( ontology:parliament ) ( ontology:assembly ) } . ?n rdf:type ?z } GROUP BY ?d } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q29
P194
Q35749 Q1752346 Q15617994
USER
And how about Spain?
(c(Q15617994),P194,c(Q35749)|c(Q1752346))
action less
action union
action find_tuple_counts
relation P194
type Q15617994
type Q35749
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
action count
action filter_multi_types
action find
entity Q29
relation P194
type Q35749
type Q1752346
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q35749'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { resource:Q29 property:P194 ?w . { { ?w rdf:type ontology:Q35749 } UNION { ?w rdf:type ontology:Q1752346 } } } } . FILTER ( ?q < ?h ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) ?r WHERE { { ?r property:P194 ?x . ?r rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q35749 } UNION { ?r property:P194 ?x . ?r rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1752346 } } GROUP BY ?r } }
Spain
action less
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type parliament
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
action count
action filter_multi_types
action find
entity Spain
relation legislative body
type parliament
type assembly
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'parliament'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { resource:Spain property:legislative_body ?w . { { ?w rdf:type ontology:parliament } UNION { ?w rdf:type ontology:assembly } } } } . FILTER ( ?q < ?h ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) ?r WHERE { { ?r property:legislative_body ?x . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:parliament } UNION { ?r property:legislative_body ?x . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:assembly } } GROUP BY ?r } }
[]
parliament assembly designation for an administrative territorial entity
Q30 Q148 Q17
SYSTEM
United States of America, People's Republic of China, Japan
Q805 Q800 Q1462 Q1250 Q2806757 Q148 Q189 Q786 Q710 Q252320 Q187035 Q1460 Q3361 Q43 Q792 Q779011 Q889 Q884 Q958 Q12574 Q153529 Q12761 Q244 Q32 Q31 Q30 Q37 Q1447 Q104192 Q603676 Q1282 Q1284 Q3389 Q236 Q12661 Q1273 Q1279 Q1049 Q1458 Q227 Q347 Q17 Q902 Q191 Q114 Q1210 Q917 Q736 Q34020 Q686 Q760 Q574 Q694594 Q1222 Q774 Q948 Q1016 Q27 Q1011 Q1243 Q12620 Q12626 Q672 Q1237
(c(Q15617994),P194,c(Q35749)|c(Q1752346))
action less
action union
action find_tuple_counts
relation P194
type Q15617994
type Q35749
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
action count
action filter_multi_types
action find
entity Q29
relation P194
type Q35749
type Q1752346
[ANSWERS]
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q35749'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { resource:Q29 property:P194 ?w . { { ?w rdf:type ontology:Q35749 } UNION { ?w rdf:type ontology:Q1752346 } } } } . FILTER ( ?q < ?h ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) ?r WHERE { { ?r property:P194 ?x . ?r rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q35749 } UNION { ?r property:P194 ?x . ?r rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1752346 } } GROUP BY ?r } }
Yemen Costa Rica Sardinia Friuli–Venezia Giulia 105 Mile Post Indian Reserve No. 2 People's Republic of China Iceland Dominican Republic Kiribati Pleinfeld Principality of Albania Sicily Doubs Turkey El Salvador Principality of Montenegro Afghanistan South Korea South Sudan Loiret Duchy of Milan Seine-Saint-Denis Barbados Luxembourg Belgium United States of America Lithuania Apulia Kleinmachnow District of Keewatin 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 Bremen-Verden Aosta Valley Guatemala Tunisia Libya Ireland Cape Verde Veneto Mayenne Meurthe-et-Moselle Tuvalu Trentino-South Tyrol
United States of America People's Republic of China Japan
action less
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type parliament
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
action count
action filter_multi_types
action find
entity Spain
relation legislative body
type parliament
type assembly
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'parliament'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { resource:Spain property:legislative_body ?w . { { ?w rdf:type ontology:parliament } UNION { ?w rdf:type ontology:assembly } } } } . FILTER ( ?q < ?h ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) ?r WHERE { { ?r property:legislative_body ?x . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:parliament } UNION { ?r property:legislative_body ?x . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:assembly } } GROUP BY ?r } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q155
P530
Q15617994
USER
Do Brazil have diplomatic associations with those ones ?
(Q155,P530,Q30) (Q155,P530,Q148) (Q155,P530,Q17)
action is_in
entity prev_answer
action find
entity Q155
relation P530
['Q155', 'P530', 'Q30'] ['Q155', 'P530', 'Q148'] ['Q155', 'P530', 'Q17']
ASK WHERE { resource:Q155 property:P530 ?n . VALUES ( ?n ) { ( resource:Q805 ) ( resource:Q800 ) ( resource:Q1462 ) } }
Brazil
action is_in
entity prev_answer
action find
entity Brazil
relation diplomatic relation
['Brazil', 'diplomatic relation', 'United States of America'] ['Brazil', 'diplomatic relation', "People's Republic of China"] ['Brazil', 'diplomatic relation', 'Japan']
ASK WHERE { resource:Brazil property:diplomatic_relation ?n . VALUES ( ?n ) { ( resource:Yemen ) ( resource:Costa_Rica ) ( resource:Sardinia ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q155,P530,Q30) (Q155,P530,Q148) (Q155,P530,Q17)
action is_in
entity prev_answer
action find
entity Q155
relation P530
[ANSWER]
['Q155', 'P530', 'Q30'] ['Q155', 'P530', 'Q148'] ['Q155', 'P530', 'Q17']
ASK WHERE { resource:Q155 property:P530 ?n . VALUES ( ?n ) { ( resource:Q805 ) ( resource:Q800 ) ( resource:Q1462 ) } }
Yes
action is_in
entity prev_answer
action find
entity Brazil
relation diplomatic relation
['Brazil', 'diplomatic relation', 'United States of America'] ['Brazil', 'diplomatic relation', "People's Republic of China"] ['Brazil', 'diplomatic relation', 'Japan']
ASK WHERE { resource:Brazil property:diplomatic_relation ?n . VALUES ( ?n ) { ( resource:Yemen ) ( resource:Costa_Rica ) ( resource:Sardinia ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have tactful political relations with min number of administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?r ) AS ?n ) WHERE { ?v property:P530 ?r . ?v rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q15617994 } GROUP BY ?v } . FILTER ( ?n = ?m ) . { SELECT DISTINCT ( MIN ( ?h ) AS ?m ) { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?h ) WHERE { ?s property:P530 ?c . ?s rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?s } } }
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?r ) AS ?n ) WHERE { ?v property:diplomatic_relation ?r . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } . FILTER ( ?n = ?m ) . { SELECT DISTINCT ( MIN ( ?h ) AS ?m ) { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?h ) WHERE { ?s property:diplomatic_relation ?c . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q29999 Q786 Q924
SYSTEM
Kingdom of the Netherlands, Dominican Republic, Tanzania
Q702 Q804 Q262 Q265 Q712 Q837 Q657 Q792 Q986 Q242 Q811 Q924 Q29999 Q854 Q819 Q424 Q730 Q232 Q921 Q1027 Q1020 Q1028 Q786 Q1036 Q1037 Q974 Q1032 Q1030 Q965 Q967 Q963 Q697 Q695 Q115 Q117 Q754 Q912 Q1007 Q1006 Q1005 Q1009 Q1008 Q971 Q683 Q686 Q836 Q774 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWERS] have tactful political relations with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?r ) AS ?n ) WHERE { ?v property:P530 ?r . ?v rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q15617994 } GROUP BY ?v } . FILTER ( ?n = ?m ) . { SELECT DISTINCT ( MIN ( ?h ) AS ?m ) { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?h ) WHERE { ?s property:P530 ?c . ?s rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?s } } }
Federated States of Micronesia Panama Algeria Uzbekistan Fiji Nepal Chad El Salvador Eritrea Belize Nicaragua Tanzania Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Kazakhstan Brunei Mauritius Malawi Morocco Dominican Republic Uganda Rwanda Democratic Republic of the Congo Niger Namibia Burkina Faso Burundi Botswana Nauru Palau Ethiopia Ghana Trinidad and Tobago Mali Guinea-Bissau Guinea Gambia Cameroon Côte d'Ivoire Republic of the Congo Samoa Vanuatu Myanmar Guatemala Kuwait Madagascar Togo Tonga New Caledonia
Kingdom of the Netherlands, Dominican Republic and Tanzania have tactful political relations with min number of administrative territories
Kingdom of the Netherlands Dominican Republic Tanzania
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?r ) AS ?n ) WHERE { ?v property:diplomatic_relation ?r . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } . FILTER ( ?n = ?m ) . { SELECT DISTINCT ( MIN ( ?h ) AS ?m ) { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?h ) WHERE { ?s property:diplomatic_relation ?c . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } } }
[]