Simple Question (Direct)
Simple Question
Q5234483
P172
Q2472587
USER
Which people does David Gwillim have as his/her race ?
(Q5234483,P172,c(Q2472587))
action filter_type
action find
entity Q5234483
relation P172
type Q2472587
['Q5234483', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?r WHERE { resource:Q5234483 property:P172 ?r . ?r rdf:type ontology:Q2472587 }
David Gwillim
action filter_type
action find
entity David Gwillim
relation ethnic group
type people
['David Gwillim', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?r WHERE { resource:David_Gwillim property:ethnic_group ?r . ?r rdf:type ontology:people }
[]
people
Q42406
SYSTEM
English people
Q42406
(Q5234483,P172,c(Q2472587))
action filter_type
action find
entity Q5234483
relation P172
type Q2472587
David Gwillim has described [ANSWER] as his / her race
['Q5234483', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?r WHERE { resource:Q5234483 property:P172 ?r . ?r rdf:type ontology:Q2472587 }
English people
David Gwillim has described English people as his / her race
English people
action filter_type
action find
entity David Gwillim
relation ethnic group
type people
['David Gwillim', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?r WHERE { resource:David_Gwillim property:ethnic_group ?r . ?r rdf:type ontology:people }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q42406
P138
Q34442
USER
Which road has that people as its toponym ?
(c(Q34442),P138,Q42406)
action filter_type
action find_reverse
entity Q42406
relation P138
type Q34442
[{'concept': 'Q34442'}, 'P138', 'Q42406']
SELECT DISTINCT ?x WHERE { ?x property:P138 resource:Q42406 . ?x rdf:type ontology:Q34442 }
English people
action filter_type
action find_reverse
entity English people
relation named after
type road
[{'concept': 'road'}, 'named after', 'English people']
SELECT DISTINCT ?x WHERE { ?x property:named_after resource:English_people . ?x rdf:type ontology:road }
[]
road
Q3451638
SYSTEM
rue des Anglais
Q3451638
(c(Q34442),P138,Q42406)
action filter_type
action find_reverse
entity Q42406
relation P138
type Q34442
[ANSWER] has that people as its toponym
[{'concept': 'Q34442'}, 'P138', 'Q42406']
SELECT DISTINCT ?x WHERE { ?x property:P138 resource:Q42406 . ?x rdf:type ontology:Q34442 }
rue des Anglais
Rue des Anglais has that people as its toponym
rue des Anglais
action filter_type
action find_reverse
entity English people
relation named after
type road
[{'concept': 'road'}, 'named after', 'English people']
SELECT DISTINCT ?x WHERE { ?x property:named_after resource:English_people . ?x rdf:type ontology:road }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P669
Q34442 Q22698
USER
Which parks are located on max number of roads ?
(c(Q22698),P669,c(Q34442))
action argmax
action find_tuple_counts
relation P669
type Q22698
type Q34442
[{'concept': 'Q22698'}, 'P669', {'concept': 'Q34442'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?l ) { SELECT DISTINCT ?u ( COUNT ( ?v ) AS ?o ) WHERE { ?u rdf:type ontology:Q22698 . ?v rdf:type ontology:Q34442 . ?u property:P669 ?v } GROUP BY ?u } } . { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?k ) WHERE { ?r property:P669 ?s . ?s rdf:type ontology:Q34442 . ?r rdf:type ontology:Q22698 } GROUP BY ?r } . FILTER ( ?k = ?l ) }
action argmax
action find_tuple_counts
relation located on street
type park
type road
[{'concept': 'park'}, 'located on street', {'concept': 'road'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?l ) { SELECT DISTINCT ?u ( COUNT ( ?v ) AS ?o ) WHERE { ?u rdf:type ontology:park . ?v rdf:type ontology:road . ?u property:located_on_street ?v } GROUP BY ?u } } . { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?k ) WHERE { ?r property:located_on_street ?s . ?s rdf:type ontology:road . ?r rdf:type ontology:park } GROUP BY ?r } . FILTER ( ?k = ?l ) }
[]
road park
Q530553 Q3487022 Q730948
SYSTEM
square Édouard-Vaillant, square Louvois, Jardin des Plantes
Q530553 Q3487022 Q730948
(c(Q22698),P669,c(Q34442))
action argmax
action find_tuple_counts
relation P669
type Q22698
type Q34442
[ANSWERS] are located on max number of roads
[{'concept': 'Q22698'}, 'P669', {'concept': 'Q34442'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?l ) { SELECT DISTINCT ?u ( COUNT ( ?v ) AS ?o ) WHERE { ?u rdf:type ontology:Q22698 . ?v rdf:type ontology:Q34442 . ?u property:P669 ?v } GROUP BY ?u } } . { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?k ) WHERE { ?r property:P669 ?s . ?s rdf:type ontology:Q34442 . ?r rdf:type ontology:Q22698 } GROUP BY ?r } . FILTER ( ?k = ?l ) }
square Édouard-Vaillant square Louvois Jardin des Plantes
Square Édouard-Vaillant, square Louvois and Jardin des Plantes are located on max number of roads
square Édouard-Vaillant square Louvois Jardin des Plantes
action argmax
action find_tuple_counts
relation located on street
type park
type road
[{'concept': 'park'}, 'located on street', {'concept': 'road'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?l ) { SELECT DISTINCT ?u ( COUNT ( ?v ) AS ?o ) WHERE { ?u rdf:type ontology:park . ?v rdf:type ontology:road . ?u property:located_on_street ?v } GROUP BY ?u } } . { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?k ) WHERE { ?r property:located_on_street ?s . ?s rdf:type ontology:road . ?r rdf:type ontology:park } GROUP BY ?r } . FILTER ( ?k = ?l ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q530553 Q3487022 Q730948
P669
Q34442
USER
Where can those parks be located ?
(Q530553,P669,c(Q34442)) (Q3487022,P669,c(Q34442)) (Q730948,P669,c(Q34442))
action filter_type
action find
entity prev_answer
relation P669
type Q34442
['Q530553', 'P669', {'concept': 'Q34442'}] ['Q3487022', 'P669', {'concept': 'Q34442'}] ['Q730948', 'P669', {'concept': 'Q34442'}]
SELECT DISTINCT ?m WHERE { ?f property:P669 ?m . VALUES ( ?f ) { ( resource:Q530553 ) ( resource:Q3487022 ) ( resource:Q730948 ) } . ?m rdf:type ontology:Q34442 }
square Édouard-Vaillant square Louvois Jardin des Plantes
action filter_type
action find
entity prev_answer
relation located on street
type road
['square Édouard-Vaillant', 'located on street', {'concept': 'road'}] ['square Louvois', 'located on street', {'concept': 'road'}] ['Jardin des Plantes', 'located on street', {'concept': 'road'}]
SELECT DISTINCT ?m WHERE { ?f property:located_on_street ?m . VALUES ( ?f ) { ( resource:square_Édouard-Vaillant ) ( resource:square_Louvois ) ( resource:Jardin_des_Plantes ) } . ?m rdf:type ontology:road }
[]
road
Q2915495 Q3447111 Q3448106
SYSTEM
rue de Richelieu, rue Belgrand, rue Geoffroy-Saint-Hilaire
Q3452389 Q3451368 Q3447111 Q3450839 Q2915495 Q3448940 Q3447271 Q3447583 Q3448106
(Q530553,P669,c(Q34442)) (Q3487022,P669,c(Q34442)) (Q730948,P669,c(Q34442))
action filter_type
action find
entity prev_answer
relation P669
type Q34442
Those parks can be located in [ANSWERS]
['Q530553', 'P669', {'concept': 'Q34442'}] ['Q3487022', 'P669', {'concept': 'Q34442'}] ['Q730948', 'P669', {'concept': 'Q34442'}]
SELECT DISTINCT ?m WHERE { ?f property:P669 ?m . VALUES ( ?f ) { ( resource:Q530553 ) ( resource:Q3487022 ) ( resource:Q730948 ) } . ?m rdf:type ontology:Q34442 }
rue du Japon rue de la Chine rue Belgrand rue de Louvois rue de Richelieu rue Lulli rue Buffon rue Cuvier rue Geoffroy-Saint-Hilaire
Those parks can be located in rue de Richelieu, rue Belgrand and rue Geoffroy-Saint-Hilaire
rue de Richelieu rue Belgrand rue Geoffroy-Saint-Hilaire
action filter_type
action find
entity prev_answer
relation located on street
type road
['square Édouard-Vaillant', 'located on street', {'concept': 'road'}] ['square Louvois', 'located on street', {'concept': 'road'}] ['Jardin des Plantes', 'located on street', {'concept': 'road'}]
SELECT DISTINCT ?m WHERE { ?f property:located_on_street ?m . VALUES ( ?f ) { ( resource:square_Édouard-Vaillant ) ( resource:square_Louvois ) ( resource:Jardin_des_Plantes ) } . ?m rdf:type ontology:road }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q730948
P17
Q15617994
USER
Which administrative territory does Jardin des Plantes belong to ?
(Q730948,P17,c(Q15617994))
action filter_type
action find
entity Q730948
relation P17
type Q15617994
['Q730948', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . resource:Q730948 property:P17 ?z }
Jardin des Plantes
action filter_type
action find
entity Jardin des Plantes
relation country
type designation for an administrative territorial entity
['Jardin des Plantes', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Jardin_des_Plantes property:country ?z }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q730948,P17,c(Q15617994))
action filter_type
action find
entity Q730948
relation P17
type Q15617994
Jardin des Plantes belongs to the [ANSWER]
['Q730948', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . resource:Q730948 property:P17 ?z }
France
Jardin des Plantes belongs to the France
France
action filter_type
action find
entity Jardin des Plantes
relation country
type designation for an administrative territorial entity
['Jardin des Plantes', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Jardin_des_Plantes property:country ?z }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q19305834
Q15617994
USER
And how about Koezoep?
(Q19305834,P17,c(Q15617994))
action filter_type
action find
entity Q19305834
relation P17
type Q15617994
['Q19305834', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q19305834 property:P17 ?f . ?f rdf:type ontology:Q15617994 }
Koezoep
action filter_type
action find
entity Koezoep
relation country
type designation for an administrative territorial entity
['Koezoep', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Koezoep property:country ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q55
SYSTEM
Netherlands
Q55
(Q19305834,P17,c(Q15617994))
action filter_type
action find
entity Q19305834
relation P17
type Q15617994
[ANSWER]
['Q19305834', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q19305834 property:P17 ?f . ?f rdf:type ontology:Q15617994 }
Netherlands
Netherlands
action filter_type
action find
entity Koezoep
relation country
type designation for an administrative territorial entity
['Koezoep', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Koezoep property:country ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q55 Q19015249
P17
Q34442
USER
Is Dorpstraat present in that administrative territory ?
(Q19015249,P17,Q55)
action is_in
entity Q55
action find
entity Q19015249
relation P17
['Q19015249', 'P17', 'Q55']
ASK WHERE { resource:Q19015249 property:P17 resource:Q55 }
Netherlands Dorpstraat
action is_in
entity Netherlands
action find
entity Dorpstraat
relation country
['Dorpstraat', 'country', 'Netherlands']
ASK WHERE { resource:Dorpstraat property:country resource:Netherlands }
[]
road
SYSTEM
YES
(Q19015249,P17,Q55)
action is_in
entity Q55
action find
entity Q19015249
relation P17
[ANSWER]
['Q19015249', 'P17', 'Q55']
ASK WHERE { resource:Q19015249 property:P17 resource:Q55 }
Yes
action is_in
entity Netherlands
action find
entity Dorpstraat
relation country
['Dorpstraat', 'country', 'Netherlands']
ASK WHERE { resource:Dorpstraat property:country resource:Netherlands }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P122
Q15617994 Q12737077 Q15617994
USER
Which administrative territories have approximately 1 administrative territories or occupations as the type of government ?
(c(Q15617994),P122,c(Q15617994)|c(Q12737077))
action approx
action union
action find_tuple_counts
relation P122
type Q15617994
type Q15617994
action find_tuple_counts
relation P122
type Q15617994
type Q12737077
value 1
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q15617994'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) ?v WHERE { VALUES ( ?e ) { ( ontology:Q12737077 ) ( ontology:Q15617994 ) } . ?a rdf:type ?e } GROUP BY ?v } . FILTER ( ?c = 1 ) }
action approx
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type occupation
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'occupation'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) ?v WHERE { VALUES ( ?e ) { ( ontology:occupation ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?a rdf:type ?e } GROUP BY ?v } . FILTER ( ?c = 1 ) }
[]
designation for an administrative territorial entity occupation designation for an administrative territorial entity
Q889 Q228 Q541991
SYSTEM
Afghanistan, Andorra, Hummelfeld
Q541991 Q889 Q689837 Q815731 Q228 Q1483510
(c(Q15617994),P122,c(Q15617994)|c(Q12737077))
action approx
action union
action find_tuple_counts
relation P122
type Q15617994
type Q15617994
action find_tuple_counts
relation P122
type Q15617994
type Q12737077
value 1
[ANSWERS] have approximately 1 administrative territories or occupations as the type of government
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q15617994'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) ?v WHERE { VALUES ( ?e ) { ( ontology:Q12737077 ) ( ontology:Q15617994 ) } . ?a rdf:type ?e } GROUP BY ?v } . FILTER ( ?c = 1 ) }
Hummelfeld Afghanistan Spanish Sahara Principality of Bulgaria Andorra Principality of Wales
Afghanistan, Andorra and Hummelfeld have approximately 1 administrative territories or occupations as the type of government
Afghanistan Andorra Hummelfeld
action approx
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type occupation
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'occupation'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) ?v WHERE { VALUES ( ?e ) { ( ontology:occupation ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?a rdf:type ?e } GROUP BY ?v } . FILTER ( ?c = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2362933 Q19015249
P17
Q15617994
USER
Which administrative territories are Dorpstraat or An Điền situated in ?
OR((Q19015249,P17,c(Q15617994)), (Q2362933,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q19015249
relation P17
action find
entity Q2362933
relation P17
type Q15617994
{'OR': [['Q19015249', 'P17', {'concept': 'Q15617994'}], ['Q2362933', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q19015249 property:P17 ?g } UNION { resource:Q2362933 property:P17 ?g } } . ?g rdf:type ontology:Q15617994 }
An Điền Dorpstraat
action filter_type
action union
action find
entity Dorpstraat
relation country
action find
entity An Điền
relation country
type designation for an administrative territorial entity
{'OR': [['Dorpstraat', 'country', {'concept': 'designation for an administrative territorial entity'}], ['An Điền', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Dorpstraat property:country ?g } UNION { resource:An_Điền property:country ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q55 Q881
SYSTEM
Netherlands, Vietnam
Q55 Q881
OR((Q19015249,P17,c(Q15617994)), (Q2362933,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q19015249
relation P17
action find
entity Q2362933
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q19015249', 'P17', {'concept': 'Q15617994'}], ['Q2362933', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q19015249 property:P17 ?g } UNION { resource:Q2362933 property:P17 ?g } } . ?g rdf:type ontology:Q15617994 }
Netherlands Vietnam
Which administrative territories are Dorpstraat or An Điền situated in
Netherlands Vietnam
action filter_type
action union
action find
entity Dorpstraat
relation country
action find
entity An Điền
relation country
type designation for an administrative territorial entity
{'OR': [['Dorpstraat', 'country', {'concept': 'designation for an administrative territorial entity'}], ['An Điền', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Dorpstraat property:country ?g } UNION { resource:An_Điền property:country ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P495
Q15617994 Q201658 Q7725634
USER
Which administrative territories are the origin of less number of film genres or literary works than that administrative territory ?
(c(Q201658)|c(Q7725634),P495,c(Q15617994))
[[{'concept': 'Q201658'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { ?u property:P495 ?y . VALUES ( ?u ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q7725634 }
[[{'concept': 'film genre'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { ?u property:country_of_origin ?y . VALUES ( ?u ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:literary_work }
[]
designation for an administrative territorial entity film genre literary work
Comparative|More/Less|Mult. entity type|Clarification
Q55
SYSTEM
Did you mean Netherlands ?
(c(Q201658)|c(Q7725634),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { ?u property:P495 ?y . VALUES ( ?u ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q7725634 }
Did you mean Netherlands ?
Netherlands
[[{'concept': 'film genre'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { ?u property:country_of_origin ?y . VALUES ( ?u ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:literary_work }
[]
Comparative Reasoning (All)
USER
No, I meant Vietnam. Could you tell me the answer for that?
(c(Q201658)|c(Q7725634),P495,c(Q15617994))
Q881
[[{'concept': 'Q201658'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'film genre'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q230 Q953 Q347
SYSTEM
Georgia, Zambia, Liechtenstein
Q805 Q804 Q1462 Q12536 Q783 Q265 Q36678 Q712 Q711 Q837 Q1460 Q398 Q403 Q657 Q4628 Q796 Q954 Q889 Q958 Q986 Q826 Q242 Q244 Q811 Q153136 Q924 Q423 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q238 Q921 Q1049 Q1025 Q1020 Q736 Q786 Q224 Q223 Q222 Q221 Q229 Q347 Q1037 Q1030 Q967 Q962 Q963 Q114 Q754 Q750 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(Q7725634),P495,c(Q15617994))
[ANSWERS] are the origin of less number of film genres or literary works than that administrative territory
[[{'concept': 'Q201658'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q7725634 }
Yemen Panama Sardinia Abbasid caliphate Honduras Uzbekistan West Bank Fiji Mongolia Nepal Sicily Bahrain Serbia Chad Faroe Islands Iraq Zimbabwe Afghanistan South Sudan Eritrea Maldives Belize Barbados Nicaragua Habsburg Empire Tanzania North Korea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia San Marino Brunei Sudan Mauritania Malawi Ecuador Dominican Republic Croatia Greenland Albania Republic of Macedonia Cyprus Liechtenstein Rwanda Namibia Burundi Benin Botswana Kenya Trinidad and Tobago Bolivia 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 and Liechtenstein are the origin of less number of film genres or literary works than that administrative territory
Georgia Zambia Liechtenstein
[[{'concept': 'film genre'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:literary_work }
[]
Clarification
Simple Question|Single Entity|Indirect
Q953
P137
Q2424752
USER
Which product was managed by that administrative territory ?
(c(Q2424752),P137,Q953)
action filter_type
action find_reverse
entity Q953
relation P137
type Q2424752
[{'concept': 'Q2424752'}, 'P137', 'Q953']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q2424752 . ?s property:P137 resource:Q953 }
Zambia
action filter_type
action find_reverse
entity Zambia
relation operator
type product
[{'concept': 'product'}, 'operator', 'Zambia']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:product . ?s property:operator resource:Zambia }
[]
product
Clarification for simple ques.
Q230
SYSTEM
Did you mean Georgia ?
Q230 Q953 Q347
(c(Q2424752),P137,Q230) (c(Q2424752),P137,Q953) (c(Q2424752),P137,Q347)
[ANSWER]
[{'concept': 'Q2424752'}, 'P137', 'Q230'] [{'concept': 'Q2424752'}, 'P137', 'Q953'] [{'concept': 'Q2424752'}, 'P137', 'Q347']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q2424752 . ?s property:P137 resource:Q953 }
Georgia Zambia Liechtenstein
Did you mean Georgia ?
Georgia
[{'concept': 'product'}, 'operator', 'Georgia'] [{'concept': 'product'}, 'operator', 'Zambia'] [{'concept': 'product'}, 'operator', 'Liechtenstein']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:product . ?s property:operator resource:Zambia }
[]
Simple Question (Coreferenced)
USER
No, I meant Zambia. Could you tell me the answer for that?
(c(Q2424752),P137,Q953)
Q953
[{'concept': 'Q2424752'}, 'P137', 'Q953']
[{'concept': 'product'}, 'operator', 'Zambia']
[]
Q18011058
SYSTEM
MB-326GB
Q18011058
(c(Q2424752),P137,Q953)
action filter_type
action find_reverse
entity Q953
relation P137
type Q2424752
[ANSWER] was managed by that administrative territory
[{'concept': 'Q2424752'}, 'P137', 'Q953']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q2424752 . ?s property:P137 resource:Q953 }
MB-326GB
MB-326GB was managed by that administrative territory
MB-326GB
action filter_type
action find_reverse
entity Zambia
relation operator
type product
[{'concept': 'product'}, 'operator', 'Zambia']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:product . ?s property:operator resource:Zambia }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q18011058 Q550561 Q974
P137
Q15617994
USER
Is that product the administrator of Triftern and Democratic Republic of the Congo ?
(Q18011058,P137,Q550561) (Q18011058,P137,Q974)
action is_in
entity Q18011058
action intersection
action find_reverse
entity Q550561
relation P137
action find_reverse
entity Q974
relation P137
['Q18011058', 'P137', 'Q550561'] ['Q18011058', 'P137', 'Q974']
ASK WHERE { resource:Q18011058 property:P137 resource:Q550561 . resource:Q18011058 property:P137 resource:Q974 }
MB-326GB Triftern Democratic Republic of the Congo
action is_in
entity MB-326GB
action intersection
action find_reverse
entity Triftern
relation operator
action find_reverse
entity Democratic Republic of the Congo
relation operator
['MB-326GB', 'operator', 'Triftern'] ['MB-326GB', 'operator', 'Democratic Republic of the Congo']
ASK WHERE { resource:MB-326GB property:operator resource:Triftern . resource:MB-326GB property:operator resource:Democratic_Republic_of_the_Congo }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q18011058,P137,Q550561) (Q18011058,P137,Q974)
action is_in
entity Q18011058
action intersection
action find_reverse
entity Q550561
relation P137
action find_reverse
entity Q974
relation P137
[ANSWER]
['Q18011058', 'P137', 'Q550561'] ['Q18011058', 'P137', 'Q974']
ASK WHERE { resource:Q18011058 property:P137 resource:Q550561 . resource:Q18011058 property:P137 resource:Q974 }
NO and YES respectively
action is_in
entity MB-326GB
action intersection
action find_reverse
entity Triftern
relation operator
action find_reverse
entity Democratic Republic of the Congo
relation operator
['MB-326GB', 'operator', 'Triftern'] ['MB-326GB', 'operator', 'Democratic Republic of the Congo']
ASK WHERE { resource:MB-326GB property:operator resource:Triftern . resource:MB-326GB property:operator resource:Democratic_Republic_of_the_Congo }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q16405809 Q974
P47 P27
Q15617994
USER
Which administrative territories share border with Democratic Republic of the Congo or are Arved Oksaar a civilian of ?
OR((Q974,P47,c(Q15617994)), (Q16405809,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q974
relation P47
action find
entity Q16405809
relation P27
type Q15617994
{'OR': [['Q974', 'P47', {'concept': 'Q15617994'}], ['Q16405809', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q16405809 property:P27 ?c } UNION { resource:Q974 property:P47 ?c } } . ?c rdf:type ontology:Q15617994 }
Arved Oksaar Democratic Republic of the Congo
action filter_type
action union
action find
entity Democratic Republic of the Congo
relation shares border with
action find
entity Arved Oksaar
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Democratic Republic of the Congo', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Arved Oksaar', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Arved_Oksaar property:country_of_citizenship ?c } UNION { resource:Democratic_Republic_of_the_Congo property:shares_border_with ?c } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q916 Q1049 Q191 Q967 Q971 Q953 Q1036 Q1037 Q924 Q929
SYSTEM
Some of them are Angola, Sudan, Estonia, Burundi, Republic of the Congo, Zambia, Uganda, Rwanda, Tanzania, Central African Republic
Q1036 Q1037 Q191 Q967 Q971 Q924 Q953 Q929 Q958 Q1049 Q916
OR((Q974,P47,c(Q15617994)), (Q16405809,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q974
relation P47
action find
entity Q16405809
relation P27
type Q15617994
[ANSWERS] share border with Democratic Republic of the Congo or are Arved Oksaar a civilian of
{'OR': [['Q974', 'P47', {'concept': 'Q15617994'}], ['Q16405809', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q16405809 property:P27 ?c } UNION { resource:Q974 property:P47 ?c } } . ?c rdf:type ontology:Q15617994 }
Uganda Rwanda Estonia Burundi Republic of the Congo Tanzania Zambia Central African Republic South Sudan Sudan Angola
Angola, Sudan, Estonia, Burundi, Republic of the Congo, Zambia, Uganda, Rwanda, Tanzania and Central African Republic share border with Democratic Republic of the Congo or are Arved Oksaar a civilian of
Angola Sudan Estonia Burundi Republic of the Congo Zambia Uganda Rwanda Tanzania Central African Republic
action filter_type
action union
action find
entity Democratic Republic of the Congo
relation shares border with
action find
entity Arved Oksaar
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Democratic Republic of the Congo', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Arved Oksaar', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Arved_Oksaar property:country_of_citizenship ?c } UNION { resource:Democratic_Republic_of_the_Congo property:shares_border_with ?c } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]