Simple Question (Direct)
Simple Question
Q3695065
P102
Q7210356
USER
Which party is Hanif Ramay affiliated with ?
(Q3695065,P102,c(Q7210356))
action filter_type
action find
entity Q3695065
relation P102
type Q7210356
['Q3695065', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?m WHERE { resource:Q3695065 property:P102 ?m . ?m rdf:type ontology:Q7210356 }
Hanif Ramay
action filter_type
action find
entity Hanif Ramay
relation member of political party
type political organization
['Hanif Ramay', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?m WHERE { resource:Hanif_Ramay property:member_of_political_party ?m . ?m rdf:type ontology:political_organization }
[]
political organization
Q186591
SYSTEM
Pakistan Peoples Party
Q186591
(Q3695065,P102,c(Q7210356))
action filter_type
action find
entity Q3695065
relation P102
type Q7210356
Hanif Ramay is affiliated with [ANSWER]
['Q3695065', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?m WHERE { resource:Q3695065 property:P102 ?m . ?m rdf:type ontology:Q7210356 }
Pakistan Peoples Party
Hanif Ramay is affiliated with Pakistan Peoples Party
Pakistan Peoples Party
action filter_type
action find
entity Hanif Ramay
relation member of political party
type political organization
['Hanif Ramay', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?m WHERE { resource:Hanif_Ramay property:member_of_political_party ?m . ?m rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3695065
P69
Q3918
USER
What is the university where Hanif Ramay was educated ?
(Q3695065,P69,c(Q3918))
action filter_type
action find
entity Q3695065
relation P69
type Q3918
['Q3695065', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q3918 . resource:Q3695065 property:P69 ?m }
Hanif Ramay
action filter_type
action find
entity Hanif Ramay
relation educated at
type university
['Hanif Ramay', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:university . resource:Hanif_Ramay property:educated_at ?m }
[]
university
Q126726
SYSTEM
Government College University
Q126726
(Q3695065,P69,c(Q3918))
action filter_type
action find
entity Q3695065
relation P69
type Q3918
The university Hanif Ramay was educated is at [ANSWER]
['Q3695065', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q3918 . resource:Q3695065 property:P69 ?m }
Government College University
The university Hanif Ramay was educated is at Government College University
Government College University
action filter_type
action find
entity Hanif Ramay
relation educated at
type university
['Hanif Ramay', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:university . resource:Hanif_Ramay property:educated_at ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3695065
P39
Q12737077
USER
What was the position for which that person was appointed ?
(Q126726,P39,c(Q12737077))
action filter_type
action find
entity Q3695065
relation P39
type Q12737077
['Q126726', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q3695065 property:P39 ?m . ?m rdf:type ontology:Q12737077 }
Hanif Ramay
action filter_type
action find
entity Hanif Ramay
relation position held
type occupation
['Government College University', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Hanif_Ramay property:position_held ?m . ?m rdf:type ontology:occupation }
[]
occupation
Q3695540
SYSTEM
Governor of Punjab, Pakistan
Q3695540
(Q126726,P39,c(Q12737077))
action filter_type
action find
entity Q3695065
relation P39
type Q12737077
The [ANSWER]
['Q126726', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q3695065 property:P39 ?m . ?m rdf:type ontology:Q12737077 }
Governor of Punjab, Pakistan
The Governor of Punjab, Pakistan
Governor of Punjab, Pakistan
action filter_type
action find
entity Hanif Ramay
relation position held
type occupation
['Government College University', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Hanif_Ramay property:position_held ?m . ?m rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q6185563 Q3695065
P106
Q12737077
USER
Which occupations do Hanif Ramay and Jerzy Wiatr do for a living ?
AND((Q3695065,P106,c(Q12737077)), (Q6185563,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q3695065
relation P106
action find
entity Q6185563
relation P106
type Q12737077
{'AND': [['Q3695065', 'P106', {'concept': 'Q12737077'}], ['Q6185563', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?r WHERE { resource:Q3695065 property:P106 ?r . resource:Q6185563 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
Jerzy Wiatr Hanif Ramay
action filter_type
action intersection
action find
entity Hanif Ramay
relation occupation
action find
entity Jerzy Wiatr
relation occupation
type occupation
{'AND': [['Hanif Ramay', 'occupation', {'concept': 'occupation'}], ['Jerzy Wiatr', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?r WHERE { resource:Hanif_Ramay property:occupation ?r . resource:Jerzy_Wiatr property:occupation ?r . ?r rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
AND((Q3695065,P106,c(Q12737077)), (Q6185563,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q3695065
relation P106
action find
entity Q6185563
relation P106
type Q12737077
Hanif Ramay and Jerzy Wiatr do for a living a [ANSWER]
{'AND': [['Q3695065', 'P106', {'concept': 'Q12737077'}], ['Q6185563', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?r WHERE { resource:Q3695065 property:P106 ?r . resource:Q6185563 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
politician
Hanif Ramay and Jerzy Wiatr do for a living a politician
politician
action filter_type
action intersection
action find
entity Hanif Ramay
relation occupation
action find
entity Jerzy Wiatr
relation occupation
type occupation
{'AND': [['Hanif Ramay', 'occupation', {'concept': 'occupation'}], ['Jerzy Wiatr', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?r WHERE { resource:Hanif_Ramay property:occupation ?r . resource:Jerzy_Wiatr property:occupation ?r . ?r rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3695540
P17
Q15617994
USER
Which administrative territory is Governor of Punjab, Pakistan a part of ?
(Q3695540,P17,c(Q15617994))
action filter_type
action find
entity Q3695540
relation P17
type Q15617994
['Q3695540', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . resource:Q3695540 property:P17 ?e }
Governor of Punjab, Pakistan
action filter_type
action find
entity Governor of Punjab, Pakistan
relation country
type designation for an administrative territorial entity
['Governor of Punjab, Pakistan', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Governor_of_Punjab,_Pakistan property:country ?e }
[]
designation for an administrative territorial entity
Q843
SYSTEM
Pakistan
Q843
(Q3695540,P17,c(Q15617994))
action filter_type
action find
entity Q3695540
relation P17
type Q15617994
[ANSWER] is Governor of Punjab, [ANSWER] a part of
['Q3695540', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . resource:Q3695540 property:P17 ?e }
Pakistan
Pakistan is Governor of Punjab, Pakistan a part of
Pakistan
action filter_type
action find
entity Governor of Punjab, Pakistan
relation country
type designation for an administrative territorial entity
['Governor of Punjab, Pakistan', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Governor_of_Punjab,_Pakistan property:country ?e }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories holds diplomatic relationship with max number of administrative territories ?
(c(Q15617994),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?k ) { SELECT DISTINCT ?a ( COUNT ( ?y ) AS ?b ) WHERE { ?a property:P530 ?y . ?a rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } GROUP BY ?a } } . { SELECT DISTINCT ?t ( COUNT ( ?z ) AS ?h ) WHERE { ?t property:P530 ?z . ?t rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q15617994 } GROUP BY ?t } . FILTER ( ?h = ?k ) }
action argmax
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', 'Zambia']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?k ) { SELECT DISTINCT ?a ( COUNT ( ?y ) AS ?b ) WHERE { ?a property:diplomatic_relation ?y . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } } . { SELECT DISTINCT ?t ( COUNT ( ?z ) AS ?h ) WHERE { ?t property:diplomatic_relation ?z . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } . FILTER ( ?h = ?k ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(c(Q15617994),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWER] holds diplomatic relationship with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?k ) { SELECT DISTINCT ?a ( COUNT ( ?y ) AS ?b ) WHERE { ?a property:P530 ?y . ?a rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } GROUP BY ?a } } . { SELECT DISTINCT ?t ( COUNT ( ?z ) AS ?h ) WHERE { ?t property:P530 ?z . ?t rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q15617994 } GROUP BY ?t } . FILTER ( ?h = ?k ) }
Italy
Italy holds diplomatic relationship with max number of administrative territories
Italy
action argmax
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', 'Zambia']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?k ) { SELECT DISTINCT ?a ( COUNT ( ?y ) AS ?b ) WHERE { ?a property:diplomatic_relation ?y . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } } . { SELECT DISTINCT ?t ( COUNT ( ?z ) AS ?h ) WHERE { ?t property:diplomatic_relation ?z . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } . FILTER ( ?h = ?k ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q38 Q347
P530
Q15617994
USER
Does Liechtenstein have a diplomatic relationship with that one ?
(Q38,P530,Q347)
action is_in
entity Q347
action find
entity Q38
relation P530
['Q38', 'P530', 'Q347']
ASK WHERE { resource:Q38 property:P530 resource:Q347 }
Italy Liechtenstein
action is_in
entity Liechtenstein
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Liechtenstein']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Liechtenstein }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q38,P530,Q347)
action is_in
entity Q347
action find
entity Q38
relation P530
[ANSWER]
['Q38', 'P530', 'Q347']
ASK WHERE { resource:Q38 property:P530 resource:Q347 }
Yes
action is_in
entity Liechtenstein
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Liechtenstein']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Liechtenstein }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1836325 Q843
P30
Q2221906
USER
Which geographic locations are Pakistan or Mont Aigoual a part of ?
OR((Q843,P30,c(Q2221906)), (Q1836325,P30,c(Q2221906)))
action filter_type
action union
action find
entity Q843
relation P30
action find
entity Q1836325
relation P30
type Q2221906
{'OR': [['Q843', 'P30', {'concept': 'Q2221906'}], ['Q1836325', 'P30', {'concept': 'Q2221906'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q2221906 . { { resource:Q843 property:P30 ?j } UNION { resource:Q1836325 property:P30 ?j } } }
Mont Aigoual Pakistan
action filter_type
action union
action find
entity Pakistan
relation continent
action find
entity Mont Aigoual
relation continent
type geographic location
{'OR': [['Pakistan', 'continent', {'concept': 'geographic location'}], ['Mont Aigoual', 'continent', {'concept': 'geographic location'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:geographic_location . { { resource:Pakistan property:continent ?j } UNION { resource:Mont_Aigoual property:continent ?j } } }
[]
geographic location
Q46 Q48
SYSTEM
Europe, Asia
Q46 Q48
OR((Q843,P30,c(Q2221906)), (Q1836325,P30,c(Q2221906)))
action filter_type
action union
action find
entity Q843
relation P30
action find
entity Q1836325
relation P30
type Q2221906
[ANSWERS] are Pakistan or Mont Aigoual a part of
{'OR': [['Q843', 'P30', {'concept': 'Q2221906'}], ['Q1836325', 'P30', {'concept': 'Q2221906'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q2221906 . { { resource:Q843 property:P30 ?j } UNION { resource:Q1836325 property:P30 ?j } } }
Europe Asia
Europe and Asia are Pakistan or Mont Aigoual a part of
Europe Asia
action filter_type
action union
action find
entity Pakistan
relation continent
action find
entity Mont Aigoual
relation continent
type geographic location
{'OR': [['Pakistan', 'continent', {'concept': 'geographic location'}], ['Mont Aigoual', 'continent', {'concept': 'geographic location'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:geographic_location . { { resource:Pakistan property:continent ?j } UNION { resource:Mont_Aigoual property:continent ?j } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q52202 Q38
P47 P530
Q15617994
USER
Which administrative territories holds diplomatic relationship with Italy or have a shared border with Supersano ?
OR((Q38,P530,c(Q15617994)), (Q52202,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q38
relation P530
action find
entity Q52202
relation P47
type Q15617994
{'OR': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q52202', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q52202 property:P47 ?y } UNION { resource:Q38 property:P530 ?y } } . ?y rdf:type ontology:Q15617994 }
Supersano Italy
action filter_type
action union
action find
entity Italy
relation diplomatic relation
action find
entity Supersano
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Supersano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Supersano property:shares_border_with ?y } UNION { resource:Italy property:diplomatic_relation ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q258 Q191 Q96 Q805 Q423 Q218 Q159 Q52137 Q52194 Q298
SYSTEM
Some of them are South Africa, Estonia, Mexico, Yemen, North Korea, Romania, Russia, Cutrofiano, Scorrano, Chile
Q805 Q219 Q869 Q801 Q189 Q843 Q928 Q184 Q423 Q822 Q419 Q668 Q32 Q347 Q414 Q142 Q20 Q225 Q224 Q55 Q222 Q221 Q145 Q148 Q96 Q52194 Q31 Q229 Q228 Q33 Q52137 Q17 Q30 Q52132 Q36 Q79 Q52117 Q77 Q37 Q39 Q52171 Q1016 Q739 Q227 Q948 Q191 Q733 Q34 Q52186 Q298 Q45 Q252 Q114 Q399 Q403 Q230 Q233 Q258 Q43 Q212 Q213 Q236 Q211 Q159 Q217 Q214 Q215 Q155 Q218 Q41 Q238 Q796 Q794 Q52125 Q1045 Q889 Q27 Q28 Q29 Q884 Q52164 Q881 Q52182
OR((Q38,P530,c(Q15617994)), (Q52202,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q38
relation P530
action find
entity Q52202
relation P47
type Q15617994
[ANSWERS] hold diplomatic relationship with Italy or have a shared border with Supersano
{'OR': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q52202', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q52202 property:P47 ?y } UNION { resource:Q38 property:P530 ?y } } . ?y rdf:type ontology:Q15617994 }
Yemen Bulgaria Thailand Israel Iceland Pakistan Philippines Belarus North Korea Lebanon Peru India Luxembourg Liechtenstein Argentina France Norway Bosnia and Herzegovina Croatia Netherlands Albania Republic of Macedonia United Kingdom People's Republic of China Mexico Scorrano Belgium Cyprus Andorra Finland Cutrofiano Japan United States of America Collepasso Poland Egypt Botrugno Uruguay Lithuania Switzerland Nociglia Libya Colombia Azerbaijan Tunisia Estonia Paraguay Sweden San Cassiano Chile Portugal Indonesia Kenya Armenia Serbia Georgia Malta South Africa Turkey Ukraine Czech Republic Montenegro Latvia Russia Republic of Moldova Slovakia Slovenia Brazil Romania Greece San Marino Iraq Iran Casarano Somalia Afghanistan Ireland Hungary Spain South Korea Montesano Salentino Vietnam Ruffano
South Africa, Estonia, Mexico, Yemen, North Korea, Romania, Russia, Cutrofiano, Scorrano and Chile hold diplomatic relationship with Italy or have a shared border with Supersano
South Africa Estonia Mexico Yemen North Korea Romania Russia Cutrofiano Scorrano Chile
action filter_type
action union
action find
entity Italy
relation diplomatic relation
action find
entity Supersano
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Supersano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Supersano property:shares_border_with ?y } UNION { resource:Italy property:diplomatic_relation ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q7090736 Q38
P530 P27
Q15617994
USER
Which administrative territories have diplomatic relationships with Italy and are Omphile Ramela an inhabitant of ?
AND((Q38,P530,c(Q15617994)), (Q7090736,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q38
relation P530
action find
entity Q7090736
relation P27
type Q15617994
{'AND': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q7090736', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { resource:Q38 property:P530 ?v . resource:Q7090736 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
Omphile Ramela Italy
action filter_type
action intersection
action find
entity Italy
relation diplomatic relation
action find
entity Omphile Ramela
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Omphile Ramela', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { resource:Italy property:diplomatic_relation ?v . resource:Omphile_Ramela property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q258
SYSTEM
South Africa
Q258
AND((Q38,P530,c(Q15617994)), (Q7090736,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q38
relation P530
action find
entity Q7090736
relation P27
type Q15617994
[ANSWER] have diplomatic relationships with Italy and are Omphile Ramela an inhabitant of
{'AND': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q7090736', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { resource:Q38 property:P530 ?v . resource:Q7090736 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
South Africa
South Africa have diplomatic relationships with Italy and are Omphile Ramela an inhabitant of
South Africa
action filter_type
action intersection
action find
entity Italy
relation diplomatic relation
action find
entity Omphile Ramela
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Omphile Ramela', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { resource:Italy property:diplomatic_relation ?v . resource:Omphile_Ramela property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
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 ?m WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?d ) { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?n ) WHERE { ?e property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q1048835 } GROUP BY ?e } } . { SELECT DISTINCT ?m ( COUNT ( ?l ) AS ?h ) WHERE { ?m property:P530 ?l . ?m rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q15617994 } GROUP BY ?m } . FILTER ( ?h = ?d ) }
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 ?m WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?d ) { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?n ) WHERE { ?e property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:political_territorial_entity } GROUP BY ?e } } . { SELECT DISTINCT ?m ( COUNT ( ?l ) AS ?h ) WHERE { ?m property:diplomatic_relation ?l . ?m rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . FILTER ( ?h = ?d ) }
[]
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 ?m WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?d ) { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?n ) WHERE { ?e property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q1048835 } GROUP BY ?e } } . { SELECT DISTINCT ?m ( COUNT ( ?l ) AS ?h ) WHERE { ?m property:P530 ?l . ?m rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q15617994 } GROUP BY ?m } . FILTER ( ?h = ?d ) }
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 ?m WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?d ) { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?n ) WHERE { ?e property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:political_territorial_entity } GROUP BY ?e } } . { SELECT DISTINCT ?m ( COUNT ( ?l ) AS ?h ) WHERE { ?m property:diplomatic_relation ?l . ?m rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . FILTER ( ?h = ?d ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1000
P1376
Q56061
USER
Which administrative territory is center of administration for that political territory ?
(c(Q56061),P1376,Q1000)
action filter_type
action find_reverse
entity Q1000
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q1000']
SELECT DISTINCT ?l WHERE { ?l property:P1376 resource:Q1000 . ?l rdf:type ontology:Q56061 }
Gabon
action filter_type
action find_reverse
entity Gabon
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Gabon']
SELECT DISTINCT ?l WHERE { ?l property:capital_of resource:Gabon . ?l rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q769
SYSTEM
Did you mean Grenada ?
Q1000 Q769 Q691
(c(Q56061),P1376,Q1000) (c(Q56061),P1376,Q769) (c(Q56061),P1376,Q691)
[ANSWER]
[{'concept': 'Q56061'}, 'P1376', 'Q1000'] [{'concept': 'Q56061'}, 'P1376', 'Q769'] [{'concept': 'Q56061'}, 'P1376', 'Q691']
SELECT DISTINCT ?l WHERE { ?l property:P1376 resource:Q1000 . ?l rdf:type ontology:Q56061 }
Gabon Grenada Papua New Guinea
Did you mean Grenada ?
Grenada
[{'concept': 'administrative territorial entity'}, 'capital of', 'Gabon'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Grenada'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Papua New Guinea']
SELECT DISTINCT ?l WHERE { ?l property:capital_of resource:Gabon . ?l rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Gabon. Could you tell me the answer for that?
(c(Q56061),P1376,Q1000)
Q1000
[{'concept': 'Q56061'}, 'P1376', 'Q1000']
[{'concept': 'administrative territorial entity'}, 'capital of', 'Gabon']
[]
Q3825
SYSTEM
Libreville
Q3825
(c(Q56061),P1376,Q1000)
action filter_type
action find_reverse
entity Q1000
relation P1376
type Q56061
[ANSWER] is center of administration for that political territory
[{'concept': 'Q56061'}, 'P1376', 'Q1000']
SELECT DISTINCT ?l WHERE { ?l property:P1376 resource:Q1000 . ?l rdf:type ontology:Q56061 }
Libreville
Libreville is center of administration for that political territory
Libreville
action filter_type
action find_reverse
entity Gabon
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Gabon']
SELECT DISTINCT ?l WHERE { ?l property:capital_of resource:Gabon . ?l rdf:type ontology:administrative_territorial_entity }
[]