Simple Question (Direct)
Simple Question
Q20065246
P21
Q290
USER
What is the sex of Savita Behen ?
(Q20065246,P21,c(Q290))
action filter_type
action find
entity Q20065246
relation P21
type Q290
['Q20065246', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q20065246 property:P21 ?k . ?k rdf:type ontology:Q290 }
Savita Behen
action filter_type
action find
entity Savita Behen
relation gender
type sex
['Savita Behen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:Savita_Behen property:gender ?k . ?k rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q20065246,P21,c(Q290))
action filter_type
action find
entity Q20065246
relation P21
type Q290
The sex of Savita Behen is the [ANSWER]
['Q20065246', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q20065246 property:P21 ?k . ?k rdf:type ontology:Q290 }
female
The sex of Savita Behen is the female
female
action filter_type
action find
entity Savita Behen
relation gender
type sex
['Savita Behen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:Savita_Behen property:gender ?k . ?k rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q20065246
P106
Q12737077
USER
What does that person do for a living ?
(Q6581072,P106,c(Q12737077))
action filter_type
action find
entity Q20065246
relation P106
type Q12737077
['Q6581072', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q20065246 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
Savita Behen
action filter_type
action find
entity Savita Behen
relation occupation
type occupation
['female', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Savita_Behen property:occupation ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q6581072,P106,c(Q12737077))
action filter_type
action find
entity Q20065246
relation P106
type Q12737077
[ANSWER] that person does for a living
['Q6581072', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q20065246 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
politician
Politician that person does for a living
politician
action filter_type
action find
entity Savita Behen
relation occupation
type occupation
['female', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Savita_Behen property:occupation ?e . ?e rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6227894 Q20065246
P27
Q15617994
USER
Which administrative territories are the native countriesof Savita Behen or John Cunningham ?
OR((Q20065246,P27,c(Q15617994)), (Q6227894,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q20065246
relation P27
action find
entity Q6227894
relation P27
type Q15617994
{'OR': [['Q20065246', 'P27', {'concept': 'Q15617994'}], ['Q6227894', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15617994 . { { resource:Q6227894 property:P27 ?m } UNION { resource:Q20065246 property:P27 ?m } } }
John Cunningham Savita Behen
action filter_type
action union
action find
entity Savita Behen
relation country of citizenship
action find
entity John Cunningham
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Savita Behen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['John Cunningham', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:John_Cunningham property:country_of_citizenship ?m } UNION { resource:Savita_Behen property:country_of_citizenship ?m } } }
[]
designation for an administrative territorial entity
Q668 Q145
SYSTEM
India, United Kingdom
Q668 Q145
OR((Q20065246,P27,c(Q15617994)), (Q6227894,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q20065246
relation P27
action find
entity Q6227894
relation P27
type Q15617994
[ANSWERS] are the native countriesof Savita Behen or John Cunningham
{'OR': [['Q20065246', 'P27', {'concept': 'Q15617994'}], ['Q6227894', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15617994 . { { resource:Q6227894 property:P27 ?m } UNION { resource:Q20065246 property:P27 ?m } } }
India United Kingdom
India and United Kingdom are the native countriesof Savita Behen or John Cunningham
India United Kingdom
action filter_type
action union
action find
entity Savita Behen
relation country of citizenship
action find
entity John Cunningham
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Savita Behen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['John Cunningham', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:John_Cunningham property:country_of_citizenship ?m } UNION { resource:Savita_Behen property:country_of_citizenship ?m } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q2457013
P495
Q838948
USER
Did 21 Up Japan originate in those administrative territories ?
(Q2457013,P495,Q668) (Q2457013,P495,Q145)
action is_in
entity prev_answer
action find
entity Q2457013
relation P495
['Q2457013', 'P495', 'Q668'] ['Q2457013', 'P495', 'Q145']
ASK WHERE { resource:Q2457013 property:P495 ?j . VALUES ( ?j ) { ( resource:Q668 ) ( resource:Q145 ) } }
21 Up Japan
action is_in
entity prev_answer
action find
entity 21 Up Japan
relation country of origin
['21 Up Japan', 'country of origin', 'India'] ['21 Up Japan', 'country of origin', 'United Kingdom']
ASK WHERE { resource:21_Up_Japan property:country_of_origin ?j . VALUES ( ?j ) { ( resource:India ) ( resource:United_Kingdom ) } }
[]
work of art
SYSTEM
NO
(Q2457013,P495,Q668) (Q2457013,P495,Q145)
action is_in
entity prev_answer
action find
entity Q2457013
relation P495
[ANSWER]
['Q2457013', 'P495', 'Q668'] ['Q2457013', 'P495', 'Q145']
ASK WHERE { resource:Q2457013 property:P495 ?j . VALUES ( ?j ) { ( resource:Q668 ) ( resource:Q145 ) } }
No
action is_in
entity prev_answer
action find
entity 21 Up Japan
relation country of origin
['21 Up Japan', 'country of origin', 'India'] ['21 Up Japan', 'country of origin', 'United Kingdom']
ASK WHERE { resource:21_Up_Japan property:country_of_origin ?j . VALUES ( ?j ) { ( resource:India ) ( resource:United_Kingdom ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q20065246 Q668
P27
Q15617994
USER
Is Savita Behen a civilian of India ?
(Q20065246,P27,Q668)
action is_in
entity Q668
action find
entity Q20065246
relation P27
['Q20065246', 'P27', 'Q668']
ASK WHERE { resource:Q20065246 property:P27 resource:Q668 }
Savita Behen India
action is_in
entity India
action find
entity Savita Behen
relation country of citizenship
['Savita Behen', 'country of citizenship', 'India']
ASK WHERE { resource:Savita_Behen property:country_of_citizenship resource:India }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q20065246,P27,Q668)
action is_in
entity Q668
action find
entity Q20065246
relation P27
[ANSWER]
['Q20065246', 'P27', 'Q668']
ASK WHERE { resource:Q20065246 property:P27 resource:Q668 }
Yes
action is_in
entity India
action find
entity Savita Behen
relation country of citizenship
['Savita Behen', 'country of citizenship', 'India']
ASK WHERE { resource:Savita_Behen property:country_of_citizenship resource:India }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q20065246
P69
Q3918
USER
Which university was that person educated at ?
action filter_type
action find
entity Q20065246
relation P69
type Q3918
SELECT DISTINCT ?t WHERE { resource:Q20065246 property:P69 ?t . ?t rdf:type ontology:Q3918 }
Savita Behen
action filter_type
action find
entity Savita Behen
relation educated at
type university
SELECT DISTINCT ?t WHERE { resource:Savita_Behen property:educated_at ?t . ?t rdf:type ontology:university }
[]
university
Q126726
SYSTEM
Government College University
Q126726
action filter_type
action find
entity Q20065246
relation P69
type Q3918
That person was educated at [ANSWER]
SELECT DISTINCT ?t WHERE { resource:Q20065246 property:P69 ?t . ?t rdf:type ontology:Q3918 }
Government College University
That person was educated at Government College University
Government College University
action filter_type
action find
entity Savita Behen
relation educated at
type university
SELECT DISTINCT ?t WHERE { resource:Savita_Behen property:educated_at ?t . ?t rdf:type ontology:university }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q159
P495
Q15617994 Q201658 Q2031291
USER
Which administrative territories are the origins of lesser number of film genres or releases than Russia ?
(c(Q201658)|c(Q2031291),P495,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_multi_types
action find_reverse
entity Q159
relation P495
type Q201658
type Q2031291
[[{'concept': 'Q201658'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?o ) ?f WHERE { { ?f rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q201658 . ?v property:P495 ?f } UNION { ?f rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q2031291 . ?v property:P495 ?f } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { ?c property:P495 resource:Q159 . { { ?c rdf:type ontology:Q2031291 } UNION { ?c rdf:type ontology:Q201658 } } } } . FILTER ( ?o < ?d ) }
Russia
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_multi_types
action find_reverse
entity Russia
relation country of origin
type film genre
type release
[[{'concept': 'film genre'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?o ) ?f WHERE { { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:film_genre . ?v property:country_of_origin ?f } UNION { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:release . ?v property:country_of_origin ?f } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { ?c property:country_of_origin resource:Russia . { { ?c rdf:type ontology:release } UNION { ?c rdf:type ontology:film_genre } } } } . FILTER ( ?o < ?d ) }
[]
designation for an administrative territorial entity film genre release
Q230 Q953 Q801
SYSTEM
Georgia, Zambia, Israel
Q805 Q804 Q801 Q800 Q1462 Q419 Q12536 Q262 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q41 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q32 Q924 Q928 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q1045 Q1044 Q1041 Q27 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q672 Q176 Q863 Q869 Q953
(c(Q201658)|c(Q2031291),P495,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_multi_types
action find_reverse
entity Q159
relation P495
type Q201658
type Q2031291
[ANSWERS] are the origins of lesser number of film genres or releases than Russia
[[{'concept': 'Q201658'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?o ) ?f WHERE { { ?f rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q201658 . ?v property:P495 ?f } UNION { ?f rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q2031291 . ?v property:P495 ?f } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { ?c property:P495 resource:Q159 . { { ?c rdf:type ontology:Q2031291 } UNION { ?c rdf:type ontology:Q201658 } } } } . FILTER ( ?o < ?d ) }
Yemen Panama Israel Costa Rica Sardinia Peru Abbasid caliphate Algeria Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Greece El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Luxembourg Tanzania Philippines Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Somalia Sierra Leone Senegal Ireland Brunei Sudan Mauritania Mauritius Malawi Iceland Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Cyprus Liechtenstein Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile 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 Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Tuvalu Quebec Tajikistan Thailand Zambia
Georgia, Zambia and Israel are the origins of lesser number of film genres or releases than Russia
Georgia Zambia Israel
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_multi_types
action find_reverse
entity Russia
relation country of origin
type film genre
type release
[[{'concept': 'film genre'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?o ) ?f WHERE { { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:film_genre . ?v property:country_of_origin ?f } UNION { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:release . ?v property:country_of_origin ?f } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { ?c property:country_of_origin resource:Russia . { { ?c rdf:type ontology:release } UNION { ?c rdf:type ontology:film_genre } } } } . FILTER ( ?o < ?d ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q419
P495
Q15617994 Q201658 Q2031291
USER
And also tell me about Peru?
(c(Q201658)|c(Q2031291),P495,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_multi_types
action find_reverse
entity Q419
relation P495
type Q201658
type Q2031291
[[{'concept': 'Q201658'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) ?t WHERE { { ?f property:P495 ?t . ?t rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q201658 } UNION { ?f property:P495 ?t . ?t rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q2031291 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { ?u property:P495 resource:Q419 . { { ?u rdf:type ontology:Q201658 } UNION { ?u rdf:type ontology:Q2031291 } } } } . FILTER ( ?e < ?i ) }
Peru
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_multi_types
action find_reverse
entity Peru
relation country of origin
type film genre
type release
[[{'concept': 'film genre'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) ?t WHERE { { ?f property:country_of_origin ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:film_genre } UNION { ?f property:country_of_origin ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:release } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { ?u property:country_of_origin resource:Peru . { { ?u rdf:type ontology:film_genre } UNION { ?u rdf:type ontology:release } } } } . FILTER ( ?e < ?i ) }
[]
designation for an administrative territorial entity film genre release
Q230 Q953 Q184
SYSTEM
Georgia, Zambia, Belarus
Q805 Q804 Q1462 Q12536 Q783 Q265 Q37 Q36678 Q711 Q1460 Q398 Q403 Q657 Q4628 Q796 Q954 Q889 Q958 Q881 Q986 Q244 Q811 Q153136 Q924 Q423 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q238 Q921 Q1049 Q1025 Q1020 Q184 Q736 Q786 Q224 Q223 Q222 Q221 Q229 Q347 Q1037 Q1030 Q967 Q962 Q963 Q114 Q754 Q750 Q211 Q217 Q214 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q239502 Q686 Q836 Q574 Q874 Q858 Q774 Q817 Q810 Q813 Q1014 Q1016 Q1011 Q945 Q672 Q176 Q863 Q953
(c(Q201658)|c(Q2031291),P495,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_multi_types
action find_reverse
entity Q419
relation P495
type Q201658
type Q2031291
[ANSWERS]
[[{'concept': 'Q201658'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) ?t WHERE { { ?f property:P495 ?t . ?t rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q201658 } UNION { ?f property:P495 ?t . ?t rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q2031291 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { ?u property:P495 resource:Q419 . { { ?u rdf:type ontology:Q201658 } UNION { ?u rdf:type ontology:Q2031291 } } } } . FILTER ( ?e < ?i ) }
Yemen Panama Sardinia Abbasid caliphate Honduras Uzbekistan Lithuania West Bank Mongolia Sicily Bahrain Serbia Chad Faroe Islands Iraq Zimbabwe Afghanistan South Sudan Vietnam Eritrea Barbados Nicaragua Habsburg Empire Tanzania North Korea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan San Marino Brunei Sudan Mauritania Malawi Belarus Ecuador Dominican Republic Croatia Greenland Albania Republic of Macedonia Cyprus Liechtenstein Rwanda Namibia Burundi Benin Botswana Kenya Trinidad and Tobago Bolivia Latvia Republic of Moldova Slovakia Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Syria Guatemala Kuwait Jordan Kyrgyzstan Liberia Libya Cape Verde Togo Tuvalu Quebec Tajikistan Zambia
Georgia Zambia Belarus
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_multi_types
action find_reverse
entity Peru
relation country of origin
type film genre
type release
[[{'concept': 'film genre'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) ?t WHERE { { ?f property:country_of_origin ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:film_genre } UNION { ?f property:country_of_origin ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:release } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { ?u property:country_of_origin resource:Peru . { { ?u rdf:type ontology:film_genre } UNION { ?u rdf:type ontology:release } } } } . FILTER ( ?e < ?i ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q49567
P530
Q1048835
USER
Do Manacor have diplomatic relations with those administrative territories ?
(Q49567,P530,Q230) (Q49567,P530,Q953) (Q49567,P530,Q184)
action is_in
entity prev_answer
action find
entity Q49567
relation P530
['Q49567', 'P530', 'Q230'] ['Q49567', 'P530', 'Q953'] ['Q49567', 'P530', 'Q184']
ASK WHERE { resource:Q49567 property:P530 ?h . VALUES ( ?h ) { ( resource:Q805 ) ( resource:Q804 ) ( resource:Q1462 ) } }
Manacor
action is_in
entity prev_answer
action find
entity Manacor
relation diplomatic relation
['Manacor', 'diplomatic relation', 'Georgia'] ['Manacor', 'diplomatic relation', 'Zambia'] ['Manacor', 'diplomatic relation', 'Belarus']
ASK WHERE { resource:Manacor property:diplomatic_relation ?h . VALUES ( ?h ) { ( resource:Yemen ) ( resource:Panama ) ( resource:Sardinia ) } }
[]
political territorial entity
SYSTEM
NO
(Q49567,P530,Q230) (Q49567,P530,Q953) (Q49567,P530,Q184)
action is_in
entity prev_answer
action find
entity Q49567
relation P530
[ANSWER]
['Q49567', 'P530', 'Q230'] ['Q49567', 'P530', 'Q953'] ['Q49567', 'P530', 'Q184']
ASK WHERE { resource:Q49567 property:P530 ?h . VALUES ( ?h ) { ( resource:Q805 ) ( resource:Q804 ) ( resource:Q1462 ) } }
No
action is_in
entity prev_answer
action find
entity Manacor
relation diplomatic relation
['Manacor', 'diplomatic relation', 'Georgia'] ['Manacor', 'diplomatic relation', 'Zambia'] ['Manacor', 'diplomatic relation', 'Belarus']
ASK WHERE { resource:Manacor property:diplomatic_relation ?h . VALUES ( ?h ) { ( resource:Yemen ) ( resource:Panama ) ( resource:Sardinia ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q10854307 Q184
P530 P17
Q15617994
USER
Which administrative territories have diplomatic relationships with Belarus or are Darband, Jajrom present in ?
OR((Q184,P530,c(Q15617994)), (Q10854307,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q184
relation P530
action find
entity Q10854307
relation P17
type Q15617994
{'OR': [['Q184', 'P530', {'concept': 'Q15617994'}], ['Q10854307', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q184 property:P530 ?t } UNION { resource:Q10854307 property:P17 ?t } } . ?t rdf:type ontology:Q15617994 }
Darband, Jajrom Belarus
action filter_type
action union
action find
entity Belarus
relation diplomatic relation
action find
entity Darband, Jajrom
relation country
type designation for an administrative territorial entity
{'OR': [['Belarus', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Darband, Jajrom', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Belarus property:diplomatic_relation ?t } UNION { resource:Darband,_Jajrom property:country ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q212 Q36 Q414 Q148 Q214 Q230 Q833 Q211 Q34 Q213
SYSTEM
Some of them are Ukraine, Poland, Argentina, People's Republic of China, Slovakia, Georgia, Malaysia, Latvia, Sweden, Czech Republic
Q801 Q843 Q241 Q668 Q414 Q227 Q224 Q55 Q262 Q148 Q33 Q874 Q30 Q37 Q36 Q34 Q39 Q38 Q902 Q833 Q1016 Q298 Q215 Q403 Q230 Q142 Q212 Q213 Q211 Q159 Q217 Q214 Q41 Q155 Q233 Q794 Q27
OR((Q184,P530,c(Q15617994)), (Q10854307,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q184
relation P530
action find
entity Q10854307
relation P17
type Q15617994
[ANSWERS] have diplomatic relationships with Belarus or are Darband, Jajrom present in
{'OR': [['Q184', 'P530', {'concept': 'Q15617994'}], ['Q10854307', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q184 property:P530 ?t } UNION { resource:Q10854307 property:P17 ?t } } . ?t rdf:type ontology:Q15617994 }
Israel Pakistan Cuba India Argentina Azerbaijan Croatia Netherlands Algeria People's Republic of China Finland Turkmenistan United States of America Lithuania Poland Sweden Switzerland Italy Bangladesh Malaysia Libya Chile Slovenia Serbia Georgia France Ukraine Czech Republic Latvia Russia Republic of Moldova Slovakia Greece Brazil Malta Iran Ireland
Ukraine, Poland, Argentina, People's Republic of China, Slovakia, Georgia, Malaysia, Latvia, Sweden and Czech Republic have diplomatic relationships with Belarus or are Darband, Jajrom present in
Ukraine Poland Argentina People's Republic of China Slovakia Georgia Malaysia Latvia Sweden Czech Republic
action filter_type
action union
action find
entity Belarus
relation diplomatic relation
action find
entity Darband, Jajrom
relation country
type designation for an administrative territorial entity
{'OR': [['Belarus', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Darband, Jajrom', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Belarus property:diplomatic_relation ?t } UNION { resource:Darband,_Jajrom property:country ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q214
P47
Q1048835
USER
Which political territory is bordered by that administrative territory ?
(c(Q1048835),P47,Q214)
action filter_type
action find
entity Q214
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q214']
SELECT DISTINCT ?d WHERE { resource:Q214 property:P47 ?d . ?d rdf:type ontology:Q1048835 }
Slovakia
action filter_type
action find
entity Slovakia
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Slovakia']
SELECT DISTINCT ?d WHERE { resource:Slovakia property:shares_border_with ?d . ?d rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Clarification for simple ques.
Q213
SYSTEM
Did you mean Czech Republic ?
Q212 Q36 Q414 Q148 Q214 Q230 Q833 Q211 Q34 Q213
(c(Q1048835),P47,Q212) (c(Q1048835),P47,Q36) (c(Q1048835),P47,Q414) (c(Q1048835),P47,Q148) (c(Q1048835),P47,Q214) (c(Q1048835),P47,Q230) (c(Q1048835),P47,Q833) (c(Q1048835),P47,Q211) (c(Q1048835),P47,Q34) (c(Q1048835),P47,Q213)
[ANSWER]
[{'concept': 'Q1048835'}, 'P47', 'Q212'] [{'concept': 'Q1048835'}, 'P47', 'Q36'] [{'concept': 'Q1048835'}, 'P47', 'Q414'] [{'concept': 'Q1048835'}, 'P47', 'Q148'] [{'concept': 'Q1048835'}, 'P47', 'Q214'] [{'concept': 'Q1048835'}, 'P47', 'Q230'] [{'concept': 'Q1048835'}, 'P47', 'Q833'] [{'concept': 'Q1048835'}, 'P47', 'Q211'] [{'concept': 'Q1048835'}, 'P47', 'Q34'] [{'concept': 'Q1048835'}, 'P47', 'Q213']
SELECT DISTINCT ?d WHERE { resource:Q214 property:P47 ?d . ?d rdf:type ontology:Q1048835 }
Ukraine Poland Argentina People's Republic of China Slovakia Georgia Malaysia Latvia Sweden Czech Republic
Did you mean Czech Republic ?
Czech Republic
[{'concept': 'political territorial entity'}, 'shares border with', 'Ukraine'] [{'concept': 'political territorial entity'}, 'shares border with', 'Poland'] [{'concept': 'political territorial entity'}, 'shares border with', 'Argentina'] [{'concept': 'political territorial entity'}, 'shares border with', "People's Republic of China"] [{'concept': 'political territorial entity'}, 'shares border with', 'Slovakia'] [{'concept': 'political territorial entity'}, 'shares border with', 'Georgia'] [{'concept': 'political territorial entity'}, 'shares border with', 'Malaysia'] [{'concept': 'political territorial entity'}, 'shares border with', 'Latvia'] [{'concept': 'political territorial entity'}, 'shares border with', 'Sweden'] [{'concept': 'political territorial entity'}, 'shares border with', 'Czech Republic']
SELECT DISTINCT ?d WHERE { resource:Slovakia property:shares_border_with ?d . ?d rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Slovakia. Could you tell me the answer for that?
(c(Q1048835),P47,Q214)
Q214
[{'concept': 'Q1048835'}, 'P47', 'Q214']
[{'concept': 'political territorial entity'}, 'shares border with', 'Slovakia']
[]
Q40
SYSTEM
Austria
Q40
(c(Q1048835),P47,Q214)
action filter_type
action find
entity Q214
relation P47
type Q1048835
[ANSWER] is bordered by that administrative territory
[{'concept': 'Q1048835'}, 'P47', 'Q214']
SELECT DISTINCT ?d WHERE { resource:Q214 property:P47 ?d . ?d rdf:type ontology:Q1048835 }
Austria
Austria is bordered by that administrative territory
Austria
action filter_type
action find
entity Slovakia
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Slovakia']
SELECT DISTINCT ?d WHERE { resource:Slovakia property:shares_border_with ?d . ?d rdf:type ontology:political_territorial_entity }
[]