Simple Question (Direct)
Simple Question
Q2898787
P611
Q1530022
USER
What religion is Bernard de Brienne affiliated to ?
(Q2898787,P611,c(Q1530022))
action filter_type
action find
entity Q2898787
relation P611
type Q1530022
['Q2898787', 'P611', {'concept': 'Q1530022'}]
SELECT DISTINCT ?t WHERE { resource:Q2898787 property:P611 ?t . ?t rdf:type ontology:Q1530022 }
Bernard de Brienne
action filter_type
action find
entity Bernard de Brienne
relation religious order
type religious organization
['Bernard de Brienne', 'religious order', {'concept': 'religious organization'}]
SELECT DISTINCT ?t WHERE { resource:Bernard_de_Brienne property:religious_order ?t . ?t rdf:type ontology:religious_organization }
[]
religious organization
Q913972
SYSTEM
Order of Friars Minor
Q913972
(Q2898787,P611,c(Q1530022))
action filter_type
action find
entity Q2898787
relation P611
type Q1530022
Bernard de Brienne is affiliated to [ANSWER]
['Q2898787', 'P611', {'concept': 'Q1530022'}]
SELECT DISTINCT ?t WHERE { resource:Q2898787 property:P611 ?t . ?t rdf:type ontology:Q1530022 }
Order of Friars Minor
Bernard de Brienne is affiliated to Order of Friars Minor
Order of Friars Minor
action filter_type
action find
entity Bernard de Brienne
relation religious order
type religious organization
['Bernard de Brienne', 'religious order', {'concept': 'religious organization'}]
SELECT DISTINCT ?t WHERE { resource:Bernard_de_Brienne property:religious_order ?t . ?t rdf:type ontology:religious_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2898787
P19
Q56061
USER
Which administrative territory was that person born at ?
(Q913972,P19,c(Q56061))
action filter_type
action find
entity Q2898787
relation P19
type Q56061
['Q913972', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q2898787 property:P19 ?a . ?a rdf:type ontology:Q56061 }
Bernard de Brienne
action filter_type
action find
entity Bernard de Brienne
relation place of birth
type administrative territorial entity
['Order of Friars Minor', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Bernard_de_Brienne property:place_of_birth ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q340
SYSTEM
Montreal
Q340
(Q913972,P19,c(Q56061))
action filter_type
action find
entity Q2898787
relation P19
type Q56061
That person was born in [ANSWER]
['Q913972', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q2898787 property:P19 ?a . ?a rdf:type ontology:Q56061 }
Montreal
That person was born in Montreal
Montreal
action filter_type
action find
entity Bernard de Brienne
relation place of birth
type administrative territorial entity
['Order of Friars Minor', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Bernard_de_Brienne property:place_of_birth ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6283363 Q2898787
P27
Q1048835
USER
Which political territories are Bernard de Brienne or Joseph Gariépy an inhabitant of ?
OR((Q2898787,P27,c(Q1048835)), (Q6283363,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q2898787
relation P27
action find
entity Q6283363
relation P27
type Q1048835
{'OR': [['Q2898787', 'P27', {'concept': 'Q1048835'}], ['Q6283363', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q1048835 . { ?r property:P27 ?y . VALUES ( ?r ) { ( resource:Q2898787 ) ( resource:Q6283363 ) } } }
Joseph Gariépy Bernard de Brienne
action filter_type
action union
action find
entity Bernard de Brienne
relation country of citizenship
action find
entity Joseph Gariépy
relation country of citizenship
type political territorial entity
{'OR': [['Bernard de Brienne', 'country of citizenship', {'concept': 'political territorial entity'}], ['Joseph Gariépy', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:political_territorial_entity . { ?r property:country_of_citizenship ?y . VALUES ( ?r ) { ( resource:Bernard_de_Brienne ) ( resource:Joseph_Gariépy ) } } }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
OR((Q2898787,P27,c(Q1048835)), (Q6283363,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q2898787
relation P27
action find
entity Q6283363
relation P27
type Q1048835
[ANSWER] is Bernard de Brienne or Joseph Gariépy an inhabitant of
{'OR': [['Q2898787', 'P27', {'concept': 'Q1048835'}], ['Q6283363', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q1048835 . { ?r property:P27 ?y . VALUES ( ?r ) { ( resource:Q2898787 ) ( resource:Q6283363 ) } } }
Canada
Canada is Bernard de Brienne or Joseph Gariépy an inhabitant of
Canada
action filter_type
action union
action find
entity Bernard de Brienne
relation country of citizenship
action find
entity Joseph Gariépy
relation country of citizenship
type political territorial entity
{'OR': [['Bernard de Brienne', 'country of citizenship', {'concept': 'political territorial entity'}], ['Joseph Gariépy', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:political_territorial_entity . { ?r property:country_of_citizenship ?y . VALUES ( ?r ) { ( resource:Bernard_de_Brienne ) ( resource:Joseph_Gariépy ) } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relations with max number of political territories ?
(c(Q1048835),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q766']
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?p ) AS ?v ) WHERE { ?q property:P530 ?p . ?q rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q1048835 } GROUP BY ?q } . FILTER ( ?v = ?r ) . { SELECT DISTINCT ( MAX ( ?b ) AS ?r ) { SELECT DISTINCT ?k ( COUNT ( ?l ) AS ?b ) WHERE { ?k property:P530 ?l . ?k rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q1048835 } GROUP BY ?k } } }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?p ) AS ?v ) WHERE { ?q property:diplomatic_relation ?p . ?q rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:political_territorial_entity } GROUP BY ?q } . FILTER ( ?v = ?r ) . { SELECT DISTINCT ( MAX ( ?b ) AS ?r ) { SELECT DISTINCT ?k ( COUNT ( ?l ) AS ?b ) WHERE { ?k property:diplomatic_relation ?l . ?k rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:political_territorial_entity } GROUP BY ?k } } }
[]
political territorial entity political territorial entity
Q408
SYSTEM
Australia
Q408
(c(Q1048835),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[ANSWER] have diplomatic relations with max number of political territories
[{'concept': 'Q1048835'}, 'P530', 'Q766']
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?p ) AS ?v ) WHERE { ?q property:P530 ?p . ?q rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q1048835 } GROUP BY ?q } . FILTER ( ?v = ?r ) . { SELECT DISTINCT ( MAX ( ?b ) AS ?r ) { SELECT DISTINCT ?k ( COUNT ( ?l ) AS ?b ) WHERE { ?k property:P530 ?l . ?k rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q1048835 } GROUP BY ?k } } }
Australia
Australia have diplomatic relations with max number of political territories
Australia
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?p ) AS ?v ) WHERE { ?q property:diplomatic_relation ?p . ?q rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:political_territorial_entity } GROUP BY ?q } . FILTER ( ?v = ?r ) . { SELECT DISTINCT ( MAX ( ?b ) AS ?r ) { SELECT DISTINCT ?k ( COUNT ( ?l ) AS ?b ) WHERE { ?k property:diplomatic_relation ?l . ?k rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:political_territorial_entity } GROUP BY ?k } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q819
P530
Q1048835 Q15617994
USER
Which administrative territories have ambassadorial relations with around the same number of political territories as Laos ?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q819
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?q ) WHERE { ?u rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 . ?h property:P530 ?u } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { resource:Q819 property:P530 ?m . ?m rdf:type ontology:Q15617994 } } . FILTER ( ?q = ?c ) }
Laos
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Laos
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?q ) WHERE { ?u rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h property:diplomatic_relation ?u } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { resource:Laos property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?q = ?c ) }
[]
political territorial entity designation for an administrative territorial entity
Q55 Q148 Q184
SYSTEM
Netherlands, People's Republic of China, Belarus
Q702 Q804 Q800 Q805 Q419 Q668 Q414 Q55 Q262 Q148 Q783 Q265 Q37 Q712 Q717 Q837 Q399 Q398 Q657 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q32 Q31 Q924 Q928 Q929 Q983 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q184 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q117 Q754 Q750 Q213 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q858 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q819
relation P530
type Q15617994
[ANSWERS] have ambassadorial relations with around the same number of political territories as Laos
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?q ) WHERE { ?u rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 . ?h property:P530 ?u } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { resource:Q819 property:P530 ?m . ?m rdf:type ontology:Q15617994 } } . FILTER ( ?q = ?c ) }
Federated States of Micronesia Panama Costa Rica Yemen Peru India Argentina Netherlands Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Venezuela Nepal Armenia Bahrain Chad Portugal Greece El Salvador Haiti Iraq Iran Zimbabwe South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Luxembourg Belgium Tanzania Philippines Central African Republic Equatorial Guinea Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Somalia Senegal Hungary Brunei Sudan Mauritius Malawi Iceland Oman Belarus Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ghana Trinidad and Tobago Bolivia Czech Republic Latvia Republic of Moldova Slovakia Slovenia Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Syria Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
Netherlands, People's Republic of China and Belarus have ambassadorial relations with around the same number of political territories as Laos
Netherlands People's Republic of China Belarus
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Laos
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?q ) WHERE { ?u rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h property:diplomatic_relation ?u } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { resource:Laos property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?q = ?c ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic relations with atmost 18 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 18
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?t <= 18 ) . { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?t ) WHERE { ?z property:P530 ?q . ?z rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 } GROUP BY ?z } }
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 18
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?t <= 18 ) . { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?t ) WHERE { ?z property:diplomatic_relation ?q . ?z rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q40 Q664
SYSTEM
Denmark, Austria, New Zealand
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 18
[ANSWERS] have diplomatic relations with atmost 18 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?t <= 18 ) . { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?t ) WHERE { ?z property:P530 ?q . ?z rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 } GROUP BY ?z } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
Denmark, Austria and New Zealand have diplomatic relations with atmost 18 administrative territories
Denmark Austria New Zealand
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 18
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?t <= 18 ) . { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?t ) WHERE { ?z property:diplomatic_relation ?q . ?z rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q40
P1313
Q12737077
USER
Which occupation is fulfilled by that political territory ?
(Q40,P1313,c(Q12737077))
action filter_type
action find
entity Q40
relation P1313
type Q12737077
['Q40', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q40 property:P1313 ?i . ?i rdf:type ontology:Q12737077 }
Austria
action filter_type
action find
entity Austria
relation office held by head of government
type occupation
['Austria', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Austria property:office_held_by_head_of_government ?i . ?i rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q35
SYSTEM
Did you mean Denmark ?
Q35 Q40 Q664
(Q35,P1313,c(Q12737077)) (Q40,P1313,c(Q12737077)) (Q664,P1313,c(Q12737077))
[ANSWER]
['Q35', 'P1313', {'concept': 'Q12737077'}] ['Q40', 'P1313', {'concept': 'Q12737077'}] ['Q664', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q40 property:P1313 ?i . ?i rdf:type ontology:Q12737077 }
Denmark Austria New Zealand
Did you mean Denmark ?
Denmark
['Denmark', 'office held by head of government', {'concept': 'occupation'}] ['Austria', 'office held by head of government', {'concept': 'occupation'}] ['New Zealand', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Austria property:office_held_by_head_of_government ?i . ?i rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
No, I meant Austria. Could you tell me the answer for that?
(Q40,P1313,c(Q12737077))
Q40
['Q40', 'P1313', {'concept': 'Q12737077'}]
['Austria', 'office held by head of government', {'concept': 'occupation'}]
[]
Q1006398
SYSTEM
Federal Chancellor of Austria
Q1006398
(Q40,P1313,c(Q12737077))
action filter_type
action find
entity Q40
relation P1313
type Q12737077
The [ANSWER] is fulfilled by that political territory
['Q40', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q40 property:P1313 ?i . ?i rdf:type ontology:Q12737077 }
Federal Chancellor of Austria
The Federal Chancellor of Austria is fulfilled by that political territory
Federal Chancellor of Austria
action filter_type
action find
entity Austria
relation office held by head of government
type occupation
['Austria', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Austria property:office_held_by_head_of_government ?i . ?i rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1006398 Q11715
P39
Q502895
USER
Was Leopold Figl responsible for occupying the position of that occupation ?
(Q11715,P39,Q1006398)
action is_in
entity Q1006398
action find
entity Q11715
relation P39
['Q11715', 'P39', 'Q1006398']
ASK WHERE { resource:Q11715 property:P39 resource:Q1006398 }
Federal Chancellor of Austria Leopold Figl
action is_in
entity Federal Chancellor of Austria
action find
entity Leopold Figl
relation position held
['Leopold Figl', 'position held', 'Federal Chancellor of Austria']
ASK WHERE { resource:Leopold_Figl property:position_held resource:Federal_Chancellor_of_Austria }
[]
common name
SYSTEM
YES
(Q11715,P39,Q1006398)
action is_in
entity Q1006398
action find
entity Q11715
relation P39
[ANSWER]
['Q11715', 'P39', 'Q1006398']
ASK WHERE { resource:Q11715 property:P39 resource:Q1006398 }
Yes
action is_in
entity Federal Chancellor of Austria
action find
entity Leopold Figl
relation position held
['Leopold Figl', 'position held', 'Federal Chancellor of Austria']
ASK WHERE { resource:Leopold_Figl property:position_held resource:Federal_Chancellor_of_Austria }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q55
P1001
Q895526 Q2712963
USER
How many authority organs or abstract nouns apply to jurisdiction over Netherlands ?
(c(Q895526),P1001,Q55) (c(Q2712963),P1001,Q55)
action count
action union
action filter_type
action find_reverse
entity Q55
relation P1001
type Q895526
action filter_type
action find_reverse
entity Q55
relation P1001
type Q2712963
[{'concept': 'Q895526'}, 'P1001', 'Q55'] [{'concept': 'Q2712963'}, 'P1001', 'Q55']
SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { { ?k rdf:type ontology:Q895526 . ?k property:P1001 resource:Q55 } UNION { ?k property:P1001 resource:Q55 . ?k rdf:type ontology:Q2712963 } }
Netherlands
action count
action union
action filter_type
action find_reverse
entity Netherlands
relation applies to jurisdiction
type authority organ
action filter_type
action find_reverse
entity Netherlands
relation applies to jurisdiction
type abstract noun
[{'concept': 'authority organ'}, 'applies to jurisdiction', 'Netherlands'] [{'concept': 'abstract noun'}, 'applies to jurisdiction', 'Netherlands']
SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { { ?k rdf:type ontology:authority_organ . ?k property:applies_to_jurisdiction resource:Netherlands } UNION { ?k property:applies_to_jurisdiction resource:Netherlands . ?k rdf:type ontology:abstract_noun } }
[]
authority organ abstract noun
SYSTEM
4
Q1436139 Q17375963 Q19605764 Q146839
(c(Q895526),P1001,Q55) (c(Q2712963),P1001,Q55)
action count
action union
action filter_type
action find_reverse
entity Q55
relation P1001
type Q895526
action filter_type
action find_reverse
entity Q55
relation P1001
type Q2712963
[ANSWER]
[{'concept': 'Q895526'}, 'P1001', 'Q55'] [{'concept': 'Q2712963'}, 'P1001', 'Q55']
SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { { ?k rdf:type ontology:Q895526 . ?k property:P1001 resource:Q55 } UNION { ?k property:P1001 resource:Q55 . ?k rdf:type ontology:Q2712963 } }
Naamloze vennootschap Besloten vennootschap met beperkte aansprakelijkheid stichting Dijkgraaf
4
action count
action union
action filter_type
action find_reverse
entity Netherlands
relation applies to jurisdiction
type authority organ
action filter_type
action find_reverse
entity Netherlands
relation applies to jurisdiction
type abstract noun
[{'concept': 'authority organ'}, 'applies to jurisdiction', 'Netherlands'] [{'concept': 'abstract noun'}, 'applies to jurisdiction', 'Netherlands']
SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { { ?k rdf:type ontology:authority_organ . ?k property:applies_to_jurisdiction resource:Netherlands } UNION { ?k property:applies_to_jurisdiction resource:Netherlands . ?k rdf:type ontology:abstract_noun } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q12595
P190
Q515 Q56061 Q1048835
USER
Which political territories are twin city of more number of cities and administrative territories than Palafolls ?
(c(Q1048835),P190,c(Q515)|c(Q56061))
action greater
action union
action find_tuple_counts
relation P190
type Q1048835
type Q515
action find_tuple_counts
relation P190
type Q1048835
type Q56061
action count
action filter_multi_types
action find
entity Q12595
relation P190
type Q515
type Q56061
[{'concept': 'Q1048835'}, 'P190', [{'concept': 'Q515'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) ?t WHERE { { ?t property:P190 ?x . ?t rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q515 } UNION { ?t property:P190 ?x . ?t rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q56061 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { { { ?a rdf:type ontology:Q515 } UNION { ?a rdf:type ontology:Q56061 } } . resource:Q12595 property:P190 ?a } } . FILTER ( ?q > ?k ) }
Palafolls
action greater
action union
action find_tuple_counts
relation sister city
type political territorial entity
type city
action find_tuple_counts
relation sister city
type political territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find
entity Palafolls
relation sister city
type city
type administrative territorial entity
[{'concept': 'political territorial entity'}, 'sister city', [{'concept': 'city'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) ?t WHERE { { ?t property:sister_city ?x . ?t rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:city } UNION { ?t property:sister_city ?x . ?t rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:administrative_territorial_entity } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { { { ?a rdf:type ontology:city } UNION { ?a rdf:type ontology:administrative_territorial_entity } } . resource:Palafolls property:sister_city ?a } } . FILTER ( ?q > ?k ) }
[]
city administrative territorial entity political territorial entity
Q436491 Q16572 Q5826
SYSTEM
Altea, Guangzhou, Xi'an
Q473250 Q484717 Q36947 Q1794732 Q15473 Q484552 Q786126 Q1643855 Q187826 Q164197 Q926713 Q15619 Q321331 Q667682 Q433632 Q842713 Q210887 Q30002 Q659450 Q693258 Q4480 Q15470 Q168376 Q11286 Q208669 Q15430 Q109188 Q538809 Q277302 Q642083 Q752280 Q326651 Q41157 Q899884 Q832246 Q2566267 Q164867 Q11746 Q499922 Q2392504 Q54902 Q840362 Q1439157 Q398698 Q1616611 Q1621191 Q535531 Q49581 Q1637478 Q13521 Q694833 Q5123 Q4970 Q193780 Q178993 Q15950 Q3850873 Q64010 Q917693 Q156819 Q1757489 Q550974 Q1010314 Q478818 Q15602 Q180981 Q15174 Q489839 Q487801 Q13855 Q15649 Q1919317 Q1635711 Q3397684 Q428954 Q48344 Q748078 Q11822 Q15429 Q798747 Q8182 Q691525 Q980131 Q1758806 Q616621 Q7898 Q15551 Q973325 Q817960 Q693913 Q12812 Q840373 Q767222 Q170322 Q42956 Q55480 Q189848 Q1641529 Q281272 Q377244 Q216802 Q436491 Q512009 Q131620 Q221749 Q1917834 Q572800 Q170247 Q47475 Q11492 Q642046 Q4068849 Q487096 Q623685 Q622836 Q672483 Q748867 Q993466 Q1639365 Q1758141 Q936624 Q534483 Q1605505 Q615722 Q995637 Q468563 Q918586 Q944264 Q632621 Q581589 Q932808 Q696797 Q1794121 Q18288148 Q488555 Q49571 Q695456 Q3586 Q1026229 Q92161 Q851020 Q643919 Q10863 Q5978 Q928094 Q825883 Q697126 Q11720 Q677038 Q12534 Q550985 Q1601614 Q353618 Q42780 Q984821 Q13930 Q16572 Q23042 Q211925 Q5783 Q835012 Q976534 Q202316 Q13149 Q290824 Q13755 Q7911 Q77433 Q318314 Q41161 Q74881 Q622823 Q15974 Q830776 Q242906 Q1228035 Q15623 Q5826 Q240 Q192387 Q1242382 Q203040 Q201149 Q68744 Q904130 Q714613 Q646564 Q47593 Q984642
(c(Q1048835),P190,c(Q515)|c(Q56061))
action greater
action union
action find_tuple_counts
relation P190
type Q1048835
type Q515
action find_tuple_counts
relation P190
type Q1048835
type Q56061
action count
action filter_multi_types
action find
entity Q12595
relation P190
type Q515
type Q56061
[ANSWERS] are twin city of more number of cities and administrative territories than Palafolls
[{'concept': 'Q1048835'}, 'P190', [{'concept': 'Q515'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) ?t WHERE { { ?t property:P190 ?x . ?t rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q515 } UNION { ?t property:P190 ?x . ?t rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q56061 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { { { ?a rdf:type ontology:Q515 } UNION { ?a rdf:type ontology:Q56061 } } . resource:Q12595 property:P190 ?a } } . FILTER ( ?q > ?k ) }
Macaé San Sebastián de los Reyes Salvador Maracanaú Santa Coloma de Gramenet Algeciras Mundaka Monroy Móstoles Coslada Parintins El Prat de Llobregat Novo Hamburgo Peñafiel, Spain Santa Cruz de La Palma Itajaí Sanlúcar de Barrameda Chengdu Santarém San Bartolomé de Tirajana Balmaseda L'Hospitalet de Llobregat Vitória Castelló d'Empúries Maringá Mollet del Vallès Pelotas Peligros Chiclana de la Frontera Arnedo Almagro, Ciudad Real Pomerode North Jeolla Province Ciutadella de Menorca Duruelo de la Sierra San Borja Rügen Wuhan Porto Seguro Barreiro Fuenlabrada Mondoñedo Criciúma Salvatierra/Agurain Crevillent A Estrada Farroupilha Jaca Quaraí Sant Feliu de Guíxols Gramado Monzón Hangzhou Almuñécar Palmas Igualada Rivne Caspe Santana do Livramento Joinville Cehegín Atarfe Museros São José dos Pinhais Cornellà de Llobregat Kirovohrad Oblast Shenzhen Torrejón de Ardoz Barakaldo Vic Sant Vicenç dels Horts Benifaió Abanilla Pontarddulais Los Palacios y Villafranca Recife Neath Port Talbot County Borough Roses Martorelles Mondorf-les-Bains Rastatt Villa El Salvador District Massaranduba, Santa Catarina Arroio do Meio Escalona Hersfeld-Rotenburg Sitges Villanueva de la Cañada Rhondda Cynon Taf Medina del Campo Tortosa Valdemoro Clavijo Qingdao Harbin Colmenar Viejo Guernica Mora Linares Catoira Falkirk Altea San Sebastián de La Gomera Natal Torrevieja Albaida Alcañiz Jinan Sigüenza Mataró Calahorra Argoncilhe Reus Ólvega Teresópolis Ordizia Baiona Santa Cruz Cabrália La Muela São Pedro do Butiá Fuentepelayo Barcarrota Celanova Santa Fe Torredembarra Nova Friburgo Oliva Tacoronte, Santa Cruz de Tenerife Archena Oyón-Oion Ormaiztegi Balaguer Aquiraz Metropolitan City of Florence Baeza Sos del Rey Católico Bailén East Java Miraflores Changchun Xàbia Torfaen County Borough Picassent Hildesheim Ponta Porã Valls Bridgend County Borough Shenyang San Miguel de Abona Sant Pol de Mar Armilla Gerena Adeje Ningbo Onda Almansa Guangzhou Paterna East Renfrewshire Andalusia Vilafranca del Penedès Castrillo Mota de Judíos Foz do Iguaçu Nerja Ondara Bulacan Main-Kinzig-Kreis Leganés Ipatinga South Jeolla Province Dalian Uruguaiana Vilanova del Camí Yanoshi Ponta Grossa Ugao-Miraballes Martorell Xi'an Brussels Londrina Elorrio El Puerto de Santa María Fife Xiamen Ribeira Serne Santo Domingo de la Calzada Belém Canfranc
Altea, Guangzhou and Xi'an are twin city of more number of cities and administrative territories than Palafolls
Altea Guangzhou Xi'an
action greater
action union
action find_tuple_counts
relation sister city
type political territorial entity
type city
action find_tuple_counts
relation sister city
type political territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find
entity Palafolls
relation sister city
type city
type administrative territorial entity
[{'concept': 'political territorial entity'}, 'sister city', [{'concept': 'city'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) ?t WHERE { { ?t property:sister_city ?x . ?t rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:city } UNION { ?t property:sister_city ?x . ?t rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:administrative_territorial_entity } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { { { ?a rdf:type ontology:city } UNION { ?a rdf:type ontology:administrative_territorial_entity } } . resource:Palafolls property:sister_city ?a } } . FILTER ( ?q > ?k ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q375925
P190
Q515 Q56061 Q1048835
USER
And what about Vila Nova de Cerveira?
(c(Q1048835),P190,c(Q515)|c(Q56061))
action greater
action union
action find_tuple_counts
relation P190
type Q1048835
type Q515
action find_tuple_counts
relation P190
type Q1048835
type Q56061
action count
action filter_multi_types
action find
entity Q375925
relation P190
type Q515
type Q56061
[{'concept': 'Q1048835'}, 'P190', [{'concept': 'Q515'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?n ) WHERE { ?t rdf:type ?p . VALUES ( ?p ) { ( ontology:Q515 ) ( ontology:Q56061 ) } } GROUP BY ?c } . FILTER ( ?n > ?e ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { resource:Q375925 property:P190 ?a . { VALUES ( ?g ) { ( ontology:Q515 ) ( ontology:Q56061 ) } . ?a rdf:type ?g } } } }
Vila Nova de Cerveira
action greater
action union
action find_tuple_counts
relation sister city
type political territorial entity
type city
action find_tuple_counts
relation sister city
type political territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find
entity Vila Nova de Cerveira
relation sister city
type city
type administrative territorial entity
[{'concept': 'political territorial entity'}, 'sister city', [{'concept': 'city'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?n ) WHERE { ?t rdf:type ?p . VALUES ( ?p ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } } GROUP BY ?c } . FILTER ( ?n > ?e ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { resource:Vila_Nova_de_Cerveira property:sister_city ?a . { VALUES ( ?g ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } . ?a rdf:type ?g } } } }
[]
city administrative territorial entity political territorial entity
Q436491 Q16572 Q5826
SYSTEM
Altea, Guangzhou, Xi'an
Q473250 Q484717 Q36947 Q1794732 Q15473 Q484552 Q786126 Q1643855 Q187826 Q164197 Q926713 Q15619 Q321331 Q667682 Q433632 Q842713 Q210887 Q30002 Q659450 Q693258 Q4480 Q15470 Q168376 Q11286 Q208669 Q15430 Q109188 Q538809 Q277302 Q642083 Q752280 Q326651 Q41157 Q899884 Q832246 Q2566267 Q164867 Q11746 Q499922 Q2392504 Q54902 Q840362 Q1439157 Q398698 Q1616611 Q1621191 Q535531 Q49581 Q1637478 Q13521 Q694833 Q5123 Q4970 Q193780 Q178993 Q15950 Q3850873 Q64010 Q917693 Q156819 Q1757489 Q550974 Q1010314 Q478818 Q15602 Q180981 Q15174 Q489839 Q487801 Q13855 Q15649 Q1919317 Q1635711 Q3397684 Q428954 Q48344 Q748078 Q11822 Q15429 Q798747 Q8182 Q691525 Q980131 Q1758806 Q616621 Q7898 Q15551 Q973325 Q817960 Q693913 Q12812 Q840373 Q767222 Q170322 Q42956 Q55480 Q189848 Q1641529 Q281272 Q377244 Q216802 Q436491 Q512009 Q131620 Q221749 Q1917834 Q572800 Q170247 Q47475 Q11492 Q642046 Q4068849 Q487096 Q623685 Q622836 Q672483 Q748867 Q993466 Q1639365 Q1758141 Q936624 Q534483 Q1605505 Q615722 Q995637 Q468563 Q918586 Q944264 Q632621 Q581589 Q932808 Q696797 Q1794121 Q18288148 Q488555 Q49571 Q695456 Q3586 Q1026229 Q92161 Q851020 Q643919 Q10863 Q5978 Q928094 Q825883 Q697126 Q11720 Q677038 Q12534 Q550985 Q1601614 Q353618 Q42780 Q984821 Q13930 Q16572 Q23042 Q211925 Q5783 Q835012 Q976534 Q202316 Q13149 Q290824 Q13755 Q7911 Q77433 Q318314 Q41161 Q74881 Q622823 Q15974 Q830776 Q242906 Q1228035 Q15623 Q5826 Q240 Q192387 Q1242382 Q203040 Q201149 Q68744 Q904130 Q714613 Q646564 Q47593 Q984642
(c(Q1048835),P190,c(Q515)|c(Q56061))
action greater
action union
action find_tuple_counts
relation P190
type Q1048835
type Q515
action find_tuple_counts
relation P190
type Q1048835
type Q56061
action count
action filter_multi_types
action find
entity Q375925
relation P190
type Q515
type Q56061
[ANSWERS]
[{'concept': 'Q1048835'}, 'P190', [{'concept': 'Q515'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?n ) WHERE { ?t rdf:type ?p . VALUES ( ?p ) { ( ontology:Q515 ) ( ontology:Q56061 ) } } GROUP BY ?c } . FILTER ( ?n > ?e ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { resource:Q375925 property:P190 ?a . { VALUES ( ?g ) { ( ontology:Q515 ) ( ontology:Q56061 ) } . ?a rdf:type ?g } } } }
Macaé San Sebastián de los Reyes Salvador Maracanaú Santa Coloma de Gramenet Algeciras Mundaka Monroy Móstoles Coslada Parintins El Prat de Llobregat Novo Hamburgo Peñafiel, Spain Santa Cruz de La Palma Itajaí Sanlúcar de Barrameda Chengdu Santarém San Bartolomé de Tirajana Balmaseda L'Hospitalet de Llobregat Vitória Castelló d'Empúries Maringá Mollet del Vallès Pelotas Peligros Chiclana de la Frontera Arnedo Almagro, Ciudad Real Pomerode North Jeolla Province Ciutadella de Menorca Duruelo de la Sierra San Borja Rügen Wuhan Porto Seguro Barreiro Fuenlabrada Mondoñedo Criciúma Salvatierra/Agurain Crevillent A Estrada Farroupilha Jaca Quaraí Sant Feliu de Guíxols Gramado Monzón Hangzhou Almuñécar Palmas Igualada Rivne Caspe Santana do Livramento Joinville Cehegín Atarfe Museros São José dos Pinhais Cornellà de Llobregat Kirovohrad Oblast Shenzhen Torrejón de Ardoz Barakaldo Vic Sant Vicenç dels Horts Benifaió Abanilla Pontarddulais Los Palacios y Villafranca Recife Neath Port Talbot County Borough Roses Martorelles Mondorf-les-Bains Rastatt Villa El Salvador District Massaranduba, Santa Catarina Arroio do Meio Escalona Hersfeld-Rotenburg Sitges Villanueva de la Cañada Rhondda Cynon Taf Medina del Campo Tortosa Valdemoro Clavijo Qingdao Harbin Colmenar Viejo Guernica Mora Linares Catoira Falkirk Altea San Sebastián de La Gomera Natal Torrevieja Albaida Alcañiz Jinan Sigüenza Mataró Calahorra Argoncilhe Reus Ólvega Teresópolis Ordizia Baiona Santa Cruz Cabrália La Muela São Pedro do Butiá Fuentepelayo Barcarrota Celanova Santa Fe Torredembarra Nova Friburgo Oliva Tacoronte, Santa Cruz de Tenerife Archena Oyón-Oion Ormaiztegi Balaguer Aquiraz Metropolitan City of Florence Baeza Sos del Rey Católico Bailén East Java Miraflores Changchun Xàbia Torfaen County Borough Picassent Hildesheim Ponta Porã Valls Bridgend County Borough Shenyang San Miguel de Abona Sant Pol de Mar Armilla Gerena Adeje Ningbo Onda Almansa Guangzhou Paterna East Renfrewshire Andalusia Vilafranca del Penedès Castrillo Mota de Judíos Foz do Iguaçu Nerja Ondara Bulacan Main-Kinzig-Kreis Leganés Ipatinga South Jeolla Province Dalian Uruguaiana Vilanova del Camí Yanoshi Ponta Grossa Ugao-Miraballes Martorell Xi'an Brussels Londrina Elorrio El Puerto de Santa María Fife Xiamen Ribeira Serne Santo Domingo de la Calzada Belém Canfranc
Altea Guangzhou Xi'an
action greater
action union
action find_tuple_counts
relation sister city
type political territorial entity
type city
action find_tuple_counts
relation sister city
type political territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find
entity Vila Nova de Cerveira
relation sister city
type city
type administrative territorial entity
[{'concept': 'political territorial entity'}, 'sister city', [{'concept': 'city'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?n ) WHERE { ?t rdf:type ?p . VALUES ( ?p ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } } GROUP BY ?c } . FILTER ( ?n > ?e ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { resource:Vila_Nova_de_Cerveira property:sister_city ?a . { VALUES ( ?g ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } . ?a rdf:type ?g } } } }
[]