Simple Question (Direct)
Simple Question
Q2063696
P1412
Q34770
USER
Which language can Y. S. Rajasekhara Reddy understand ?
(Q2063696,P1412,c(Q34770))
action filter_type
action find
entity Q2063696
relation P1412
type Q34770
['Q2063696', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { resource:Q2063696 property:P1412 ?j . ?j rdf:type ontology:Q34770 }
Y. S. Rajasekhara Reddy
action filter_type
action find
entity Y. S. Rajasekhara Reddy
relation languages spoken, written or signed
type language
['Y. S. Rajasekhara Reddy', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { resource:Y._S._Rajasekhara_Reddy property:languages_spoken,_written_or_signed ?j . ?j rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q2063696,P1412,c(Q34770))
action filter_type
action find
entity Q2063696
relation P1412
type Q34770
Y. S. Rajasekhara Reddy can understand the [ANSWER]
['Q2063696', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { resource:Q2063696 property:P1412 ?j . ?j rdf:type ontology:Q34770 }
English
Y. S. Rajasekhara Reddy can understand the English
English
action filter_type
action find
entity Y. S. Rajasekhara Reddy
relation languages spoken, written or signed
type language
['Y. S. Rajasekhara Reddy', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { resource:Y._S._Rajasekhara_Reddy property:languages_spoken,_written_or_signed ?j . ?j rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2063696
P22
Q502895
USER
Which person has that one as father ?
(c(Q502895),P22,Q1860)
action filter_type
action find_reverse
entity Q2063696
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q1860']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . ?n property:P22 resource:Q2063696 }
Y. S. Rajasekhara Reddy
action filter_type
action find_reverse
entity Y. S. Rajasekhara Reddy
relation father
type common name
[{'concept': 'common name'}, 'father', 'English']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . ?n property:father resource:Y._S._Rajasekhara_Reddy }
[]
common name
Q3531971
SYSTEM
Y. S. Jaganmohan Reddy
Q3531971
(c(Q502895),P22,Q1860)
action filter_type
action find_reverse
entity Q2063696
relation P22
type Q502895
[ANSWER] has that one as father
[{'concept': 'Q502895'}, 'P22', 'Q1860']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . ?n property:P22 resource:Q2063696 }
Y. S. Jaganmohan Reddy
Y. S. Jaganmohan Reddy has that one as father
Y. S. Jaganmohan Reddy
action filter_type
action find_reverse
entity Y. S. Rajasekhara Reddy
relation father
type common name
[{'concept': 'common name'}, 'father', 'English']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . ?n property:father resource:Y._S._Rajasekhara_Reddy }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q21572793 Q2063696
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Y. S. Rajasekhara Reddy or Ali Azmat ?
OR((Q2063696,P27,c(Q15617994)), (Q21572793,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2063696
relation P27
action find
entity Q21572793
relation P27
type Q15617994
{'OR': [['Q2063696', 'P27', {'concept': 'Q15617994'}], ['Q21572793', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { ?x property:P27 ?c . VALUES ( ?x ) { ( resource:Q2063696 ) ( resource:Q21572793 ) } } . ?c rdf:type ontology:Q15617994 }
Ali Azmat Y. S. Rajasekhara Reddy
action filter_type
action union
action find
entity Y. S. Rajasekhara Reddy
relation country of citizenship
action find
entity Ali Azmat
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Y. S. Rajasekhara Reddy', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Ali Azmat', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { ?x property:country_of_citizenship ?c . VALUES ( ?x ) { ( resource:Y._S._Rajasekhara_Reddy ) ( resource:Ali_Azmat ) } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q843 Q668
SYSTEM
Pakistan, India
Q843 Q668
OR((Q2063696,P27,c(Q15617994)), (Q21572793,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2063696
relation P27
action find
entity Q21572793
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Y. S. Rajasekhara Reddy or Ali Azmat
{'OR': [['Q2063696', 'P27', {'concept': 'Q15617994'}], ['Q21572793', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { ?x property:P27 ?c . VALUES ( ?x ) { ( resource:Q2063696 ) ( resource:Q21572793 ) } } . ?c rdf:type ontology:Q15617994 }
Pakistan India
Pakistan and India are the countries of citizenship of Y. S. Rajasekhara Reddy or Ali Azmat
Pakistan India
action filter_type
action union
action find
entity Y. S. Rajasekhara Reddy
relation country of citizenship
action find
entity Ali Azmat
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Y. S. Rajasekhara Reddy', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Ali Azmat', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { ?x property:country_of_citizenship ?c . VALUES ( ?x ) { ( resource:Y._S._Rajasekhara_Reddy ) ( resource:Ali_Azmat ) } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q953
P530
Q15617994 Q15617994
USER
How many administrative territories are known to have diplomatic connections with less number of administrative territories than Zambia ?
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q953
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?y ) WHERE { ?p property:P530 ?s . ?p rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { ?f rdf:type ontology:Q15617994 . resource:Q953 property:P530 ?f } } . FILTER ( ?y < ?g ) }
Zambia
action count
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Zambia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?y ) WHERE { ?p property:diplomatic_relation ?s . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Zambia property:diplomatic_relation ?f } } . FILTER ( ?y < ?g ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
156
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
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q953
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?y ) WHERE { ?p property:P530 ?s . ?p rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { ?f rdf:type ontology:Q15617994 . resource:Q953 property:P530 ?f } } . FILTER ( ?y < ?g ) }
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
156
action count
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Zambia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?y ) WHERE { ?p property:diplomatic_relation ?s . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Zambia property:diplomatic_relation ?f } } . FILTER ( ?y < ?g ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q189
P530
Q15617994 Q15617994
USER
And also tell me about Iceland?
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q189
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?x ) AS ?g ) WHERE { ?x rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 . ?o property:P530 ?x } GROUP BY ?o } . FILTER ( ?g < ?j ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { resource:Q189 property:P530 ?t . ?t rdf:type ontology:Q15617994 } } }
Iceland
action count
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Iceland
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?x ) AS ?g ) WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o property:diplomatic_relation ?x } GROUP BY ?o } . FILTER ( ?g < ?j ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { resource:Iceland property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
52
Q702 Q804 Q262 Q265 Q712 Q837 Q657 Q792 Q986 Q242 Q811 Q924 Q29999 Q854 Q819 Q424 Q730 Q232 Q921 Q1027 Q1020 Q1028 Q786 Q1036 Q1037 Q974 Q1032 Q1030 Q965 Q967 Q963 Q697 Q695 Q115 Q117 Q754 Q912 Q1007 Q1006 Q1005 Q1009 Q1008 Q971 Q683 Q686 Q836 Q774 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q189
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?x ) AS ?g ) WHERE { ?x rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 . ?o property:P530 ?x } GROUP BY ?o } . FILTER ( ?g < ?j ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { resource:Q189 property:P530 ?t . ?t rdf:type ontology:Q15617994 } } }
Federated States of Micronesia Panama Algeria Uzbekistan Fiji Nepal Chad El Salvador Eritrea Belize Nicaragua Tanzania Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Kazakhstan Brunei Mauritius Malawi Morocco Dominican Republic Uganda Rwanda Democratic Republic of the Congo Niger Namibia Burkina Faso Burundi Botswana Nauru Palau Ethiopia Ghana Trinidad and Tobago Mali Guinea-Bissau Guinea Gambia Cameroon Côte d'Ivoire Republic of the Congo Samoa Vanuatu Myanmar Guatemala Kuwait Madagascar Togo Tonga New Caledonia
52
action count
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Iceland
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?x ) AS ?g ) WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o property:diplomatic_relation ?x } GROUP BY ?o } . FILTER ( ?g < ?j ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { resource:Iceland property:diplomatic_relation ?t . ?t 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 tactful political relations with approximately 35 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 35
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?x ) WHERE { ?q property:P530 ?g . ?q rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 } GROUP BY ?q } . FILTER ( ?x = 35 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 35
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?x ) WHERE { ?q property:diplomatic_relation ?g . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . FILTER ( ?x = 35 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q184
SYSTEM
Belarus
Q184
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 35
[ANSWER] have tactful political relations with approximately 35 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?x ) WHERE { ?q property:P530 ?g . ?q rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 } GROUP BY ?q } . FILTER ( ?x = 35 ) }
Belarus
Belarus have tactful political relations with approximately 35 administrative territories
Belarus
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 35
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?x ) WHERE { ?q property:diplomatic_relation ?g . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . FILTER ( ?x = 35 ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q184
P610
Q8502
USER
Which is the highest point of that administrative territory ?
(Q184,P610,c(Q8502))
action filter_type
action find
entity Q184
relation P610
type Q8502
['Q184', 'P610', {'concept': 'Q8502'}]
SELECT DISTINCT ?g WHERE { resource:Q184 property:P610 ?g . ?g rdf:type ontology:Q8502 }
Belarus
action filter_type
action find
entity Belarus
relation highest point
type mountain
['Belarus', 'highest point', {'concept': 'mountain'}]
SELECT DISTINCT ?g WHERE { resource:Belarus property:highest_point ?g . ?g rdf:type ontology:mountain }
[]
mountain
Q921447
SYSTEM
Dzyarzhynskaya Hara
Q921447
(Q184,P610,c(Q8502))
action filter_type
action find
entity Q184
relation P610
type Q8502
The highest point of that administrative territory is the [ANSWER]
['Q184', 'P610', {'concept': 'Q8502'}]
SELECT DISTINCT ?g WHERE { resource:Q184 property:P610 ?g . ?g rdf:type ontology:Q8502 }
Dzyarzhynskaya Hara
The highest point of that administrative territory is the Dzyarzhynskaya Hara
Dzyarzhynskaya Hara
action filter_type
action find
entity Belarus
relation highest point
type mountain
['Belarus', 'highest point', {'concept': 'mountain'}]
SELECT DISTINCT ?g WHERE { resource:Belarus property:highest_point ?g . ?g rdf:type ontology:mountain }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P361
Q49447 Q8502
USER
Which world views are min number of mountains a portion of ?
(c(Q8502),P361,Q17047038)
action argmin
action find_reverse_tuple_counts
relation P361
type Q49447
type Q8502
[{'concept': 'Q8502'}, 'P361', 'Q17047038']
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?r ) { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?c ) WHERE { ?n rdf:type ontology:Q49447 . ?q rdf:type ontology:Q8502 . ?q property:P361 ?n } GROUP BY ?n } } . { SELECT DISTINCT ?z ( COUNT ( ?s ) AS ?k ) WHERE { ?s property:P361 ?z . ?z rdf:type ontology:Q49447 . ?s rdf:type ontology:Q8502 } GROUP BY ?z } . FILTER ( ?k = ?r ) }
action argmin
action find_reverse_tuple_counts
relation part of
type world view
type mountain
[{'concept': 'mountain'}, 'part of', 'Belarusian mythology']
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?r ) { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?c ) WHERE { ?n rdf:type ontology:world_view . ?q rdf:type ontology:mountain . ?q property:part_of ?n } GROUP BY ?n } } . { SELECT DISTINCT ?z ( COUNT ( ?s ) AS ?k ) WHERE { ?s property:part_of ?z . ?z rdf:type ontology:world_view . ?s rdf:type ontology:mountain } GROUP BY ?z } . FILTER ( ?k = ?r ) }
[]
world view mountain
Q24265774 Q201571 Q814158
SYSTEM
Orcadian mythology, Slavic mythology, Japanese mythology
Q201571 Q1106575 Q919887 Q3349483 Q3281788 Q1471505 Q810383 Q1084084 Q5551960 Q4400058 Q24265774 Q814158 Q210677 Q220734 Q669000 Q1142277 Q684411 Q2076739 Q122173 Q878062 Q17047038
(c(Q8502),P361,Q17047038)
action argmin
action find_reverse_tuple_counts
relation P361
type Q49447
type Q8502
[ANSWERS] are min number of mountains a portion of
[{'concept': 'Q8502'}, 'P361', 'Q17047038']
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?r ) { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?c ) WHERE { ?n rdf:type ontology:Q49447 . ?q rdf:type ontology:Q8502 . ?q property:P361 ?n } GROUP BY ?n } } . { SELECT DISTINCT ?z ( COUNT ( ?s ) AS ?k ) WHERE { ?s property:P361 ?z . ?z rdf:type ontology:Q49447 . ?s rdf:type ontology:Q8502 } GROUP BY ?z } . FILTER ( ?k = ?r ) }
Slavic mythology Celtic mythology Hungarian mythology Islamic mythology classical mythology Irish mythology Basque mythology Christian mythology Germanic mythology Romanian mythology Orcadian mythology Japanese mythology Chinese mythology Maya mythology Estonian mythology Hittite mythology Armenian mythology Vedic mythology Roman mythology Hindu mythology Belarusian mythology
Orcadian mythology, Slavic mythology and Japanese mythology are min number of mountains a portion of
Orcadian mythology Slavic mythology Japanese mythology
action argmin
action find_reverse_tuple_counts
relation part of
type world view
type mountain
[{'concept': 'mountain'}, 'part of', 'Belarusian mythology']
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?r ) { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?c ) WHERE { ?n rdf:type ontology:world_view . ?q rdf:type ontology:mountain . ?q property:part_of ?n } GROUP BY ?n } } . { SELECT DISTINCT ?z ( COUNT ( ?s ) AS ?k ) WHERE { ?s property:part_of ?z . ?z rdf:type ontology:world_view . ?s rdf:type ontology:mountain } GROUP BY ?z } . FILTER ( ?k = ?r ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q2143665 Q814158
P136 P921
Q838948
USER
Which works of art were mainly based on Japanese mythology and as children's film as their class ?
AND((c(Q838948),P921,Q814158), (c(Q838948),P136,Q2143665))
action filter_type
action intersection
action find_reverse
entity Q814158
relation P921
action find_reverse
entity Q2143665
relation P136
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P921', 'Q814158'], [{'concept': 'Q838948'}, 'P136', 'Q2143665']]}
SELECT DISTINCT ?u WHERE { ?u property:P136 resource:Q2143665 . ?u property:P921 resource:Q814158 . ?u rdf:type ontology:Q838948 }
children's film Japanese mythology
action filter_type
action intersection
action find_reverse
entity Japanese mythology
relation main subject
action find_reverse
entity children's film
relation genre
type work of art
{'AND': [[{'concept': 'work of art'}, 'main subject', 'Japanese mythology'], [{'concept': 'work of art'}, 'genre', "children's film"]]}
SELECT DISTINCT ?u WHERE { ?u property:genre resource:children's_film . ?u property:main_subject resource:Japanese_mythology . ?u rdf:type ontology:work_of_art }
[]
work of art
Q155653 Q2344327
SYSTEM
Spirited Away, Wanpaku Ōji no Orochi Taiji
Q155653 Q2344327
AND((c(Q838948),P921,Q814158), (c(Q838948),P136,Q2143665))
action filter_type
action intersection
action find_reverse
entity Q814158
relation P921
action find_reverse
entity Q2143665
relation P136
type Q838948
[ANSWERS] were mainly based on Japanese mythology and as children's film as their class
{'AND': [[{'concept': 'Q838948'}, 'P921', 'Q814158'], [{'concept': 'Q838948'}, 'P136', 'Q2143665']]}
SELECT DISTINCT ?u WHERE { ?u property:P136 resource:Q2143665 . ?u property:P921 resource:Q814158 . ?u rdf:type ontology:Q838948 }
Spirited Away Wanpaku Ōji no Orochi Taiji
Spirited Away and Wanpaku Ōji no Orochi Taiji were mainly based on Japanese mythology and as children's film as their class
Spirited Away Wanpaku Ōji no Orochi Taiji
action filter_type
action intersection
action find_reverse
entity Japanese mythology
relation main subject
action find_reverse
entity children's film
relation genre
type work of art
{'AND': [[{'concept': 'work of art'}, 'main subject', 'Japanese mythology'], [{'concept': 'work of art'}, 'genre', "children's film"]]}
SELECT DISTINCT ?u WHERE { ?u property:genre resource:children's_film . ?u property:main_subject resource:Japanese_mythology . ?u rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q921447
P17
Q15617994
USER
Which administrative territory is Dzyarzhynskaya Hara situated in ?
(Q921447,P17,c(Q15617994))
action filter_type
action find
entity Q921447
relation P17
type Q15617994
['Q921447', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q921447 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
Dzyarzhynskaya Hara
action filter_type
action find
entity Dzyarzhynskaya Hara
relation country
type designation for an administrative territorial entity
['Dzyarzhynskaya Hara', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Dzyarzhynskaya_Hara property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q184
SYSTEM
Belarus
Q184
(Q921447,P17,c(Q15617994))
action filter_type
action find
entity Q921447
relation P17
type Q15617994
[ANSWER] is Dzyarzhynskaya Hara situated in
['Q921447', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q921447 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
Belarus
Belarus is Dzyarzhynskaya Hara situated in
Belarus
action filter_type
action find
entity Dzyarzhynskaya Hara
relation country
type designation for an administrative territorial entity
['Dzyarzhynskaya Hara', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Dzyarzhynskaya_Hara property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q668
P36
Q56061
USER
What is the capital of India ?
(Q668,P36,c(Q56061))
action filter_type
action find
entity Q668
relation P36
type Q56061
['Q668', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q668 property:P36 ?i . ?i rdf:type ontology:Q56061 }
India
action filter_type
action find
entity India
relation capital
type administrative territorial entity
['India', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:India property:capital ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q987
SYSTEM
New Delhi
Q987
(Q668,P36,c(Q56061))
action filter_type
action find
entity Q668
relation P36
type Q56061
The capital of India is Delhi [ANSWER]
['Q668', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q668 property:P36 ?i . ?i rdf:type ontology:Q56061 }
New Delhi
The capital of India is Delhi New Delhi
New Delhi
action filter_type
action find
entity India
relation capital
type administrative territorial entity
['India', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:India property:capital ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q987
P551
Q502895
USER
Which people have residence at that administrative territory ?
(c(Q502895),P551,Q987)
action filter_type
action find_reverse
entity Q987
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q987']
SELECT DISTINCT ?c WHERE { ?c property:P551 resource:Q987 . ?c rdf:type ontology:Q502895 }
New Delhi
action filter_type
action find_reverse
entity New Delhi
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'New Delhi']
SELECT DISTINCT ?c WHERE { ?c property:residence resource:New_Delhi . ?c rdf:type ontology:common_name }
[]
common name
Q36740 Q1047 Q1058
SYSTEM
Aung San Suu Kyi, Jawaharlal Nehru, Narendra Modi
Q26707681 Q6272653 Q20665358 Q4766071 Q1047 Q23310537 Q16224774 Q1391241 Q36740 Q1058 Q26707649
(c(Q502895),P551,Q987)
action filter_type
action find_reverse
entity Q987
relation P551
type Q502895
[ANSWERS] have residence at that administrative territory
[{'concept': 'Q502895'}, 'P551', 'Q987']
SELECT DISTINCT ?c WHERE { ?c property:P551 resource:Q987 . ?c rdf:type ontology:Q502895 }
Pankaj Bisht Jonathan Brookins Sumit Nagal Ankita Bhambri Jawaharlal Nehru Gauri Gill Rishika Sunkara Yuki Bhambri Aung San Suu Kyi Narendra Modi Amit Kherwal
Aung San Suu Kyi, Jawaharlal Nehru and Narendra Modi have residence at that administrative territory
Aung San Suu Kyi Jawaharlal Nehru Narendra Modi
action filter_type
action find_reverse
entity New Delhi
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'New Delhi']
SELECT DISTINCT ?c WHERE { ?c property:residence resource:New_Delhi . ?c rdf:type ontology:common_name }
[]