Simple Question (Direct)
Simple Question
Q504156
P166
Q618779
USER
Which award was Pierre Vimont awarded with ?
(Q504156,P166,c(Q618779))
action filter_type
action find
entity Q504156
relation P166
type Q618779
['Q504156', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q618779 . resource:Q504156 property:P166 ?k }
Pierre Vimont
action filter_type
action find
entity Pierre Vimont
relation award received
type award
['Pierre Vimont', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:award . resource:Pierre_Vimont property:award_received ?k }
[]
award
Q13422138
SYSTEM
Knight of the National Order of Merit
Q13422138
(Q504156,P166,c(Q618779))
action filter_type
action find
entity Q504156
relation P166
type Q618779
Pierre Vimont was awarded [ANSWER]
['Q504156', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q618779 . resource:Q504156 property:P166 ?k }
Knight of the National Order of Merit
Pierre Vimont was awarded Knight of the National Order of Merit
Knight of the National Order of Merit
action filter_type
action find
entity Pierre Vimont
relation award received
type award
['Pierre Vimont', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:award . resource:Pierre_Vimont property:award_received ?k }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q13422138
P17
Q15617994
USER
Which administrative territory is that award situated in ?
(Q13422138,P17,c(Q15617994))
action filter_type
action find
entity Q13422138
relation P17
type Q15617994
['Q13422138', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q13422138 property:P17 ?s . ?s rdf:type ontology:Q15617994 }
Knight of the National Order of Merit
action filter_type
action find
entity Knight of the National Order of Merit
relation country
type designation for an administrative territorial entity
['Knight of the National Order of Merit', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Knight_of_the_National_Order_of_Merit property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q13422138,P17,c(Q15617994))
action filter_type
action find
entity Q13422138
relation P17
type Q15617994
That award is situated in [ANSWER]
['Q13422138', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q13422138 property:P17 ?s . ?s rdf:type ontology:Q15617994 }
France
That award is situated in France
France
action filter_type
action find
entity Knight of the National Order of Merit
relation country
type designation for an administrative territorial entity
['Knight of the National Order of Merit', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Knight_of_the_National_Order_of_Merit property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q142 Q34543
P530
Q15617994
USER
Does Santa Margherita d'Adige have a diplomatic relationship with that one ?
(Q142,P530,Q34543)
action is_in
entity Q34543
action find
entity Q142
relation P530
['Q142', 'P530', 'Q34543']
ASK WHERE { resource:Q142 property:P530 resource:Q34543 }
France Santa Margherita d'Adige
action is_in
entity Santa Margherita d'Adige
action find
entity France
relation diplomatic relation
['France', 'diplomatic relation', "Santa Margherita d'Adige"]
ASK WHERE { resource:France property:diplomatic_relation resource:Santa_Margherita_d'Adige }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q142,P530,Q34543)
action is_in
entity Q34543
action find
entity Q142
relation P530
[ANSWER]
['Q142', 'P530', 'Q34543']
ASK WHERE { resource:Q142 property:P530 resource:Q34543 }
No
action is_in
entity Santa Margherita d'Adige
action find
entity France
relation diplomatic relation
['France', 'diplomatic relation', "Santa Margherita d'Adige"]
ASK WHERE { resource:France property:diplomatic_relation resource:Santa_Margherita_d'Adige }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q142
P47
Q15617994
USER
Which administrative territories have an adjacent border with France ?
action filter_type
action find
entity Q142
relation P47
type Q15617994
SELECT DISTINCT ?q WHERE { resource:Q142 property:P47 ?q . ?q rdf:type ontology:Q15617994 }
France
action filter_type
action find
entity France
relation shares border with
type designation for an administrative territorial entity
SELECT DISTINCT ?q WHERE { resource:France property:shares_border_with ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q155 Q145
SYSTEM
Italy, Brazil, United Kingdom
Q717 Q145 Q155 Q730 Q29999 Q228 Q32 Q31 Q29 Q39 Q38
action filter_type
action find
entity Q142
relation P47
type Q15617994
[ANSWERS] have an adjacent border with France
SELECT DISTINCT ?q WHERE { resource:Q142 property:P47 ?q . ?q rdf:type ontology:Q15617994 }
Venezuela United Kingdom Brazil Suriname Kingdom of the Netherlands Andorra Luxembourg Belgium Spain Switzerland Italy
Italy, Brazil and United Kingdom have an adjacent border with France
Italy Brazil United Kingdom
action filter_type
action find
entity France
relation shares border with
type designation for an administrative territorial entity
SELECT DISTINCT ?q WHERE { resource:France property:shares_border_with ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q38 Q155 Q145
P463
Q43229
USER
What organizations were those administrative territories a member of ?
(Q38,P463,c(Q43229)) (Q155,P463,c(Q43229)) (Q145,P463,c(Q43229))
action filter_type
action find
entity prev_answer
relation P463
type Q43229
['Q38', 'P463', {'concept': 'Q43229'}] ['Q155', 'P463', {'concept': 'Q43229'}] ['Q145', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?l WHERE { VALUES ( ?h ) { ( resource:Q717 ) ( resource:Q145 ) ( resource:Q155 ) } . ?l rdf:type ontology:Q43229 . ?h property:P463 ?l }
Italy Brazil United Kingdom
action filter_type
action find
entity prev_answer
relation member of
type organization
['Italy', 'member of', {'concept': 'organization'}] ['Brazil', 'member of', {'concept': 'organization'}] ['United Kingdom', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?l WHERE { VALUES ( ?h ) { ( resource:Venezuela ) ( resource:United_Kingdom ) ( resource:Brazil ) } . ?l rdf:type ontology:organization . ?h property:member_of ?l }
[]
organization
Q7809 Q42944 Q151991
SYSTEM
United Nations Educational, Scientific and Cultural Organization, European Organization for Nuclear Research, European Southern Observatory
Q340195 Q125761 Q191384 Q1153087 Q309195 Q689859 Q899770 Q189946 Q7809 Q132551 Q1666759 Q699036 Q42944 Q61923 Q177773 Q41550 Q3772571 Q386120 Q656801 Q151991 Q161549 Q7825 Q488981 Q82151 Q7178 Q827525 Q340195 Q191384 Q182500 Q123759 Q1045401 Q7825 Q656801 Q151991 Q123209 Q243630 Q827525 Q340195 Q191384 Q3772571 Q899770 Q7825 Q41550 Q656801 Q151991 Q827525
(Q38,P463,c(Q43229)) (Q155,P463,c(Q43229)) (Q145,P463,c(Q43229))
action filter_type
action find
entity prev_answer
relation P463
type Q43229
[ANSWERS]
['Q38', 'P463', {'concept': 'Q43229'}] ['Q155', 'P463', {'concept': 'Q43229'}] ['Q145', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?l WHERE { VALUES ( ?h ) { ( resource:Q717 ) ( resource:Q145 ) ( resource:Q155 ) } . ?l rdf:type ontology:Q43229 . ?h property:P463 ?l }
African Development Bank International Civil Aviation Organization International Bank for Reconstruction and Development Inter-American Development Bank Bank for International Settlements International Fund for Agricultural Development International Centre for Settlement of Investment Disputes Western European Union United Nations Educational, Scientific and Cultural Organization United Nations High Commissioner for Refugees International Mobile Satellite Organization United Nations Truce Supervision Organization European Organization for Nuclear Research World Tourism Organization World Intellectual Property Organization Organisation for Economic Co-operation and Development Caribbean Development Bank United Nations Industrial Development Organization International Finance Corporation European Southern Observatory European Coal and Steel Community World Trade Organization European Bank for Reconstruction and Development Food and Agriculture Organization of the United Nations International Red Cross and Red Crescent Movementsac International Development Association African Development Bank International Bank for Reconstruction and Development Community of Portuguese Language Countries Organization of American States Community of Latin American and Caribbean States World Trade Organization International Finance Corporation European Southern Observatory Latin Union BRICS International Development Association African Development Bank International Bank for Reconstruction and Development Caribbean Development Bank International Centre for Settlement of Investment Disputes World Trade Organization Organisation for Economic Co-operation and Development International Finance Corporation European Southern Observatory International Development Association
What organizations were those administrative territories a member of
United Nations Educational, Scientific and Cultural Organization European Organization for Nuclear Research European Southern Observatory
action filter_type
action find
entity prev_answer
relation member of
type organization
['Italy', 'member of', {'concept': 'organization'}] ['Brazil', 'member of', {'concept': 'organization'}] ['United Kingdom', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?l WHERE { VALUES ( ?h ) { ( resource:Venezuela ) ( resource:United_Kingdom ) ( resource:Brazil ) } . ?l rdf:type ontology:organization . ?h property:member_of ?l }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155
P112
Q43229
USER
Which organization was established by Brazil ?
(c(Q43229),P112,Q155)
action filter_type
action find_reverse
entity Q155
relation P112
type Q43229
[{'concept': 'Q43229'}, 'P112', 'Q155']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q43229 . ?n property:P112 resource:Q155 }
Brazil
action filter_type
action find_reverse
entity Brazil
relation founder
type organization
[{'concept': 'organization'}, 'founder', 'Brazil']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:organization . ?n property:founder resource:Brazil }
[]
organization
Q7809
SYSTEM
United Nations Educational, Scientific and Cultural Organization
Q7809
(c(Q43229),P112,Q155)
action filter_type
action find_reverse
entity Q155
relation P112
type Q43229
[ANSWER] was established by Brazil
[{'concept': 'Q43229'}, 'P112', 'Q155']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q43229 . ?n property:P112 resource:Q155 }
United Nations Educational, Scientific and Cultural Organization
United Nations Educational, Scientific and Cultural Organization was established by Brazil
United Nations Educational, Scientific and Cultural Organization
action filter_type
action find_reverse
entity Brazil
relation founder
type organization
[{'concept': 'organization'}, 'founder', 'Brazil']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:organization . ?n property:founder resource:Brazil }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q155
P172
Q502895
USER
Which person has that administrative territory as his/her ethnicity ?
(c(Q502895),P172,Q7809)
action filter_type
action find_reverse
entity Q155
relation P172
type Q502895
[{'concept': 'Q502895'}, 'P172', 'Q7809']
SELECT DISTINCT ?i WHERE { ?i property:P172 resource:Q155 . ?i rdf:type ontology:Q502895 }
Brazil
action filter_type
action find_reverse
entity Brazil
relation ethnic group
type common name
[{'concept': 'common name'}, 'ethnic group', 'United Nations Educational, Scientific and Cultural Organization']
SELECT DISTINCT ?i WHERE { ?i property:ethnic_group resource:Brazil . ?i rdf:type ontology:common_name }
[]
common name
Q30865
SYSTEM
Eike Batista
Q30865
(c(Q502895),P172,Q7809)
action filter_type
action find_reverse
entity Q155
relation P172
type Q502895
[ANSWER] has that administrative territory as his/her ethnicity
[{'concept': 'Q502895'}, 'P172', 'Q7809']
SELECT DISTINCT ?i WHERE { ?i property:P172 resource:Q155 . ?i rdf:type ontology:Q502895 }
Eike Batista
Eike Batista has that administrative territory as his/her ethnicity
Eike Batista
action filter_type
action find_reverse
entity Brazil
relation ethnic group
type common name
[{'concept': 'common name'}, 'ethnic group', 'United Nations Educational, Scientific and Cultural Organization']
SELECT DISTINCT ?i WHERE { ?i property:ethnic_group resource:Brazil . ?i rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q837
P840
Q15617994 Q15416 Q838948
USER
Which administrative territories are approximately the same number of television programs and works of art set in as Nepal ?
(c(Q15416)|c(Q838948),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 Q838948
action count
action filter_multi_types
action find_reverse
entity Q837
relation P840
type Q15416
type Q838948
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?b ) AS ?y ) WHERE { { ?b property:P840 ?h . ?b rdf:type ontology:Q838948 . ?h rdf:type ontology:Q15617994 } UNION { ?b property:P840 ?h . ?b rdf:type ontology:Q15416 . ?h rdf:type ontology:Q15617994 } } GROUP BY ?h } . FILTER ( ?y = ?l ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { ?o property:P840 resource:Q837 . { { ?o rdf:type ontology:Q838948 } UNION { ?o rdf:type ontology:Q15416 } } } } }
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 work of art
action count
action filter_multi_types
action find_reverse
entity Nepal
relation narrative location
type television program
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?b ) AS ?y ) WHERE { { ?b property:narrative_location ?h . ?b rdf:type ontology:work_of_art . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?b property:narrative_location ?h . ?b rdf:type ontology:television_program . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?h } . FILTER ( ?y = ?l ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { ?o property:narrative_location resource:Nepal . { { ?o rdf:type ontology:work_of_art } UNION { ?o rdf:type ontology:television_program } } } } }
[]
designation for an administrative territorial entity television program work of art
Q230 Q159 Q142
SYSTEM
Georgia, Russia, France
Q377277 Q805 Q804 Q801 Q20837 Q278221 Q186115 Q414 Q3278 Q142 Q1948 Q262 Q148 Q189 Q265 Q47428 Q18021 Q842 Q36678 Q712 Q711 Q710 Q717 Q837 Q252 Q1460 Q399 Q403 Q1979 Q45 Q159 Q790 Q796 Q794 Q889 Q884 Q881 Q858 Q419 Q165040 Q822 Q241 Q232782 Q244 Q1974 Q490398 Q12515 Q33 Q32 Q37 Q34 Q928 Q58477 Q739 Q423 Q424 Q851 Q733 Q854 Q819 Q340628 Q769680 Q12798 Q236 Q230 Q12538 Q232 Q233 Q1093 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 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 Q77 Q774 Q948 Q817 Q810 Q1019 Q1014 Q1016 Q1273 Q1011 Q28 Q12620 Q678 Q800 Q12545 Q1952 Q53216 Q6247
(c(Q15416)|c(Q838948),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 Q838948
action count
action filter_multi_types
action find_reverse
entity Q837
relation P840
type Q15416
type Q838948
[ANSWERS] are approximately the same number of television programs and works of art set in as Nepal
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?b ) AS ?y ) WHERE { { ?b property:P840 ?h . ?b rdf:type ontology:Q838948 . ?h rdf:type ontology:Q15617994 } UNION { ?b property:P840 ?h . ?b rdf:type ontology:Q15416 . ?h rdf:type ontology:Q15617994 } } GROUP BY ?h } . FILTER ( ?y = ?l ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { ?o property:P840 resource:Q837 . { { ?o rdf:type ontology:Q838948 } UNION { ?o rdf:type ontology:Q15416 } } } } }
Glückstadt Yemen Panama Israel Fanø Berchtesgaden Montmartre Argentina Charente-Maritime France Manitoba Algeria People's Republic of China Iceland Uzbekistan Valdobbiadene Biella Oman West Bank Fiji Mongolia Kiribati Venezuela Nepal Indonesia Sicily Armenia Serbia Prince Edward Island Portugal Russia Haiti Iraq Iran Afghanistan South Korea Vietnam Syria Peru Duchy of Parma Lebanon Cuba Portofino Barbados British Columbia Peenemünde Gard Finland Luxembourg Lithuania Sweden Philippines Capua Colombia North Korea Cambodia Saudi Arabia Paraguay Sri Lanka Laos Aggius Bornholm Vendée Montenegro Georgia Haute-Garonne Kazakhstan Malta Limburg 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 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 Uruguay Guatemala Tunisia Kuwait Jordan Madagascar Liberia Libya Tuscany Cape Verde Hungary Mayenne Tonga Costa Rica Hérault Nova Scotia Aquileia Mantua
Georgia, Russia and France are approximately the same number of television programs and works of art set in as Nepal
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 work of art
action count
action filter_multi_types
action find_reverse
entity Nepal
relation narrative location
type television program
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?b ) AS ?y ) WHERE { { ?b property:narrative_location ?h . ?b rdf:type ontology:work_of_art . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?b property:narrative_location ?h . ?b rdf:type ontology:television_program . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?h } . FILTER ( ?y = ?l ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { ?o property:narrative_location resource:Nepal . { { ?o rdf:type ontology:work_of_art } UNION { ?o rdf:type ontology:television_program } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1452
P840
Q15617994 Q15416 Q838948
USER
And what about Basilicata?
(c(Q15416)|c(Q838948),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 Q838948
action count
action filter_multi_types
action find_reverse
entity Q1452
relation P840
type Q15416
type Q838948
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) ?l WHERE { { ?v property:P840 ?l . ?l rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15416 } UNION { ?v property:P840 ?l . ?l rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q838948 } } GROUP BY ?l } . FILTER ( ?k = ?z ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { ?g property:P840 resource:Q1452 . { ?g rdf:type ?m . VALUES ( ?m ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } } } } }
Basilicata
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 work of art
action count
action filter_multi_types
action find_reverse
entity Basilicata
relation narrative location
type television program
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) ?l WHERE { { ?v property:narrative_location ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:television_program } UNION { ?v property:narrative_location ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:work_of_art } } GROUP BY ?l } . FILTER ( ?k = ?z ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { ?g property:narrative_location resource:Basilicata . { ?g rdf:type ?m . VALUES ( ?m ) { ( ontology:television_program ) ( ontology:work_of_art ) } } } } }
[]
designation for an administrative territorial entity television program work of art
Q230 Q159 Q142
SYSTEM
Georgia, Russia, France
Q377277 Q805 Q804 Q801 Q20837 Q278221 Q186115 Q414 Q3278 Q142 Q1948 Q262 Q148 Q189 Q265 Q47428 Q18021 Q842 Q36678 Q712 Q711 Q710 Q717 Q837 Q252 Q1460 Q399 Q403 Q1979 Q45 Q159 Q790 Q796 Q794 Q889 Q884 Q881 Q858 Q419 Q165040 Q822 Q241 Q232782 Q244 Q1974 Q490398 Q12515 Q33 Q32 Q37 Q34 Q928 Q58477 Q739 Q423 Q424 Q851 Q733 Q854 Q819 Q340628 Q769680 Q12798 Q236 Q230 Q12538 Q232 Q233 Q1093 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 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 Q77 Q774 Q948 Q817 Q810 Q1019 Q1014 Q1016 Q1273 Q1011 Q28 Q12620 Q678 Q800 Q12545 Q1952 Q53216 Q6247
(c(Q15416)|c(Q838948),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 Q838948
action count
action filter_multi_types
action find_reverse
entity Q1452
relation P840
type Q15416
type Q838948
[ANSWERS]
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) ?l WHERE { { ?v property:P840 ?l . ?l rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15416 } UNION { ?v property:P840 ?l . ?l rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q838948 } } GROUP BY ?l } . FILTER ( ?k = ?z ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { ?g property:P840 resource:Q1452 . { ?g rdf:type ?m . VALUES ( ?m ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } } } } }
Glückstadt Yemen Panama Israel Fanø Berchtesgaden Montmartre Argentina Charente-Maritime France Manitoba Algeria People's Republic of China Iceland Uzbekistan Valdobbiadene Biella Oman West Bank Fiji Mongolia Kiribati Venezuela Nepal Indonesia Sicily Armenia Serbia Prince Edward Island Portugal Russia Haiti Iraq Iran Afghanistan South Korea Vietnam Syria Peru Duchy of Parma Lebanon Cuba Portofino Barbados British Columbia Peenemünde Gard Finland Luxembourg Lithuania Sweden Philippines Capua Colombia North Korea Cambodia Saudi Arabia Paraguay Sri Lanka Laos Aggius Bornholm Vendée Montenegro Georgia Haute-Garonne Kazakhstan Malta Limburg 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 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 Uruguay Guatemala Tunisia Kuwait Jordan Madagascar Liberia Libya Tuscany Cape Verde Hungary Mayenne Tonga Costa Rica Hérault Nova Scotia Aquileia 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 work of art
action count
action filter_multi_types
action find_reverse
entity Basilicata
relation narrative location
type television program
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) ?l WHERE { { ?v property:narrative_location ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:television_program } UNION { ?v property:narrative_location ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:work_of_art } } GROUP BY ?l } . FILTER ( ?k = ?z ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { ?g property:narrative_location resource:Basilicata . { ?g rdf:type ?m . VALUES ( ?m ) { ( ontology:television_program ) ( ontology:work_of_art ) } } } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic associations with atmost 27 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 27
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?a ) WHERE { ?g property:P530 ?i . ?g rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?g } . FILTER ( ?a <= 27 ) }
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 27
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?a ) WHERE { ?g property:diplomatic_relation ?i . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . FILTER ( ?a <= 27 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
157
Q702 Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 27
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?a ) WHERE { ?g property:P530 ?i . ?g rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?g } . FILTER ( ?a <= 27 ) }
Federated States of Micronesia Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
157
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 27
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?a ) WHERE { ?g property:diplomatic_relation ?i . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . FILTER ( ?a <= 27 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155
P35
Q502895
USER
Who are elected as the head of state of Brazil ?
(Q155,P35,c(Q502895))
action filter_type
action find
entity Q155
relation P35
type Q502895
['Q155', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q155 property:P35 ?a . ?a rdf:type ontology:Q502895 }
Brazil
action filter_type
action find
entity Brazil
relation head of state
type common name
['Brazil', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Brazil property:head_of_state ?a . ?a rdf:type ontology:common_name }
[]
common name
Q37181 Q230578 Q40722
SYSTEM
Luiz Inácio Lula da Silva, Fernando Henrique Cardoso, Dilma Rousseff
Q37181 Q230578 Q463533 Q485946 Q236503 Q40722
(Q155,P35,c(Q502895))
action filter_type
action find
entity Q155
relation P35
type Q502895
[ANSWERS] are elected as the head of state of Brazil
['Q155', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q155 property:P35 ?a . ?a rdf:type ontology:Q502895 }
Luiz Inácio Lula da Silva Fernando Henrique Cardoso Michel Temer Itamar Franco Fernando Collor de Mello Dilma Rousseff
Luiz Inácio Lula da Silva, Fernando Henrique Cardoso and Dilma Rousseff are elected as the head of state of Brazil
Luiz Inácio Lula da Silva Fernando Henrique Cardoso Dilma Rousseff
action filter_type
action find
entity Brazil
relation head of state
type common name
['Brazil', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Brazil property:head_of_state ?a . ?a rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q175379
Q502895
USER
And how about Empire of China?
(Q175379,P35,c(Q502895))
action filter_type
action find
entity Q175379
relation P35
type Q502895
['Q175379', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q175379 property:P35 ?l . ?l rdf:type ontology:Q502895 }
Empire of China
action filter_type
action find
entity Empire of China
relation head of state
type common name
['Empire of China', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Empire_of_China property:head_of_state ?l . ?l rdf:type ontology:common_name }
[]
common name
Q210329
SYSTEM
Yuan Shikai
Q210329
(Q175379,P35,c(Q502895))
action filter_type
action find
entity Q175379
relation P35
type Q502895
[ANSWER]
['Q175379', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q175379 property:P35 ?l . ?l rdf:type ontology:Q502895 }
Yuan Shikai
Yuan Shikai
action filter_type
action find
entity Empire of China
relation head of state
type common name
['Empire of China', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Empire_of_China property:head_of_state ?l . ?l rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q159
P710
Q180684
USER
What event was Russia a participant of ?
(c(Q180684),P710,Q159)
action filter_type
action find_reverse
entity Q159
relation P710
type Q180684
[{'concept': 'Q180684'}, 'P710', 'Q159']
SELECT DISTINCT ?b WHERE { ?b property:P710 resource:Q159 . ?b rdf:type ontology:Q180684 }
Russia
action filter_type
action find_reverse
entity Russia
relation participant
type conflict
[{'concept': 'conflict'}, 'participant', 'Russia']
SELECT DISTINCT ?b WHERE { ?b property:participant resource:Russia . ?b rdf:type ontology:conflict }
[]
conflict
Q26998563
SYSTEM
Aleppo offensive (September–October 2016)
Q26998563
(c(Q180684),P710,Q159)
action filter_type
action find_reverse
entity Q159
relation P710
type Q180684
Russia was called [ANSWER]
[{'concept': 'Q180684'}, 'P710', 'Q159']
SELECT DISTINCT ?b WHERE { ?b property:P710 resource:Q159 . ?b rdf:type ontology:Q180684 }
Aleppo offensive (September–October 2016)
Russia was called Aleppo offensive (September–October 2016)
Aleppo offensive (September–October 2016)
action filter_type
action find_reverse
entity Russia
relation participant
type conflict
[{'concept': 'conflict'}, 'participant', 'Russia']
SELECT DISTINCT ?b WHERE { ?b property:participant resource:Russia . ?b rdf:type ontology:conflict }
[]