Simple Question (Direct)
Simple Question
Q498375
P58
Q502895
USER
Who wrote the script for Porco Rosso ?
(Q498375,P58,c(Q502895))
action filter_type
action find
entity Q498375
relation P58
type Q502895
['Q498375', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q498375 property:P58 ?b . ?b rdf:type ontology:Q502895 }
Porco Rosso
action filter_type
action find
entity Porco Rosso
relation screenwriter
type common name
['Porco Rosso', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Porco_Rosso property:screenwriter ?b . ?b rdf:type ontology:common_name }
[]
common name
Q55400
SYSTEM
Hayao Miyazaki
Q55400
(Q498375,P58,c(Q502895))
action filter_type
action find
entity Q498375
relation P58
type Q502895
[ANSWER] wrote the script for Porco Rosso
['Q498375', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q498375 property:P58 ?b . ?b rdf:type ontology:Q502895 }
Hayao Miyazaki
Hayao Miyazaki wrote the script for Porco Rosso
Hayao Miyazaki
action filter_type
action find
entity Porco Rosso
relation screenwriter
type common name
['Porco Rosso', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Porco_Rosso property:screenwriter ?b . ?b rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q55400
P1411
Q4220917
USER
Which film award was that person nominated for ?
(Q55400,P1411,c(Q4220917))
action filter_type
action find
entity Q55400
relation P1411
type Q4220917
['Q55400', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?i WHERE { resource:Q55400 property:P1411 ?i . ?i rdf:type ontology:Q4220917 }
Hayao Miyazaki
action filter_type
action find
entity Hayao Miyazaki
relation nominated for
type film award
['Hayao Miyazaki', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?i WHERE { resource:Hayao_Miyazaki property:nominated_for ?i . ?i rdf:type ontology:film_award }
[]
film award
Q106800
SYSTEM
Academy Award for Best Animated Feature
Q106800
(Q55400,P1411,c(Q4220917))
action filter_type
action find
entity Q55400
relation P1411
type Q4220917
That person was nominated for [ANSWER]
['Q55400', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?i WHERE { resource:Q55400 property:P1411 ?i . ?i rdf:type ontology:Q4220917 }
Academy Award for Best Animated Feature
That person was nominated for Academy Award for Best Animated Feature
Academy Award for Best Animated Feature
action filter_type
action find
entity Hayao Miyazaki
relation nominated for
type film award
['Hayao Miyazaki', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?i WHERE { resource:Hayao_Miyazaki property:nominated_for ?i . ?i rdf:type ontology:film_award }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q55400
P162
Q838948
USER
Which works of art have been developed by that person ?
(c(Q838948),P162,Q106800)
action filter_type
action find_reverse
entity Q55400
relation P162
type Q838948
[{'concept': 'Q838948'}, 'P162', 'Q106800']
SELECT DISTINCT ?t WHERE { ?t property:P162 resource:Q55400 . ?t rdf:type ontology:Q838948 }
Hayao Miyazaki
action filter_type
action find_reverse
entity Hayao Miyazaki
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Academy Award for Best Animated Feature']
SELECT DISTINCT ?t WHERE { ?t property:producer resource:Hayao_Miyazaki . ?t rdf:type ontology:work_of_art }
[]
work of art
Q699835 Q196602 Q1993223
SYSTEM
Arrietty, Kiki's Delivery Service, Yanagawa Horiwari Monogatari
Q699835 Q196602 Q1993223
(c(Q838948),P162,Q106800)
action filter_type
action find_reverse
entity Q55400
relation P162
type Q838948
[ANSWERS] have been developed by that person
[{'concept': 'Q838948'}, 'P162', 'Q106800']
SELECT DISTINCT ?t WHERE { ?t property:P162 resource:Q55400 . ?t rdf:type ontology:Q838948 }
Arrietty Kiki's Delivery Service Yanagawa Horiwari Monogatari
Arrietty, Kiki's Delivery Service and Yanagawa Horiwari Monogatari have been developed by that person
Arrietty Kiki's Delivery Service Yanagawa Horiwari Monogatari
action filter_type
action find_reverse
entity Hayao Miyazaki
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Academy Award for Best Animated Feature']
SELECT DISTINCT ?t WHERE { ?t property:producer resource:Hayao_Miyazaki . ?t rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q20747498 Q1993223
P495
Q15617994
USER
Which administrative territories are the origin of Yanagawa Horiwari Monogatari or La Muerte ?
OR((Q1993223,P495,c(Q15617994)), (Q20747498,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q1993223
relation P495
action find
entity Q20747498
relation P495
type Q15617994
{'OR': [['Q1993223', 'P495', {'concept': 'Q15617994'}], ['Q20747498', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . { ?a property:P495 ?z . VALUES ( ?a ) { ( resource:Q1993223 ) ( resource:Q20747498 ) } } }
La Muerte Yanagawa Horiwari Monogatari
action filter_type
action union
action find
entity Yanagawa Horiwari Monogatari
relation country of origin
action find
entity La Muerte
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Yanagawa Horiwari Monogatari', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['La Muerte', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?a property:country_of_origin ?z . VALUES ( ?a ) { ( resource:Yanagawa_Horiwari_Monogatari ) ( resource:La_Muerte ) } } }
[]
designation for an administrative territorial entity
Q17 Q31
SYSTEM
Japan, Belgium
Q17 Q31
OR((Q1993223,P495,c(Q15617994)), (Q20747498,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q1993223
relation P495
action find
entity Q20747498
relation P495
type Q15617994
[ANSWERS] are the origin of Yanagawa Horiwari Monogatari or La Muerte
{'OR': [['Q1993223', 'P495', {'concept': 'Q15617994'}], ['Q20747498', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . { ?a property:P495 ?z . VALUES ( ?a ) { ( resource:Q1993223 ) ( resource:Q20747498 ) } } }
Japan Belgium
Japan and Belgium are the origin of Yanagawa Horiwari Monogatari or La Muerte
Japan Belgium
action filter_type
action union
action find
entity Yanagawa Horiwari Monogatari
relation country of origin
action find
entity La Muerte
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Yanagawa Horiwari Monogatari', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['La Muerte', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?a property:country_of_origin ?z . VALUES ( ?a ) { ( resource:Yanagawa_Horiwari_Monogatari ) ( resource:La_Muerte ) } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q26683473
P495
Q838948
USER
Do Nirmala Convent have those administrative territories as their place of origin ?
(Q26683473,P495,Q17) (Q26683473,P495,Q31)
action is_in
entity prev_answer
action find
entity Q26683473
relation P495
['Q26683473', 'P495', 'Q17'] ['Q26683473', 'P495', 'Q31']
ASK WHERE { VALUES ( ?a ) { ( resource:Q17 ) ( resource:Q31 ) } . resource:Q26683473 property:P495 ?a }
Nirmala Convent
action is_in
entity prev_answer
action find
entity Nirmala Convent
relation country of origin
['Nirmala Convent', 'country of origin', 'Japan'] ['Nirmala Convent', 'country of origin', 'Belgium']
ASK WHERE { VALUES ( ?a ) { ( resource:Japan ) ( resource:Belgium ) } . resource:Nirmala_Convent property:country_of_origin ?a }
[]
work of art
SYSTEM
NO
(Q26683473,P495,Q17) (Q26683473,P495,Q31)
action is_in
entity prev_answer
action find
entity Q26683473
relation P495
[ANSWER]
['Q26683473', 'P495', 'Q17'] ['Q26683473', 'P495', 'Q31']
ASK WHERE { VALUES ( ?a ) { ( resource:Q17 ) ( resource:Q31 ) } . resource:Q26683473 property:P495 ?a }
No
action is_in
entity prev_answer
action find
entity Nirmala Convent
relation country of origin
['Nirmala Convent', 'country of origin', 'Japan'] ['Nirmala Convent', 'country of origin', 'Belgium']
ASK WHERE { VALUES ( ?a ) { ( resource:Japan ) ( resource:Belgium ) } . resource:Nirmala_Convent property:country_of_origin ?a }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have a diplomatic relationship with atmost 56 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 56
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?g ) AS ?w ) WHERE { ?g property:P530 ?u . ?u rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 } GROUP BY ?u } . FILTER ( ?w <= 56 ) }
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 56
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?g ) AS ?w ) WHERE { ?g property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } . FILTER ( ?w <= 56 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q155 Q30 Q230
SYSTEM
Brazil, United States of America, Georgia
Q702 Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 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 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 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 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 56
[ANSWERS] have a diplomatic relationship with atmost 56 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?g ) AS ?w ) WHERE { ?g property:P530 ?u . ?u rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 } GROUP BY ?u } . FILTER ( ?w <= 56 ) }
Federated States of Micronesia Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil 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 Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador 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 Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
Brazil, United States of America and Georgia have a diplomatic relationship with atmost 56 administrative territories
Brazil United States of America Georgia
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 56
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?g ) AS ?w ) WHERE { ?g property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } . FILTER ( ?w <= 56 ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P530
Q56061 Q15617994
USER
How many administrative territories and administrative territories have diplomatic relationships with that administrative territory ?
(Q155,P530,c(Q56061)) (Q155,P530,c(Q15617994)) (Q155,P530,c(Q56061)) (Q155,P530,c(Q15617994)) (Q30,P530,c(Q56061)) (Q30,P530,c(Q15617994)) (Q230,P530,c(Q56061)) (Q230,P530,c(Q15617994))
['Q155', 'P530', {'concept': 'Q56061'}] ['Q155', 'P530', {'concept': 'Q15617994'}] ['Q155', 'P530', {'concept': 'Q56061'}] ['Q155', 'P530', {'concept': 'Q15617994'}] ['Q30', 'P530', {'concept': 'Q56061'}] ['Q30', 'P530', {'concept': 'Q15617994'}] ['Q230', 'P530', {'concept': 'Q56061'}] ['Q230', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q21475816 property:P530 ?z } UNION { resource:Q21475816 property:P530 ?y } UNION { resource:Q21475816 property:P530 ?z } UNION { resource:Q21475816 property:P530 ?y } UNION { resource:Q30 property:P530 ?z } UNION { resource:Q30 property:P530 ?y } UNION { resource:Q5547323 property:P530 ?z } UNION { resource:Q5547323 property:P530 ?y } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q15617994 }
['Brazil', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Brazil', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['United States of America', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Georgia', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['Georgia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Brazil property:diplomatic_relation ?z } UNION { resource:Brazil property:diplomatic_relation ?y } UNION { resource:Brazil property:diplomatic_relation ?z } UNION { resource:Brazil property:diplomatic_relation ?y } UNION { resource:United_States_of_America property:diplomatic_relation ?z } UNION { resource:United_States_of_America property:diplomatic_relation ?y } UNION { resource:Georgia property:diplomatic_relation ?z } UNION { resource:Georgia property:diplomatic_relation ?y } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
administrative territorial entity designation for an administrative territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q155
SYSTEM
Did you mean Brazil ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q21475816 property:P530 ?z } UNION { resource:Q21475816 property:P530 ?y } UNION { resource:Q21475816 property:P530 ?z } UNION { resource:Q21475816 property:P530 ?y } UNION { resource:Q30 property:P530 ?z } UNION { resource:Q30 property:P530 ?y } UNION { resource:Q5547323 property:P530 ?z } UNION { resource:Q5547323 property:P530 ?y } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q15617994 }
Did you mean Brazil ?
Brazil
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Brazil property:diplomatic_relation ?z } UNION { resource:Brazil property:diplomatic_relation ?y } UNION { resource:Brazil property:diplomatic_relation ?z } UNION { resource:Brazil property:diplomatic_relation ?y } UNION { resource:United_States_of_America property:diplomatic_relation ?z } UNION { resource:United_States_of_America property:diplomatic_relation ?y } UNION { resource:Georgia property:diplomatic_relation ?z } UNION { resource:Georgia property:diplomatic_relation ?y } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q155,P530,c(Q56061)) (Q155,P530,c(Q15617994)) (Q155,P530,c(Q56061)) (Q155,P530,c(Q15617994)) (Q30,P530,c(Q56061)) (Q30,P530,c(Q15617994)) (Q230,P530,c(Q56061)) (Q230,P530,c(Q15617994))
['Q155', 'P530', {'concept': 'Q56061'}] ['Q155', 'P530', {'concept': 'Q15617994'}] ['Q155', 'P530', {'concept': 'Q56061'}] ['Q155', 'P530', {'concept': 'Q15617994'}] ['Q30', 'P530', {'concept': 'Q56061'}] ['Q30', 'P530', {'concept': 'Q15617994'}] ['Q230', 'P530', {'concept': 'Q56061'}] ['Q230', 'P530', {'concept': 'Q15617994'}]
['Brazil', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Brazil', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['United States of America', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Georgia', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['Georgia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
55
Q96 Q801 Q800 Q843 Q1029 Q822 Q241 Q419 Q244 Q668 Q414 Q574 Q142 Q145 Q458 Q148 Q783 Q17 Q30 Q36 Q79 Q77 Q38 Q733 Q739 Q423 Q717 Q983 Q1016 Q1011 Q962 Q736 Q298 Q252 Q399 Q403 Q258 Q750 Q212 Q213 Q45 Q159 Q43 Q41 Q734 Q790 Q796 Q794 Q1049 Q1033 Q29 Q7159 Q958 Q917 Q916
(Q155,P530,c(Q56061)) (Q155,P530,c(Q15617994)) (Q155,P530,c(Q56061)) (Q155,P530,c(Q15617994)) (Q30,P530,c(Q56061)) (Q30,P530,c(Q15617994)) (Q230,P530,c(Q56061)) (Q230,P530,c(Q15617994))
[ANSWER]
['Q155', 'P530', {'concept': 'Q56061'}] ['Q155', 'P530', {'concept': 'Q15617994'}] ['Q155', 'P530', {'concept': 'Q56061'}] ['Q155', 'P530', {'concept': 'Q15617994'}] ['Q30', 'P530', {'concept': 'Q56061'}] ['Q30', 'P530', {'concept': 'Q15617994'}] ['Q230', 'P530', {'concept': 'Q56061'}] ['Q230', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q21475816 property:P530 ?z } UNION { resource:Q21475816 property:P530 ?y } UNION { resource:Q21475816 property:P530 ?z } UNION { resource:Q21475816 property:P530 ?y } UNION { resource:Q30 property:P530 ?z } UNION { resource:Q30 property:P530 ?y } UNION { resource:Q5547323 property:P530 ?z } UNION { resource:Q5547323 property:P530 ?y } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q15617994 }
Mexico Israel Costa Rica Pakistan Mozambique Lebanon Cuba Peru Barbados India Argentina East Timor France United Kingdom European Union People's Republic of China Honduras Japan United States of America Poland Egypt Uruguay Italy Paraguay Colombia North Korea Venezuela Equatorial Guinea Libya Cape Verde Benin Ecuador Chile Indonesia Armenia Serbia South Africa Bolivia Ukraine Czech Republic Portugal Russia Turkey Greece Guyana Haiti Iraq Iran Sudan Nigeria Spain African Union South Sudan Bhutan Angola
55
['Brazil', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Brazil', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['United States of America', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Georgia', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['Georgia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Brazil property:diplomatic_relation ?z } UNION { resource:Brazil property:diplomatic_relation ?y } UNION { resource:Brazil property:diplomatic_relation ?z } UNION { resource:Brazil property:diplomatic_relation ?y } UNION { resource:United_States_of_America property:diplomatic_relation ?z } UNION { resource:United_States_of_America property:diplomatic_relation ?y } UNION { resource:Georgia property:diplomatic_relation ?z } UNION { resource:Georgia property:diplomatic_relation ?y } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with approximately 13 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 13
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?k ) WHERE { ?q property:P530 ?u . ?q rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q15617994 } GROUP BY ?q } . FILTER ( ?k = 13 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 13
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?k ) WHERE { ?q property:diplomatic_relation ?u . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . FILTER ( ?k = 13 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q142 Q953 Q148
SYSTEM
France, Zambia, People's Republic of China
Q801 Q805 Q668 Q414 Q142 Q145 Q148 Q403 Q43 Q796 Q794 Q347 Q17 Q79 Q1016 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 13
[ANSWERS] have diplomatic relationships with approximately 13 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?k ) WHERE { ?q property:P530 ?u . ?q rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q15617994 } GROUP BY ?q } . FILTER ( ?k = 13 ) }
Israel Yemen India Argentina France United Kingdom People's Republic of China Serbia Turkey Iraq Iran Liechtenstein Japan Egypt Libya Cape Verde Zambia
France, Zambia and People's Republic of China have diplomatic relationships with approximately 13 administrative territories
France Zambia People's Republic of China
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 13
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?k ) WHERE { ?q property:diplomatic_relation ?u . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . FILTER ( ?k = 13 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1641127
P530
Q1048835
USER
Do Sojuela have diplomatic relations with those administrative territories ?
(Q1641127,P530,Q142) (Q1641127,P530,Q953) (Q1641127,P530,Q148)
action is_in
entity prev_answer
action find
entity Q1641127
relation P530
['Q1641127', 'P530', 'Q142'] ['Q1641127', 'P530', 'Q953'] ['Q1641127', 'P530', 'Q148']
ASK WHERE { resource:Q1641127 property:P530 ?o . VALUES ( ?o ) { ( resource:Q801 ) ( resource:Q805 ) ( resource:Q668 ) } }
Sojuela
action is_in
entity prev_answer
action find
entity Sojuela
relation diplomatic relation
['Sojuela', 'diplomatic relation', 'France'] ['Sojuela', 'diplomatic relation', 'Zambia'] ['Sojuela', 'diplomatic relation', "People's Republic of China"]
ASK WHERE { resource:Sojuela property:diplomatic_relation ?o . VALUES ( ?o ) { ( resource:Israel ) ( resource:Yemen ) ( resource:India ) } }
[]
political territorial entity
SYSTEM
NO
(Q1641127,P530,Q142) (Q1641127,P530,Q953) (Q1641127,P530,Q148)
action is_in
entity prev_answer
action find
entity Q1641127
relation P530
[ANSWER]
['Q1641127', 'P530', 'Q142'] ['Q1641127', 'P530', 'Q953'] ['Q1641127', 'P530', 'Q148']
ASK WHERE { resource:Q1641127 property:P530 ?o . VALUES ( ?o ) { ( resource:Q801 ) ( resource:Q805 ) ( resource:Q668 ) } }
No
action is_in
entity prev_answer
action find
entity Sojuela
relation diplomatic relation
['Sojuela', 'diplomatic relation', 'France'] ['Sojuela', 'diplomatic relation', 'Zambia'] ['Sojuela', 'diplomatic relation', "People's Republic of China"]
ASK WHERE { resource:Sojuela property:diplomatic_relation ?o . VALUES ( ?o ) { ( resource:Israel ) ( resource:Yemen ) ( resource:India ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q699835
P344
Q502895
USER
Which person serves as the director of photography for Arrietty ?
(Q699835,P344,c(Q502895))
action filter_type
action find
entity Q699835
relation P344
type Q502895
['Q699835', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q699835 property:P344 ?j . ?j rdf:type ontology:Q502895 }
Arrietty
action filter_type
action find
entity Arrietty
relation director of photography
type common name
['Arrietty', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Arrietty property:director_of_photography ?j . ?j rdf:type ontology:common_name }
[]
common name
Q9019103
SYSTEM
Atsushi Okui
Q9019103
(Q699835,P344,c(Q502895))
action filter_type
action find
entity Q699835
relation P344
type Q502895
As [ANSWER] serves as the director of photography for Arrietty
['Q699835', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q699835 property:P344 ?j . ?j rdf:type ontology:Q502895 }
Atsushi Okui
As Atsushi Okui serves as the director of photography for Arrietty
Atsushi Okui
action filter_type
action find
entity Arrietty
relation director of photography
type common name
['Arrietty', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Arrietty property:director_of_photography ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q64173
Q502895
USER
And also tell me about Find Me Guilty?
(Q64173,P344,c(Q502895))
action filter_type
action find
entity Q64173
relation P344
type Q502895
['Q64173', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q64173 property:P344 ?t . ?t rdf:type ontology:Q502895 }
Find Me Guilty
action filter_type
action find
entity Find Me Guilty
relation director of photography
type common name
['Find Me Guilty', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Find_Me_Guilty property:director_of_photography ?t . ?t rdf:type ontology:common_name }
[]
common name
Q7363784
SYSTEM
Ron Fortunato
Q7363784
(Q64173,P344,c(Q502895))
action filter_type
action find
entity Q64173
relation P344
type Q502895
[ANSWER]
['Q64173', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q64173 property:P344 ?t . ?t rdf:type ontology:Q502895 }
Ron Fortunato
Ron Fortunato
action filter_type
action find
entity Find Me Guilty
relation director of photography
type common name
['Find Me Guilty', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Find_Me_Guilty property:director_of_photography ?t . ?t rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q3093577 Q17
P530 P27
Q15617994
USER
Which administrative territories holds diplomatic relationship with Japan and do Gabriel Adrien Marie Poissonnier Desperrières belong to ?
AND((Q17,P530,c(Q15617994)), (Q3093577,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q17
relation P530
action find
entity Q3093577
relation P27
type Q15617994
{'AND': [['Q17', 'P530', {'concept': 'Q15617994'}], ['Q3093577', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { resource:Q17 property:P530 ?j . resource:Q3093577 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Gabriel Adrien Marie Poissonnier Desperrières Japan
action filter_type
action intersection
action find
entity Japan
relation diplomatic relation
action find
entity Gabriel Adrien Marie Poissonnier Desperrières
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Japan', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Gabriel Adrien Marie Poissonnier Desperrières', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { resource:Japan property:diplomatic_relation ?j . resource:Gabriel_Adrien_Marie_Poissonnier_Desperrières property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
AND((Q17,P530,c(Q15617994)), (Q3093577,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q17
relation P530
action find
entity Q3093577
relation P27
type Q15617994
[ANSWER] holds diplomatic relationship with Japan and do Gabriel Adrien Marie Poissonnier Desperrières belong to
{'AND': [['Q17', 'P530', {'concept': 'Q15617994'}], ['Q3093577', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { resource:Q17 property:P530 ?j . resource:Q3093577 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
France
France holds diplomatic relationship with Japan and do Gabriel Adrien Marie Poissonnier Desperrières belong to
France
action filter_type
action intersection
action find
entity Japan
relation diplomatic relation
action find
entity Gabriel Adrien Marie Poissonnier Desperrières
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Japan', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Gabriel Adrien Marie Poissonnier Desperrières', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { resource:Japan property:diplomatic_relation ?j . resource:Gabriel_Adrien_Marie_Poissonnier_Desperrières property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q142 Q37143 Q7184
P463
Q484652
USER
Is that administrative territory a member of G8 and North Atlantic Treaty Organisation ?
(Q142,P463,Q37143) (Q142,P463,Q7184)
action is_in
entity Q142
action intersection
action find_reverse
entity Q37143
relation P463
action find_reverse
entity Q7184
relation P463
['Q142', 'P463', 'Q37143'] ['Q142', 'P463', 'Q7184']
ASK WHERE { resource:Q142 property:P463 resource:Q37143 . resource:Q142 property:P463 resource:Q7184 }
France G8 North Atlantic Treaty Organisation
action is_in
entity France
action intersection
action find_reverse
entity G8
relation member of
action find_reverse
entity North Atlantic Treaty Organisation
relation member of
['France', 'member of', 'G8'] ['France', 'member of', 'North Atlantic Treaty Organisation']
ASK WHERE { resource:France property:member_of resource:G8 . resource:France property:member_of resource:North_Atlantic_Treaty_Organisation }
[]
international organization
SYSTEM
YES
(Q142,P463,Q37143) (Q142,P463,Q7184)
action is_in
entity Q142
action intersection
action find_reverse
entity Q37143
relation P463
action find_reverse
entity Q7184
relation P463
[ANSWER]
['Q142', 'P463', 'Q37143'] ['Q142', 'P463', 'Q7184']
ASK WHERE { resource:Q142 property:P463 resource:Q37143 . resource:Q142 property:P463 resource:Q7184 }
Yes
action is_in
entity France
action intersection
action find_reverse
entity G8
relation member of
action find_reverse
entity North Atlantic Treaty Organisation
relation member of
['France', 'member of', 'G8'] ['France', 'member of', 'North Atlantic Treaty Organisation']
ASK WHERE { resource:France property:member_of resource:G8 . resource:France property:member_of resource:North_Atlantic_Treaty_Organisation }
[]