Simple Question (Direct)
Simple Question
Q1281883
P102
Q7278
USER
Which parties are Eckmar Hähnel affiliated with ?
(Q1281883,P102,c(Q7278))
action filter_type
action find
entity Q1281883
relation P102
type Q7278
['Q1281883', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?d WHERE { resource:Q1281883 property:P102 ?d . ?d rdf:type ontology:Q7278 }
Eckmar Hähnel
action filter_type
action find
entity Eckmar Hähnel
relation member of political party
type political party
['Eckmar Hähnel', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?d WHERE { resource:Eckmar_Hähnel property:member_of_political_party ?d . ?d rdf:type ontology:political_party }
[]
political party
Q49762 Q49754
SYSTEM
Christian Democratic Union, Christian Democratic Union
Q49762 Q49754
(Q1281883,P102,c(Q7278))
action filter_type
action find
entity Q1281883
relation P102
type Q7278
Eckmar Hähnel are affiliated with [ANSWERS]
['Q1281883', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?d WHERE { resource:Q1281883 property:P102 ?d . ?d rdf:type ontology:Q7278 }
Christian Democratic Union Christian Democratic Union
Eckmar Hähnel are affiliated with Christian Democratic Union and Christian Democratic Union
Christian Democratic Union Christian Democratic Union
action filter_type
action find
entity Eckmar Hähnel
relation member of political party
type political party
['Eckmar Hähnel', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?d WHERE { resource:Eckmar_Hähnel property:member_of_political_party ?d . ?d rdf:type ontology:political_party }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q49762 Q49754
P1142
Q7257
USER
What ideologies do those political parties believe in ?
(Q49762,P1142,c(Q7257)) (Q49754,P1142,c(Q7257))
action filter_type
action find
entity prev_answer
relation P1142
type Q7257
['Q49762', 'P1142', {'concept': 'Q7257'}] ['Q49754', 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q7257 . ?b property:P1142 ?n . VALUES ( ?b ) { ( resource:Q49762 ) ( resource:Q49754 ) } }
Christian Democratic Union Christian Democratic Union
action filter_type
action find
entity prev_answer
relation political ideology
type ideology
['Christian Democratic Union', 'political ideology', {'concept': 'ideology'}] ['Christian Democratic Union', 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:ideology . ?b property:political_ideology ?n . VALUES ( ?b ) { ( resource:Christian_Democratic_Union ) ( resource:Christian_Democratic_Union ) } }
[]
ideology
Q209158 Q209158
SYSTEM
Christian democracy
Q209158 Q209158
(Q49762,P1142,c(Q7257)) (Q49754,P1142,c(Q7257))
action filter_type
action find
entity prev_answer
relation P1142
type Q7257
Those political parties believe in [ANSWER] and [ANSWER]
['Q49762', 'P1142', {'concept': 'Q7257'}] ['Q49754', 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q7257 . ?b property:P1142 ?n . VALUES ( ?b ) { ( resource:Q49762 ) ( resource:Q49754 ) } }
Christian democracy Christian democracy
Those political parties believe in Christian democracy and Christian democracy
Christian democracy Christian democracy
action filter_type
action find
entity prev_answer
relation political ideology
type ideology
['Christian Democratic Union', 'political ideology', {'concept': 'ideology'}] ['Christian Democratic Union', 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:ideology . ?b property:political_ideology ?n . VALUES ( ?b ) { ( resource:Christian_Democratic_Union ) ( resource:Christian_Democratic_Union ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q49762
P463
Q7278
USER
Which political party was Christian Democratic Union a member of ?
(Q49762,P463,c(Q7278))
action filter_type
action find
entity Q49762
relation P463
type Q7278
['Q49762', 'P463', {'concept': 'Q7278'}]
SELECT DISTINCT ?o WHERE { resource:Q49762 property:P463 ?o . ?o rdf:type ontology:Q7278 }
Christian Democratic Union
action filter_type
action find
entity Christian Democratic Union
relation member of
type political party
['Christian Democratic Union', 'member of', {'concept': 'political party'}]
SELECT DISTINCT ?o WHERE { resource:Christian_Democratic_Union property:member_of ?o . ?o rdf:type ontology:political_party }
[]
political party
Q208242
SYSTEM
European People's Party
Q208242
(Q49762,P463,c(Q7278))
action filter_type
action find
entity Q49762
relation P463
type Q7278
Party [ANSWER] was Christian Democratic Union a member of
['Q49762', 'P463', {'concept': 'Q7278'}]
SELECT DISTINCT ?o WHERE { resource:Q49762 property:P463 ?o . ?o rdf:type ontology:Q7278 }
European People's Party
Party European People's Party was Christian Democratic Union a member of
European People's Party
action filter_type
action find
entity Christian Democratic Union
relation member of
type political party
['Christian Democratic Union', 'member of', {'concept': 'political party'}]
SELECT DISTINCT ?o WHERE { resource:Christian_Democratic_Union property:member_of ?o . ?o rdf:type ontology:political_party }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q208242
P112
Q502895
USER
Who founded that political party ?
(Q208242,P112,c(Q502895))
action filter_type
action find
entity Q208242
relation P112
type Q502895
['Q208242', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q208242 property:P112 ?h . ?h rdf:type ontology:Q502895 }
European People's Party
action filter_type
action find
entity European People's Party
relation founder
type common name
["European People's Party", 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:European_People's_Party property:founder ?h . ?h rdf:type ontology:common_name }
[]
common name
Q153832
SYSTEM
Alcide De Gasperi
Q153832
(Q208242,P112,c(Q502895))
action filter_type
action find
entity Q208242
relation P112
type Q502895
[ANSWER] founded that political party
['Q208242', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q208242 property:P112 ?h . ?h rdf:type ontology:Q502895 }
Alcide De Gasperi
Alcide De Gasperi founded that political party
Alcide De Gasperi
action filter_type
action find
entity European People's Party
relation founder
type common name
["European People's Party", 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:European_People's_Party property:founder ?h . ?h rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q153832 Q38 Q548626
P27
Q15617994
USER
Is Alcide De Gasperi a citizen of Italy and Trunkelsberg ?
(Q153832,P27,Q38) (Q153832,P27,Q548626)
action is_in
entity Q153832
action intersection
action find_reverse
entity Q38
relation P27
action find_reverse
entity Q548626
relation P27
['Q153832', 'P27', 'Q38'] ['Q153832', 'P27', 'Q548626']
ASK WHERE { resource:Q153832 property:P27 resource:Q548626 . resource:Q153832 property:P27 resource:Q38 }
Alcide De Gasperi Italy Trunkelsberg
action is_in
entity Alcide De Gasperi
action intersection
action find_reverse
entity Italy
relation country of citizenship
action find_reverse
entity Trunkelsberg
relation country of citizenship
['Alcide De Gasperi', 'country of citizenship', 'Italy'] ['Alcide De Gasperi', 'country of citizenship', 'Trunkelsberg']
ASK WHERE { resource:Alcide_De_Gasperi property:country_of_citizenship resource:Trunkelsberg . resource:Alcide_De_Gasperi property:country_of_citizenship resource:Italy }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q153832,P27,Q38) (Q153832,P27,Q548626)
action is_in
entity Q153832
action intersection
action find_reverse
entity Q38
relation P27
action find_reverse
entity Q548626
relation P27
[ANSWER]
['Q153832', 'P27', 'Q38'] ['Q153832', 'P27', 'Q548626']
ASK WHERE { resource:Q153832 property:P27 resource:Q548626 . resource:Q153832 property:P27 resource:Q38 }
YES and NO respectively
action is_in
entity Alcide De Gasperi
action intersection
action find_reverse
entity Italy
relation country of citizenship
action find_reverse
entity Trunkelsberg
relation country of citizenship
['Alcide De Gasperi', 'country of citizenship', 'Italy'] ['Alcide De Gasperi', 'country of citizenship', 'Trunkelsberg']
ASK WHERE { resource:Alcide_De_Gasperi property:country_of_citizenship resource:Trunkelsberg . resource:Alcide_De_Gasperi property:country_of_citizenship resource:Italy }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4270810 Q38
P530 P27
Q15617994
USER
Which administrative territories have a diplomatic relationship with Italy or are Igor Lysyj an inhabitant of ?
OR((Q38,P530,c(Q15617994)), (Q4270810,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q38
relation P530
action find
entity Q4270810
relation P27
type Q15617994
{'OR': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q4270810', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . { { resource:Q4270810 property:P27 ?l } UNION { resource:Q38 property:P530 ?l } } }
Igor Lysyj Italy
action filter_type
action union
action find
entity Italy
relation diplomatic relation
action find
entity Igor Lysyj
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Igor Lysyj', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Igor_Lysyj property:country_of_citizenship ?l } UNION { resource:Italy property:diplomatic_relation ?l } } }
[]
designation for an administrative territorial entity
Q928 Q37 Q218 Q159 Q222 Q668 Q191 Q33 Q96 Q733
SYSTEM
Some of them are Philippines, Lithuania, Romania, Russia, Albania, India, Estonia, Finland, Mexico, Paraguay
Q805 Q219 Q869 Q801 Q189 Q843 Q184 Q423 Q822 Q419 Q668 Q347 Q414 Q142 Q225 Q224 Q55 Q222 Q221 Q145 Q148 Q96 Q31 Q229 Q228 Q33 Q32 Q17 Q30 Q37 Q36 Q79 Q34 Q77 Q39 Q1016 Q739 Q227 Q948 Q191 Q733 Q928 Q298 Q45 Q252 Q114 Q399 Q403 Q230 Q233 Q258 Q43 Q212 Q213 Q236 Q211 Q159 Q217 Q214 Q215 Q155 Q218 Q41 Q238 Q796 Q794 Q20 Q1045 Q889 Q27 Q28 Q29 Q884 Q881
OR((Q38,P530,c(Q15617994)), (Q4270810,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q38
relation P530
action find
entity Q4270810
relation P27
type Q15617994
[ANSWERS] have a diplomatic relationship with Italy or are Igor Lysyj an inhabitant of
{'OR': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q4270810', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . { { resource:Q4270810 property:P27 ?l } UNION { resource:Q38 property:P530 ?l } } }
Yemen Bulgaria Thailand Israel Iceland Pakistan Belarus North Korea Lebanon Peru India Liechtenstein Argentina France Bosnia and Herzegovina Croatia Netherlands Albania Republic of Macedonia United Kingdom People's Republic of China Mexico Belgium Cyprus Andorra Finland Luxembourg Japan United States of America Lithuania Poland Egypt Sweden Uruguay Switzerland Libya Colombia Azerbaijan Tunisia Estonia Paraguay Philippines 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 Norway Somalia Afghanistan Ireland Hungary Spain South Korea Vietnam
Philippines, Lithuania, Romania, Russia, Albania, India, Estonia, Finland, Mexico and Paraguay have a diplomatic relationship with Italy or are Igor Lysyj an inhabitant of
Philippines Lithuania Romania Russia Albania India Estonia Finland Mexico Paraguay
action filter_type
action union
action find
entity Italy
relation diplomatic relation
action find
entity Igor Lysyj
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Igor Lysyj', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Igor_Lysyj property:country_of_citizenship ?l } UNION { resource:Italy property:diplomatic_relation ?l } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q218
P530
Q1048835 Q15617994
USER
How many political territories or administrative territories have ambassadorial relations with Romania ?
(c(Q1048835),P530,Q218) (c(Q15617994),P530,Q218)
action count
action union
action filter_type
action find_reverse
entity Q218
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q218
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', 'Q218'] [{'concept': 'Q15617994'}, 'P530', 'Q218']
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { ?y property:P530 resource:Q218 . ?y rdf:type ontology:Q1048835 } UNION { ?y rdf:type ontology:Q15617994 . ?y property:P530 resource:Q218 } }
Romania
action count
action union
action filter_type
action find_reverse
entity Romania
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Romania
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Romania'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Romania']
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { ?y property:diplomatic_relation resource:Romania . ?y rdf:type ontology:political_territorial_entity } UNION { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y property:diplomatic_relation resource:Romania } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
4
Q408 Q16 Q38 Q183
(c(Q1048835),P530,Q218) (c(Q15617994),P530,Q218)
action count
action union
action filter_type
action find_reverse
entity Q218
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q218
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q218'] [{'concept': 'Q15617994'}, 'P530', 'Q218']
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { ?y property:P530 resource:Q218 . ?y rdf:type ontology:Q1048835 } UNION { ?y rdf:type ontology:Q15617994 . ?y property:P530 resource:Q218 } }
Australia Canada Italy Germany
4
action count
action union
action filter_type
action find_reverse
entity Romania
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Romania
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Romania'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Romania']
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { ?y property:diplomatic_relation resource:Romania . ?y rdf:type ontology:political_territorial_entity } UNION { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y property:diplomatic_relation resource:Romania } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q710
P840
Q15617994 Q15416 Q2342494
USER
Which administrative territories are the narrative locations of approximately the same number of television programs and collectables as Kiribati ?
(c(Q15416)|c(Q2342494),P840,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q710
relation P840
type Q15416
type Q2342494
[[{'concept': 'Q15416'}, {'concept': 'Q2342494'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) ?x WHERE { { ?e property:P840 ?x . ?x rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q2342494 } UNION { ?e property:P840 ?x . ?e rdf:type ontology:Q15416 . ?x rdf:type ontology:Q15617994 } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { ?l property:P840 resource:Q710 . { ?l rdf:type ?c . VALUES ( ?c ) { ( ontology:Q15416 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?y = ?u ) }
Kiribati
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Kiribati
relation narrative location
type television program
type collectable
[[{'concept': 'television program'}, {'concept': 'collectable'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) ?x WHERE { { ?e property:narrative_location ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:collectable } UNION { ?e property:narrative_location ?x . ?e rdf:type ontology:television_program . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { ?l property:narrative_location resource:Kiribati . { ?l rdf:type ?c . VALUES ( ?c ) { ( ontology:television_program ) ( ontology:collectable ) } } } } . FILTER ( ?y = ?u ) }
[]
designation for an administrative territorial entity television program collectable
Q230 Q159 Q142
SYSTEM
Georgia, Russia, France
Q377277 Q805 Q804 Q801 Q20837 Q278221 Q186115 Q414 Q3278 Q142 Q1948 Q262 Q189 Q265 Q47428 Q18021 Q842 Q36678 Q712 Q711 Q710 Q717 Q837 Q252 Q1460 Q399 Q403 Q1979 Q45 Q159 Q41 Q790 Q889 Q884 Q858 Q419 Q165040 Q822 Q241 Q232782 Q244 Q1974 Q490398 Q12515 Q33 Q32 Q31 Q37 Q36 Q34 Q928 Q39 Q58477 Q739 Q423 Q424 Q851 Q733 Q854 Q819 Q340628 Q769680 Q12798 Q236 Q230 Q12538 Q232 Q233 Q1093 Q20 Q1045 Q1044 Q1860611 Q1041 Q27 Q913434 Q29 Q127043 Q1027 Q2009 Q843 Q2007 Q184 Q1029 Q1028 Q511806 Q1458 Q91217 Q1452 Q227 Q225 Q163966 Q223 Q12700 Q2336399 Q96 Q17 Q3207 Q1033 Q1030 Q191 Q962 Q963 Q159689 Q298 Q114 Q41158 Q750 Q212 Q213 Q517107 Q217 Q218 Q219 Q20571 Q1210 Q912 Q2107 Q1007 Q1005 Q833 Q14859 Q2742 Q683 Q836 Q874 Q79 Q77 Q774 Q948 Q817 Q810 Q1019 Q1014 Q1016 Q1273 Q1011 Q28 Q12620 Q678 Q800 Q12545 Q1952 Q53216 Q869 Q6247
(c(Q15416)|c(Q2342494),P840,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q710
relation P840
type Q15416
type Q2342494
[ANSWERS] are the narrative locations of approximately the same number of television programs and collectables as Kiribati
[[{'concept': 'Q15416'}, {'concept': 'Q2342494'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) ?x WHERE { { ?e property:P840 ?x . ?x rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q2342494 } UNION { ?e property:P840 ?x . ?e rdf:type ontology:Q15416 . ?x rdf:type ontology:Q15617994 } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { ?l property:P840 resource:Q710 . { ?l rdf:type ?c . VALUES ( ?c ) { ( ontology:Q15416 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?y = ?u ) }
Glückstadt Yemen Panama Israel Fanø Berchtesgaden Montmartre Argentina Charente-Maritime France Manitoba Algeria Iceland Uzbekistan Valdobbiadene Biella Oman West Bank Fiji Mongolia Kiribati Venezuela Nepal Indonesia Sicily Armenia Serbia Prince Edward Island Portugal Russia Greece Haiti Afghanistan South Korea Syria Peru Duchy of Parma Lebanon Cuba Portofino Barbados British Columbia Peenemünde Gard Finland Luxembourg Belgium Lithuania Poland Sweden Philippines Switzerland Capua Colombia North Korea Cambodia Saudi Arabia Paraguay Sri Lanka Laos Aggius Bornholm Vendée Montenegro Georgia Haute-Garonne Kazakhstan Malta Limburg Norway Somalia Sierra Leone Viby Senegal Ireland Les Halles Spain Garmisch-Partenkirchen Mauritius Yukon Pakistan Northwest Territories Belarus Mozambique Morocco North Slope Borough Calabria Montepulciano Basilicata Azerbaijan Bosnia and Herzegovina Mitte Greenland Hautes-Pyrénées Baluchistan Mexico Japan Aude Nigeria Namibia Estonia Benin Botswana Bomarzo Chile Kenya Cortina d'Ampezzo Bolivia Ukraine Czech Republic Rudolstadt Republic of Moldova Romania Bulgaria Spoleto Lombardy Mali Wuppertal Guinea-Bissau Gambia Malaysia Ansbach Münster Samoa Myanmar Turkmenistan Egypt Uruguay Guatemala Tunisia Kuwait Jordan Madagascar Liberia Libya Tuscany Cape Verde Hungary Mayenne Tonga Costa Rica Hérault Nova Scotia Aquileia Thailand Mantua
Georgia, Russia and France are the narrative locations of approximately the same number of television programs and collectables as Kiribati
Georgia Russia France
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Kiribati
relation narrative location
type television program
type collectable
[[{'concept': 'television program'}, {'concept': 'collectable'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) ?x WHERE { { ?e property:narrative_location ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:collectable } UNION { ?e property:narrative_location ?x . ?e rdf:type ontology:television_program . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { ?l property:narrative_location resource:Kiribati . { ?l rdf:type ?c . VALUES ( ?c ) { ( ontology:television_program ) ( ontology:collectable ) } } } } . FILTER ( ?y = ?u ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q837
P840
Q15617994 Q15416 Q2342494
USER
And what about Nepal?
(c(Q15416)|c(Q2342494),P840,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q837
relation P840
type Q15416
type Q2342494
[[{'concept': 'Q15416'}, {'concept': 'Q2342494'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?h = ?m ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { ?e property:P840 resource:Q837 . { VALUES ( ?g ) { ( ontology:Q2342494 ) ( ontology:Q15416 ) } . ?e rdf:type ?g } } } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) ?x WHERE { VALUES ( ?p ) { ( ontology:Q15416 ) ( ontology:Q2342494 ) } . ?a rdf:type ?p } GROUP BY ?x } }
Nepal
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Nepal
relation narrative location
type television program
type collectable
[[{'concept': 'television program'}, {'concept': 'collectable'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?h = ?m ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { ?e property:narrative_location resource:Nepal . { VALUES ( ?g ) { ( ontology:collectable ) ( ontology:television_program ) } . ?e rdf:type ?g } } } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) ?x WHERE { VALUES ( ?p ) { ( ontology:television_program ) ( ontology:collectable ) } . ?a rdf:type ?p } GROUP BY ?x } }
[]
designation for an administrative territorial entity television program collectable
Q230 Q159 Q142
SYSTEM
Georgia, Russia, France
Q377277 Q805 Q804 Q801 Q20837 Q278221 Q186115 Q414 Q3278 Q142 Q1948 Q262 Q189 Q265 Q47428 Q18021 Q842 Q36678 Q712 Q711 Q710 Q717 Q837 Q252 Q1460 Q399 Q403 Q1979 Q45 Q159 Q41 Q790 Q889 Q884 Q858 Q419 Q165040 Q822 Q241 Q232782 Q244 Q1974 Q490398 Q12515 Q33 Q32 Q31 Q37 Q36 Q34 Q928 Q39 Q58477 Q739 Q423 Q424 Q851 Q733 Q854 Q819 Q340628 Q769680 Q12798 Q236 Q230 Q12538 Q232 Q233 Q1093 Q20 Q1045 Q1044 Q1860611 Q1041 Q27 Q913434 Q29 Q127043 Q1027 Q2009 Q843 Q2007 Q184 Q1029 Q1028 Q511806 Q1458 Q91217 Q1452 Q227 Q225 Q163966 Q223 Q12700 Q2336399 Q96 Q17 Q3207 Q1033 Q1030 Q191 Q962 Q963 Q159689 Q298 Q114 Q41158 Q750 Q212 Q213 Q517107 Q217 Q218 Q219 Q20571 Q1210 Q912 Q2107 Q1007 Q1005 Q833 Q14859 Q2742 Q683 Q836 Q874 Q79 Q77 Q774 Q948 Q817 Q810 Q1019 Q1014 Q1016 Q1273 Q1011 Q28 Q12620 Q678 Q800 Q12545 Q1952 Q53216 Q869 Q6247
(c(Q15416)|c(Q2342494),P840,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q837
relation P840
type Q15416
type Q2342494
[ANSWERS]
[[{'concept': 'Q15416'}, {'concept': 'Q2342494'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?h = ?m ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { ?e property:P840 resource:Q837 . { VALUES ( ?g ) { ( ontology:Q2342494 ) ( ontology:Q15416 ) } . ?e rdf:type ?g } } } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) ?x WHERE { VALUES ( ?p ) { ( ontology:Q15416 ) ( ontology:Q2342494 ) } . ?a rdf:type ?p } GROUP BY ?x } }
Glückstadt Yemen Panama Israel Fanø Berchtesgaden Montmartre Argentina Charente-Maritime France Manitoba Algeria Iceland Uzbekistan Valdobbiadene Biella Oman West Bank Fiji Mongolia Kiribati Venezuela Nepal Indonesia Sicily Armenia Serbia Prince Edward Island Portugal Russia Greece Haiti Afghanistan South Korea Syria Peru Duchy of Parma Lebanon Cuba Portofino Barbados British Columbia Peenemünde Gard Finland Luxembourg Belgium Lithuania Poland Sweden Philippines Switzerland Capua Colombia North Korea Cambodia Saudi Arabia Paraguay Sri Lanka Laos Aggius Bornholm Vendée Montenegro Georgia Haute-Garonne Kazakhstan Malta Limburg Norway Somalia Sierra Leone Viby Senegal Ireland Les Halles Spain Garmisch-Partenkirchen Mauritius Yukon Pakistan Northwest Territories Belarus Mozambique Morocco North Slope Borough Calabria Montepulciano Basilicata Azerbaijan Bosnia and Herzegovina Mitte Greenland Hautes-Pyrénées Baluchistan Mexico Japan Aude Nigeria Namibia Estonia Benin Botswana Bomarzo Chile Kenya Cortina d'Ampezzo Bolivia Ukraine Czech Republic Rudolstadt Republic of Moldova Romania Bulgaria Spoleto Lombardy Mali Wuppertal Guinea-Bissau Gambia Malaysia Ansbach Münster Samoa Myanmar Turkmenistan Egypt Uruguay Guatemala Tunisia Kuwait Jordan Madagascar Liberia Libya Tuscany Cape Verde Hungary Mayenne Tonga Costa Rica Hérault Nova Scotia Aquileia Thailand Mantua
Georgia Russia France
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Nepal
relation narrative location
type television program
type collectable
[[{'concept': 'television program'}, {'concept': 'collectable'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?h = ?m ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { ?e property:narrative_location resource:Nepal . { VALUES ( ?g ) { ( ontology:collectable ) ( ontology:television_program ) } . ?e rdf:type ?g } } } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) ?x WHERE { VALUES ( ?p ) { ( ontology:television_program ) ( ontology:collectable ) } . ?a rdf:type ?p } GROUP BY ?x } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q230 Q159 Q142
P530
Q1048835
USER
Who have a diplomatic relationship with those administrative territories ?
(Q230,P530,c(Q1048835)) (Q159,P530,c(Q1048835)) (Q142,P530,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P530
type Q1048835
['Q230', 'P530', {'concept': 'Q1048835'}] ['Q159', 'P530', {'concept': 'Q1048835'}] ['Q142', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { ?f property:P530 ?n . VALUES ( ?f ) { ( resource:Q377277 ) ( resource:Q805 ) ( resource:Q804 ) } . ?n rdf:type ontology:Q1048835 }
Georgia Russia France
action filter_type
action find
entity prev_answer
relation diplomatic relation
type political territorial entity
['Georgia', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Russia', 'diplomatic relation', {'concept': 'political territorial entity'}] ['France', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { ?f property:diplomatic_relation ?n . VALUES ( ?f ) { ( resource:Glückstadt ) ( resource:Yemen ) ( resource:Panama ) } . ?n rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q183 Q183
SYSTEM
Germany
Q664 Q408 Q40 Q35 Q183 Q16 Q1000 Q769 Q766 Q778 Q781 Q183 Q408 Q16 Q40 Q408 Q183
(Q230,P530,c(Q1048835)) (Q159,P530,c(Q1048835)) (Q142,P530,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P530
type Q1048835
[ANSWER], [ANSWER] and [ANSWER] have a diplomatic relationship with those administrative territories
['Q230', 'P530', {'concept': 'Q1048835'}] ['Q159', 'P530', {'concept': 'Q1048835'}] ['Q142', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { ?f property:P530 ?n . VALUES ( ?f ) { ( resource:Q377277 ) ( resource:Q805 ) ( resource:Q804 ) } . ?n rdf:type ontology:Q1048835 }
New Zealand Australia Austria Denmark Germany Canada Gabon Grenada Jamaica The Bahamas Antigua and Barbuda Germany Australia Canada Austria Australia Germany
Germany, Germany and Germany have a diplomatic relationship with those administrative territories
Germany Germany Germany
action filter_type
action find
entity prev_answer
relation diplomatic relation
type political territorial entity
['Georgia', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Russia', 'diplomatic relation', {'concept': 'political territorial entity'}] ['France', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { ?f property:diplomatic_relation ?n . VALUES ( ?f ) { ( resource:Glückstadt ) ( resource:Yemen ) ( resource:Panama ) } . ?n rdf:type ontology:political_territorial_entity }
[]