Simple Question (Direct)
Simple Question
Q1153835
P166
Q838948
USER
Which work of art was received by Marat Khusnullin ?
(Q1153835,P166,c(Q838948))
action filter_type
action find
entity Q1153835
relation P166
type Q838948
['Q1153835', 'P166', {'concept': 'Q838948'}]
SELECT DISTINCT ?i WHERE { resource:Q1153835 property:P166 ?i . ?i rdf:type ontology:Q838948 }
Marat Khusnullin
action filter_type
action find
entity Marat Khusnullin
relation award received
type work of art
['Marat Khusnullin', 'award received', {'concept': 'work of art'}]
SELECT DISTINCT ?i WHERE { resource:Marat_Khusnullin property:award_received ?i . ?i rdf:type ontology:work_of_art }
[]
work of art
Q19030089
SYSTEM
Medal of the Order of Merit for the Fatherland II degree
Q19030089
(Q1153835,P166,c(Q838948))
action filter_type
action find
entity Q1153835
relation P166
type Q838948
The [ANSWER] was received by Marat Khusnullin
['Q1153835', 'P166', {'concept': 'Q838948'}]
SELECT DISTINCT ?i WHERE { resource:Q1153835 property:P166 ?i . ?i rdf:type ontology:Q838948 }
Medal of the Order of Merit for the Fatherland II degree
The Medal of the Order of Merit for the Fatherland II degree was received by Marat Khusnullin
Medal of the Order of Merit for the Fatherland II degree
action filter_type
action find
entity Marat Khusnullin
relation award received
type work of art
['Marat Khusnullin', 'award received', {'concept': 'work of art'}]
SELECT DISTINCT ?i WHERE { resource:Marat_Khusnullin property:award_received ?i . ?i rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q19030089
P17
Q15617994
USER
Which administrative territory is that work of art situated in ?
(Q19030089,P17,c(Q15617994))
action filter_type
action find
entity Q19030089
relation P17
type Q15617994
['Q19030089', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q19030089 property:P17 ?v }
Medal of the Order of Merit for the Fatherland II degree
action filter_type
action find
entity Medal of the Order of Merit for the Fatherland II degree
relation country
type designation for an administrative territorial entity
['Medal of the Order of Merit for the Fatherland II degree', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Medal_of_the_Order_of_Merit_for_the_Fatherland_II_degree property:country ?v }
[]
designation for an administrative territorial entity
Q159
SYSTEM
Russia
Q159
(Q19030089,P17,c(Q15617994))
action filter_type
action find
entity Q19030089
relation P17
type Q15617994
That work of art is situated in [ANSWER]
['Q19030089', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q19030089 property:P17 ?v }
Russia
That work of art is situated in Russia
Russia
action filter_type
action find
entity Medal of the Order of Merit for the Fatherland II degree
relation country
type designation for an administrative territorial entity
['Medal of the Order of Merit for the Fatherland II degree', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Medal_of_the_Order_of_Merit_for_the_Fatherland_II_degree property:country ?v }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q16469052
Q15617994
USER
And what about Pavalkiai?
(Q16469052,P17,c(Q15617994))
action filter_type
action find
entity Q16469052
relation P17
type Q15617994
['Q16469052', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q16469052 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
Pavalkiai
action filter_type
action find
entity Pavalkiai
relation country
type designation for an administrative territorial entity
['Pavalkiai', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Pavalkiai property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q37
SYSTEM
Lithuania
Q37
(Q16469052,P17,c(Q15617994))
action filter_type
action find
entity Q16469052
relation P17
type Q15617994
[ANSWER]
['Q16469052', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q16469052 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
Lithuania
Lithuania
action filter_type
action find
entity Pavalkiai
relation country
type designation for an administrative territorial entity
['Pavalkiai', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Pavalkiai property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P495
Q15617994 Q15416 Q2088357
USER
Which administrative territories are the countries of origin of around the same number of television programs and musical ensembles as that administrative territory ?
(c(Q15416)|c(Q2088357),P495,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q37
relation P495
type Q15416
type Q2088357
[[{'concept': 'Q15416'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?f ) AS ?l ) WHERE { { ?f property:P495 ?b . ?b rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15416 } UNION { ?f property:P495 ?b . ?b rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q2088357 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) WHERE { ?a property:P495 resource:Q37 . { { ?a rdf:type ontology:Q15416 } UNION { ?a rdf:type ontology:Q2088357 } } } } . FILTER ( ?l = ?v ) }
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action count
action filter_multi_types
action find_reverse
entity Lithuania
relation country of origin
type television program
type musical ensemble
[[{'concept': 'television program'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?f ) AS ?l ) WHERE { { ?f property:country_of_origin ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:television_program } UNION { ?f property:country_of_origin ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:musical_ensemble } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) WHERE { ?a property:country_of_origin resource:Lithuania . { { ?a rdf:type ontology:television_program } UNION { ?a rdf:type ontology:musical_ensemble } } } } . FILTER ( ?l = ?v ) }
[]
designation for an administrative territorial entity television program musical ensemble
Q38 Q155 Q230
SYSTEM
Italy, Brazil, Georgia
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q142 Q55 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 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 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q15416)|c(Q2088357),P495,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q37
relation P495
type Q15416
type Q2088357
[ANSWERS] are the countries of origin of around the same number of television programs and musical ensembles as that administrative territory
[[{'concept': 'Q15416'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?f ) AS ?l ) WHERE { { ?f property:P495 ?b . ?b rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15416 } UNION { ?f property:P495 ?b . ?b rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q2088357 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) WHERE { ?a property:P495 resource:Q37 . { { ?a rdf:type ontology:Q15416 } UNION { ?a rdf:type ontology:Q2088357 } } } } . FILTER ( ?l = ?v ) }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina France Netherlands Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy 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 Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland 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 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 Spain Tuvalu Quebec Tajikistan Thailand Zambia
Italy, Brazil and Georgia are the countries of origin of around the same number of television programs and musical ensembles as that administrative territory
Italy Brazil Georgia
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action count
action filter_multi_types
action find_reverse
entity Lithuania
relation country of origin
type television program
type musical ensemble
[[{'concept': 'television program'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?f ) AS ?l ) WHERE { { ?f property:country_of_origin ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:television_program } UNION { ?f property:country_of_origin ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:musical_ensemble } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) WHERE { ?a property:country_of_origin resource:Lithuania . { { ?a rdf:type ontology:television_program } UNION { ?a rdf:type ontology:musical_ensemble } } } } . FILTER ( ?l = ?v ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P276
Q1190554 Q645883
USER
How many events or military operations are located at that administrative territory ?
(c(Q1190554),P276,Q230) (c(Q645883),P276,Q230) (c(Q1190554),P276,Q38) (c(Q645883),P276,Q38) (c(Q1190554),P276,Q155) (c(Q645883),P276,Q155) (c(Q1190554),P276,Q230) (c(Q645883),P276,Q230)
[{'concept': 'Q1190554'}, 'P276', 'Q230'] [{'concept': 'Q645883'}, 'P276', 'Q230'] [{'concept': 'Q1190554'}, 'P276', 'Q38'] [{'concept': 'Q645883'}, 'P276', 'Q38'] [{'concept': 'Q1190554'}, 'P276', 'Q155'] [{'concept': 'Q645883'}, 'P276', 'Q155'] [{'concept': 'Q1190554'}, 'P276', 'Q230'] [{'concept': 'Q645883'}, 'P276', 'Q230']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q17334923 resource:Q5547323 } UNION { ?y property:Q17334923 resource:Q5547323 } UNION { ?z property:Q17334923 resource:Q977238 } UNION { ?y property:Q17334923 resource:Q977238 } UNION { ?z property:Q17334923 resource:Q21475816 } UNION { ?y property:Q17334923 resource:Q21475816 } UNION { ?z property:Q17334923 resource:Q5547323 } UNION { ?y property:Q17334923 resource:Q5547323 } } . ?z rdf:type ontology:Q5416694 . ?y rdf:type ontology:Q645883 }
[{'concept': 'event'}, 'location', 'Georgia'] [{'concept': 'military operation'}, 'location', 'Georgia'] [{'concept': 'event'}, 'location', 'Italy'] [{'concept': 'military operation'}, 'location', 'Italy'] [{'concept': 'event'}, 'location', 'Brazil'] [{'concept': 'military operation'}, 'location', 'Brazil'] [{'concept': 'event'}, 'location', 'Georgia'] [{'concept': 'military operation'}, 'location', 'Georgia']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:location resource:Georgia } UNION { ?y property:location resource:Georgia } UNION { ?z property:location resource:Italy } UNION { ?y property:location resource:Italy } UNION { ?z property:location resource:Brazil } UNION { ?y property:location resource:Brazil } UNION { ?z property:location resource:Georgia } UNION { ?y property:location resource:Georgia } } . ?z rdf:type ontology:event . ?y rdf:type ontology:military_operation }
[]
event military operation
Quantitative|Count|Mult. entity type|Clarification
Q155
SYSTEM
Did you mean Brazil ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q17334923 resource:Q5547323 } UNION { ?y property:Q17334923 resource:Q5547323 } UNION { ?z property:Q17334923 resource:Q977238 } UNION { ?y property:Q17334923 resource:Q977238 } UNION { ?z property:Q17334923 resource:Q21475816 } UNION { ?y property:Q17334923 resource:Q21475816 } UNION { ?z property:Q17334923 resource:Q5547323 } UNION { ?y property:Q17334923 resource:Q5547323 } } . ?z rdf:type ontology:Q5416694 . ?y rdf:type ontology:Q645883 }
Did you mean Brazil ?
Brazil
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:location resource:Georgia } UNION { ?y property:location resource:Georgia } UNION { ?z property:location resource:Italy } UNION { ?y property:location resource:Italy } UNION { ?z property:location resource:Brazil } UNION { ?y property:location resource:Brazil } UNION { ?z property:location resource:Georgia } UNION { ?y property:location resource:Georgia } } . ?z rdf:type ontology:event . ?y rdf:type ontology:military_operation }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Georgia. Could you tell me the answer for that?
(c(Q1190554),P276,Q230) (c(Q645883),P276,Q230) (c(Q1190554),P276,Q38) (c(Q645883),P276,Q38) (c(Q1190554),P276,Q155) (c(Q645883),P276,Q155) (c(Q1190554),P276,Q230) (c(Q645883),P276,Q230)
Q230
[{'concept': 'Q1190554'}, 'P276', 'Q230'] [{'concept': 'Q645883'}, 'P276', 'Q230'] [{'concept': 'Q1190554'}, 'P276', 'Q38'] [{'concept': 'Q645883'}, 'P276', 'Q38'] [{'concept': 'Q1190554'}, 'P276', 'Q155'] [{'concept': 'Q645883'}, 'P276', 'Q155'] [{'concept': 'Q1190554'}, 'P276', 'Q230'] [{'concept': 'Q645883'}, 'P276', 'Q230']
[{'concept': 'event'}, 'location', 'Georgia'] [{'concept': 'military operation'}, 'location', 'Georgia'] [{'concept': 'event'}, 'location', 'Italy'] [{'concept': 'military operation'}, 'location', 'Italy'] [{'concept': 'event'}, 'location', 'Brazil'] [{'concept': 'military operation'}, 'location', 'Brazil'] [{'concept': 'event'}, 'location', 'Georgia'] [{'concept': 'military operation'}, 'location', 'Georgia']
[]
SYSTEM
2
Q4871427 Q118922
(c(Q1190554),P276,Q230) (c(Q645883),P276,Q230) (c(Q1190554),P276,Q38) (c(Q645883),P276,Q38) (c(Q1190554),P276,Q155) (c(Q645883),P276,Q155) (c(Q1190554),P276,Q230) (c(Q645883),P276,Q230)
[ANSWER]
[{'concept': 'Q1190554'}, 'P276', 'Q230'] [{'concept': 'Q645883'}, 'P276', 'Q230'] [{'concept': 'Q1190554'}, 'P276', 'Q38'] [{'concept': 'Q645883'}, 'P276', 'Q38'] [{'concept': 'Q1190554'}, 'P276', 'Q155'] [{'concept': 'Q645883'}, 'P276', 'Q155'] [{'concept': 'Q1190554'}, 'P276', 'Q230'] [{'concept': 'Q645883'}, 'P276', 'Q230']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q17334923 resource:Q5547323 } UNION { ?y property:Q17334923 resource:Q5547323 } UNION { ?z property:Q17334923 resource:Q977238 } UNION { ?y property:Q17334923 resource:Q977238 } UNION { ?z property:Q17334923 resource:Q21475816 } UNION { ?y property:Q17334923 resource:Q21475816 } UNION { ?z property:Q17334923 resource:Q5547323 } UNION { ?y property:Q17334923 resource:Q5547323 } } . ?z rdf:type ontology:Q5416694 . ?y rdf:type ontology:Q645883 }
Battle of Khresili United Nations Observer Mission in Georgia
2
[{'concept': 'event'}, 'location', 'Georgia'] [{'concept': 'military operation'}, 'location', 'Georgia'] [{'concept': 'event'}, 'location', 'Italy'] [{'concept': 'military operation'}, 'location', 'Italy'] [{'concept': 'event'}, 'location', 'Brazil'] [{'concept': 'military operation'}, 'location', 'Brazil'] [{'concept': 'event'}, 'location', 'Georgia'] [{'concept': 'military operation'}, 'location', 'Georgia']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:location resource:Georgia } UNION { ?y property:location resource:Georgia } UNION { ?z property:location resource:Italy } UNION { ?y property:location resource:Italy } UNION { ?z property:location resource:Brazil } UNION { ?y property:location resource:Brazil } UNION { ?z property:location resource:Georgia } UNION { ?y property:location resource:Georgia } } . ?z rdf:type ontology:event . ?y rdf:type ontology:military_operation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q230
P276
Q645883
USER
Which military operation is located at that administrative territory ?
action filter_type
action find_reverse
entity Q230
relation P276
type Q645883
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q645883 . ?s property:P276 resource:Q230 }
Georgia
action filter_type
action find_reverse
entity Georgia
relation location
type military operation
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:military_operation . ?s property:location resource:Georgia }
[]
military operation
Q118922
SYSTEM
United Nations Observer Mission in Georgia
Q118922
action filter_type
action find_reverse
entity Q230
relation P276
type Q645883
[ANSWER] is located at that administrative territory
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q645883 . ?s property:P276 resource:Q230 }
United Nations Observer Mission in Georgia
United Nations Observer Mission in Georgia is located at that administrative territory
United Nations Observer Mission in Georgia
action filter_type
action find_reverse
entity Georgia
relation location
type military operation
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:military_operation . ?s property:location resource:Georgia }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q159 Q37
P47 P17
Q15617994
USER
Which administrative territories do Lithuania share a border with and are situated in Russia ?
AND((c(Q15617994),P47,Q37), (c(Q15617994),P17,Q159))
action filter_type
action intersection
action find_reverse
entity Q37
relation P47
action find_reverse
entity Q159
relation P17
type Q15617994
{'AND': [[{'concept': 'Q15617994'}, 'P47', 'Q37'], [{'concept': 'Q15617994'}, 'P17', 'Q159']]}
SELECT DISTINCT ?t WHERE { ?t property:P47 resource:Q37 . ?t property:P17 resource:Q159 . ?t rdf:type ontology:Q15617994 }
Russia Lithuania
action filter_type
action intersection
action find_reverse
entity Lithuania
relation shares border with
action find_reverse
entity Russia
relation country
type designation for an administrative territorial entity
{'AND': [[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Lithuania'], [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Russia']]}
SELECT DISTINCT ?t WHERE { ?t property:shares_border_with resource:Lithuania . ?t property:country resource:Russia . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q159
SYSTEM
Russia
Q159
AND((c(Q15617994),P47,Q37), (c(Q15617994),P17,Q159))
action filter_type
action intersection
action find_reverse
entity Q37
relation P47
action find_reverse
entity Q159
relation P17
type Q15617994
The [ANSWER] Lithuania share a border with
{'AND': [[{'concept': 'Q15617994'}, 'P47', 'Q37'], [{'concept': 'Q15617994'}, 'P17', 'Q159']]}
SELECT DISTINCT ?t WHERE { ?t property:P47 resource:Q37 . ?t property:P17 resource:Q159 . ?t rdf:type ontology:Q15617994 }
Russia
The Russia Lithuania share a border with
Russia
action filter_type
action intersection
action find_reverse
entity Lithuania
relation shares border with
action find_reverse
entity Russia
relation country
type designation for an administrative territorial entity
{'AND': [[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Lithuania'], [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Russia']]}
SELECT DISTINCT ?t WHERE { ?t property:shares_border_with resource:Lithuania . ?t property:country resource:Russia . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q159
P119
Q502895
USER
Which person has Russia as place of burial ?
(c(Q502895),P119,Q159)
action filter_type
action find_reverse
entity Q159
relation P119
type Q502895
[{'concept': 'Q502895'}, 'P119', 'Q159']
SELECT DISTINCT ?o WHERE { ?o property:P119 resource:Q159 . ?o rdf:type ontology:Q502895 }
Russia
action filter_type
action find_reverse
entity Russia
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Russia']
SELECT DISTINCT ?o WHERE { ?o property:place_of_burial resource:Russia . ?o rdf:type ontology:common_name }
[]
common name
Q1678771
SYSTEM
Nikolay Vtorov
Q1678771
(c(Q502895),P119,Q159)
action filter_type
action find_reverse
entity Q159
relation P119
type Q502895
[ANSWER] has Russia as place of burial
[{'concept': 'Q502895'}, 'P119', 'Q159']
SELECT DISTINCT ?o WHERE { ?o property:P119 resource:Q159 . ?o rdf:type ontology:Q502895 }
Nikolay Vtorov
Nikolay Vtorov has Russia as place of burial
Nikolay Vtorov
action filter_type
action find_reverse
entity Russia
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Russia']
SELECT DISTINCT ?o WHERE { ?o property:place_of_burial resource:Russia . ?o rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1129422
P1303
Q34379 Q502895
USER
Which musical instruments can around the same number of people perform with as morin khuur ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q1129422
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?p ) AS ?d ) WHERE { ?t rdf:type ontology:Q34379 . ?p rdf:type ontology:Q502895 . ?p property:P1303 ?t } GROUP BY ?t } . FILTER ( ?d = ?e ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { resource:Q1129422 property:P1303 ?b . ?b rdf:type ontology:Q34379 } } }
morin khuur
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity morin khuur
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?p ) AS ?d ) WHERE { ?t rdf:type ontology:musical_instrument . ?p rdf:type ontology:common_name . ?p property:instrument ?t } GROUP BY ?t } . FILTER ( ?d = ?e ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { resource:morin_khuur property:instrument ?b . ?b rdf:type ontology:musical_instrument } } }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q1129422
relation P1303
type Q34379
[ANSWERS] can around the same number of people perform with as morin khuur
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?p ) AS ?d ) WHERE { ?t rdf:type ontology:Q34379 . ?p rdf:type ontology:Q502895 . ?p property:P1303 ?t } GROUP BY ?t } . FILTER ( ?d = ?e ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { resource:Q1129422 property:P1303 ?b . ?b rdf:type ontology:Q34379 } } }
viola lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
Davul, harpsichord and Wurlitzer electric piano can around the same number of people perform with as morin khuur
davul harpsichord Wurlitzer electric piano
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity morin khuur
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?p ) AS ?d ) WHERE { ?t rdf:type ontology:musical_instrument . ?p rdf:type ontology:common_name . ?p property:instrument ?t } GROUP BY ?t } . FILTER ( ?d = ?e ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { resource:morin_khuur property:instrument ?b . ?b rdf:type ontology:musical_instrument } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q424017
P1303
Q34379 Q502895
USER
And also tell me about acoustic bass guitar?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q424017
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?u ) AS ?z ) WHERE { ?u property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?u rdf:type ontology:Q502895 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { resource:Q424017 property:P1303 ?f . ?f rdf:type ontology:Q34379 } } . FILTER ( ?z = ?v ) }
acoustic bass guitar
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity acoustic bass guitar
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?u ) AS ?z ) WHERE { ?u property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?u rdf:type ontology:common_name } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { resource:acoustic_bass_guitar property:instrument ?f . ?f rdf:type ontology:musical_instrument } } . FILTER ( ?z = ?v ) }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q424017
relation P1303
type Q34379
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?u ) AS ?z ) WHERE { ?u property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?u rdf:type ontology:Q502895 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { resource:Q424017 property:P1303 ?f . ?f rdf:type ontology:Q34379 } } . FILTER ( ?z = ?v ) }
viola lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
davul harpsichord Wurlitzer electric piano
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity acoustic bass guitar
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?u ) AS ?z ) WHERE { ?u property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?u rdf:type ontology:common_name } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { resource:acoustic_bass_guitar property:instrument ?f . ?f rdf:type ontology:musical_instrument } } . FILTER ( ?z = ?v ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q38 Q20987396
P361
Q82794
USER
How many geographic regions are Italy or Elbe-Danube-Watershed a portion of ?
(Q38,P361,c(Q82794)) (Q20987396,P361,c(Q82794))
action count
action union
action filter_type
action find
entity Q38
relation P361
type Q82794
action filter_type
action find
entity Q20987396
relation P361
type Q82794
['Q38', 'P361', {'concept': 'Q82794'}] ['Q20987396', 'P361', {'concept': 'Q82794'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { { resource:Q20987396 property:P361 ?v . ?v rdf:type ontology:Q82794 } UNION { resource:Q38 property:P361 ?v . ?v rdf:type ontology:Q82794 } }
Italy Elbe-Danube-Watershed
action count
action union
action filter_type
action find
entity Italy
relation part of
type geographic region
action filter_type
action find
entity Elbe-Danube-Watershed
relation part of
type geographic region
['Italy', 'part of', {'concept': 'geographic region'}] ['Elbe-Danube-Watershed', 'part of', {'concept': 'geographic region'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { { resource:Elbe-Danube-Watershed property:part_of ?v . ?v rdf:type ontology:geographic_region } UNION { resource:Italy property:part_of ?v . ?v rdf:type ontology:geographic_region } }
[]
geographic region
SYSTEM
2
Q12046596 Q12046593
(Q38,P361,c(Q82794)) (Q20987396,P361,c(Q82794))
action count
action union
action filter_type
action find
entity Q38
relation P361
type Q82794
action filter_type
action find
entity Q20987396
relation P361
type Q82794
[ANSWER]
['Q38', 'P361', {'concept': 'Q82794'}] ['Q20987396', 'P361', {'concept': 'Q82794'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { { resource:Q20987396 property:P361 ?v . ?v rdf:type ontology:Q82794 } UNION { resource:Q38 property:P361 ?v . ?v rdf:type ontology:Q82794 } }
Elbe Basin Danube basin
2
action count
action union
action filter_type
action find
entity Italy
relation part of
type geographic region
action filter_type
action find
entity Elbe-Danube-Watershed
relation part of
type geographic region
['Italy', 'part of', {'concept': 'geographic region'}] ['Elbe-Danube-Watershed', 'part of', {'concept': 'geographic region'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { { resource:Elbe-Danube-Watershed property:part_of ?v . ?v rdf:type ontology:geographic_region } UNION { resource:Italy property:part_of ?v . ?v rdf:type ontology:geographic_region } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q38
P194
Q1752346
USER
Which assembly governs that administrative territory ?
action filter_type
action find
entity Q38
relation P194
type Q1752346
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q1752346 . resource:Q38 property:P194 ?e }
Italy
action filter_type
action find
entity Italy
relation legislative body
type assembly
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:assembly . resource:Italy property:legislative_body ?e }
[]
assembly
Q1117578
SYSTEM
Italian Parliament
Q1117578
action filter_type
action find
entity Q38
relation P194
type Q1752346
[ANSWER] governs that administrative territory
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q1752346 . resource:Q38 property:P194 ?e }
Italian Parliament
Italian Parliament governs that administrative territory
Italian Parliament
action filter_type
action find
entity Italy
relation legislative body
type assembly
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:assembly . resource:Italy property:legislative_body ?e }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q155 Q334
P530
Q1048835
USER
How many political territories have diplomatic relations with Brazil and Singapore ?
(c(Q1048835),P530,Q155) (c(Q1048835),P530,Q334)
action count
action intersection
action filter_type
action find_reverse
entity Q155
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q334
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q155'] [{'concept': 'Q1048835'}, 'P530', 'Q334']
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { ?b property:P530 resource:Q155 . ?b rdf:type ontology:Q1048835 . ?b property:P530 resource:Q334 . ?b rdf:type ontology:Q1048835 }
Brazil Singapore
action count
action intersection
action filter_type
action find_reverse
entity Brazil
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Singapore
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Brazil'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Singapore']
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { ?b property:diplomatic_relation resource:Brazil . ?b rdf:type ontology:political_territorial_entity . ?b property:diplomatic_relation resource:Singapore . ?b rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
3
Q16 Q408 Q183
(c(Q1048835),P530,Q155) (c(Q1048835),P530,Q334)
action count
action intersection
action filter_type
action find_reverse
entity Q155
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q334
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q155'] [{'concept': 'Q1048835'}, 'P530', 'Q334']
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { ?b property:P530 resource:Q155 . ?b rdf:type ontology:Q1048835 . ?b property:P530 resource:Q334 . ?b rdf:type ontology:Q1048835 }
Canada Australia Germany
3
action count
action intersection
action filter_type
action find_reverse
entity Brazil
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Singapore
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Brazil'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Singapore']
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { ?b property:diplomatic_relation resource:Brazil . ?b rdf:type ontology:political_territorial_entity . ?b property:diplomatic_relation resource:Singapore . ?b rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155
P35
Q502895
USER
Which people have the highest formal authority in Brazil ?
(Q155,P35,c(Q502895))
action filter_type
action find
entity Q155
relation P35
type Q502895
['Q155', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q155 property:P35 ?e . ?e rdf:type ontology:Q502895 }
Brazil
action filter_type
action find
entity Brazil
relation head of state
type common name
['Brazil', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Brazil property:head_of_state ?e . ?e rdf:type ontology:common_name }
[]
common name
Q37181 Q230578 Q40722
SYSTEM
Luiz Inácio Lula da Silva, Fernando Henrique Cardoso, Dilma Rousseff
Q37181 Q230578 Q463533 Q485946 Q236503 Q40722
(Q155,P35,c(Q502895))
action filter_type
action find
entity Q155
relation P35
type Q502895
[ANSWERS] have the highest formal authority in Brazil
['Q155', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q155 property:P35 ?e . ?e rdf:type ontology:Q502895 }
Luiz Inácio Lula da Silva Fernando Henrique Cardoso Michel Temer Itamar Franco Fernando Collor de Mello Dilma Rousseff
Luiz Inácio Lula da Silva, Fernando Henrique Cardoso and Dilma Rousseff have the highest formal authority in Brazil
Luiz Inácio Lula da Silva Fernando Henrique Cardoso Dilma Rousseff
action filter_type
action find
entity Brazil
relation head of state
type common name
['Brazil', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Brazil property:head_of_state ?e . ?e rdf:type ontology:common_name }
[]