Simple Question (Direct)
Simple Question
Q1051267
P106
Q12737077
USER
What does János Székely do for a living ?
(Q1051267,P106,c(Q12737077))
action filter_type
action find
entity Q1051267
relation P106
type Q12737077
['Q1051267', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q1051267 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
János Székely
action filter_type
action find
entity János Székely
relation occupation
type occupation
['János Székely', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:János_Székely property:occupation ?k . ?k rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q1051267,P106,c(Q12737077))
action filter_type
action find
entity Q1051267
relation P106
type Q12737077
János Székely does for a living as [ANSWER]
['Q1051267', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q1051267 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
association football player
János Székely does for a living as association football player
association football player
action filter_type
action find
entity János Székely
relation occupation
type occupation
['János Székely', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:János_Székely property:occupation ?k . ?k rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1051267
P641
Q349
USER
Which sport did that person participate in ?
(Q937857,P641,c(Q349))
action filter_type
action find
entity Q1051267
relation P641
type Q349
['Q937857', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q349 . resource:Q1051267 property:P641 ?c }
János Székely
action filter_type
action find
entity János Székely
relation sport
type sport
['association football player', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:sport . resource:János_Székely property:sport ?c }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q937857,P641,c(Q349))
action filter_type
action find
entity Q1051267
relation P641
type Q349
That person participated in [ANSWER]
['Q937857', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q349 . resource:Q1051267 property:P641 ?c }
association football
That person participated in association football
association football
action filter_type
action find
entity János Székely
relation sport
type sport
['association football player', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:sport . resource:János_Székely property:sport ?c }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2736
P495
Q1496967
USER
What is the country of origin of that sport ?
(Q2736,P495,c(Q1496967))
action filter_type
action find
entity Q2736
relation P495
type Q1496967
['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?f WHERE { resource:Q2736 property:P495 ?f . ?f rdf:type ontology:Q1496967 }
association football
action filter_type
action find
entity association football
relation country of origin
type territorial entity
['association football', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:association_football property:country_of_origin ?f . ?f rdf:type ontology:territorial_entity }
[]
territorial entity
Q21
SYSTEM
England
Q21
(Q2736,P495,c(Q1496967))
action filter_type
action find
entity Q2736
relation P495
type Q1496967
The country of origin of that sport is in [ANSWER]
['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?f WHERE { resource:Q2736 property:P495 ?f . ?f rdf:type ontology:Q1496967 }
England
The country of origin of that sport is in England
England
action filter_type
action find
entity association football
relation country of origin
type territorial entity
['association football', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:association_football property:country_of_origin ?f . ?f rdf:type ontology:territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q24256703
Q1496967
USER
And what about Catherall and Prichard's Hand-book to Llandudno?
(Q24256703,P495,c(Q1496967))
action filter_type
action find
entity Q24256703
relation P495
type Q1496967
['Q24256703', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?c WHERE { resource:Q24256703 property:P495 ?c . ?c rdf:type ontology:Q1496967 }
Catherall and Prichard's Hand-book to Llandudno
action filter_type
action find
entity Catherall and Prichard's Hand-book to Llandudno
relation country of origin
type territorial entity
["Catherall and Prichard's Hand-book to Llandudno", 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Catherall_and_Prichard's_Hand-book_to_Llandudno property:country_of_origin ?c . ?c rdf:type ontology:territorial_entity }
[]
territorial entity
Q21
SYSTEM
England
Q21
(Q24256703,P495,c(Q1496967))
action filter_type
action find
entity Q24256703
relation P495
type Q1496967
[ANSWER]
['Q24256703', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?c WHERE { resource:Q24256703 property:P495 ?c . ?c rdf:type ontology:Q1496967 }
England
England
action filter_type
action find
entity Catherall and Prichard's Hand-book to Llandudno
relation country of origin
type territorial entity
["Catherall and Prichard's Hand-book to Llandudno", 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Catherall_and_Prichard's_Hand-book_to_Llandudno property:country_of_origin ?c . ?c rdf:type ontology:territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q21 Q1860
P37
Q34770
USER
Is English the official language of that territory ?
(Q21,P37,Q1860)
action is_in
entity Q1860
action find
entity Q21
relation P37
['Q21', 'P37', 'Q1860']
ASK WHERE { resource:Q21 property:P37 resource:Q1860 }
England English
action is_in
entity English
action find
entity England
relation official language
['England', 'official language', 'English']
ASK WHERE { resource:England property:official_language resource:English }
[]
language
SYSTEM
YES
(Q21,P37,Q1860)
action is_in
entity Q1860
action find
entity Q21
relation P37
[ANSWER]
['Q21', 'P37', 'Q1860']
ASK WHERE { resource:Q21 property:P37 resource:Q1860 }
Yes
action is_in
entity English
action find
entity England
relation official language
['England', 'official language', 'English']
ASK WHERE { resource:England property:official_language resource:English }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q26699111 Q1051267
P27 P17
Q15617994
USER
Which administrative territories are the countries of citizenship of János Székely or are mayor of Almonacid de Toledo a part of ?
OR((Q1051267,P27,c(Q15617994)), (Q26699111,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1051267
relation P27
action find
entity Q26699111
relation P17
type Q15617994
{'OR': [['Q1051267', 'P27', {'concept': 'Q15617994'}], ['Q26699111', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . { { resource:Q26699111 property:P17 ?n } UNION { resource:Q1051267 property:P27 ?n } } }
mayor of Almonacid de Toledo János Székely
action filter_type
action union
action find
entity János Székely
relation country of citizenship
action find
entity mayor of Almonacid de Toledo
relation country
type designation for an administrative territorial entity
{'OR': [['János Székely', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['mayor of Almonacid de Toledo', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:mayor_of_Almonacid_de_Toledo property:country ?n } UNION { resource:János_Székely property:country_of_citizenship ?n } } }
[]
designation for an administrative territorial entity
Q29 Q218
SYSTEM
Spain, Romania
Q29 Q218
OR((Q1051267,P27,c(Q15617994)), (Q26699111,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1051267
relation P27
action find
entity Q26699111
relation P17
type Q15617994
[ANSWERS] are the countries of citizenship of János Székely or are mayor of Almonacid de Toledo a part of
{'OR': [['Q1051267', 'P27', {'concept': 'Q15617994'}], ['Q26699111', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . { { resource:Q26699111 property:P17 ?n } UNION { resource:Q1051267 property:P27 ?n } } }
Spain Romania
Spain and Romania are the countries of citizenship of János Székely or are mayor of Almonacid de Toledo a part of
Spain Romania
action filter_type
action union
action find
entity János Székely
relation country of citizenship
action find
entity mayor of Almonacid de Toledo
relation country
type designation for an administrative territorial entity
{'OR': [['János Székely', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['mayor of Almonacid de Toledo', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:mayor_of_Almonacid_de_Toledo property:country ?n } UNION { resource:János_Székely property:country_of_citizenship ?n } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q760
P17
Q15617994 Q811979 Q14524493
USER
How many administrative territories are greater number of architectural structures or terrains present in than Saint Lucia ?
(c(Q811979)|c(Q14524493),P17,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q811979
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q14524493
action count
action filter_multi_types
action find_reverse
entity Q760
relation P17
type Q811979
type Q14524493
[[{'concept': 'Q811979'}, {'concept': 'Q14524493'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) WHERE { ?z property:P17 resource:Q760 . { { ?z rdf:type ontology:Q811979 } UNION { ?z rdf:type ontology:Q14524493 } } } } . FILTER ( ?s > ?c ) . { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?s ) WHERE { { ?p property:P17 ?f . ?f rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q811979 } UNION { ?f rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q14524493 . ?p property:P17 ?f } } GROUP BY ?f } }
Saint Lucia
action count
action greater
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type architectural structure
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type terrain
action count
action filter_multi_types
action find_reverse
entity Saint Lucia
relation country
type architectural structure
type terrain
[[{'concept': 'architectural structure'}, {'concept': 'terrain'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) WHERE { ?z property:country resource:Saint_Lucia . { { ?z rdf:type ontology:architectural_structure } UNION { ?z rdf:type ontology:terrain } } } } . FILTER ( ?s > ?c ) . { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?s ) WHERE { { ?p property:country ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:architectural_structure } UNION { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:terrain . ?p property:country ?f } } GROUP BY ?f } }
[]
designation for an administrative territorial entity architectural structure terrain
SYSTEM
140
Q804 Q801 Q800 Q398 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q214 Q712 Q711 Q717 Q837 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q881 Q986 Q219 Q4628 Q822 Q241 Q242 Q244 Q811 Q736 Q33 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q733 Q854 Q734 Q819 Q424 Q236 Q230 Q232 Q233 Q20 Q1042 Q27 Q28 Q1025 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q836 Q786 Q32 Q228 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q977 Q17 Q902 Q1036 Q974 Q1032 Q1033 Q1030 Q191 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q1013 Q215 Q218 Q37 Q912 Q917 Q916 Q833 Q1009 Q686 Q29 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q810 Q1019 Q813 Q1016 Q1011 Q863 Q1049 Q869 Q953
(c(Q811979)|c(Q14524493),P17,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q811979
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q14524493
action count
action filter_multi_types
action find_reverse
entity Q760
relation P17
type Q811979
type Q14524493
[ANSWER]
[[{'concept': 'Q811979'}, {'concept': 'Q14524493'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) WHERE { ?z property:P17 resource:Q760 . { { ?z rdf:type ontology:Q811979 } UNION { ?z rdf:type ontology:Q14524493 } } } } . FILTER ( ?s > ?c ) . { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?s ) WHERE { { ?p property:P17 ?f . ?f rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q811979 } UNION { ?f rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q14524493 . ?p property:P17 ?f } } GROUP BY ?f } }
Panama Israel Costa Rica Bahrain Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Slovakia Fiji Mongolia Venezuela Nepal Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Eritrea Bulgaria Faroe Islands Lebanon Cuba Belize Barbados Nicaragua Ecuador Finland Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Paraguay Sri Lanka Guyana Laos Cambodia Montenegro Georgia Kazakhstan Malta Norway Seychelles Ireland Hungary Mauritania Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Myanmar Dominican Republic Luxembourg Andorra Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Djibouti Japan Bangladesh Uganda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Lesotho Slovenia Romania Lithuania Mali Bhutan Angola Malaysia Cameroon Vanuatu Spain Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Jordan Madagascar Kyrgyzstan Libya Cape Verde Tajikistan Sudan Thailand Zambia
140
action count
action greater
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type architectural structure
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type terrain
action count
action filter_multi_types
action find_reverse
entity Saint Lucia
relation country
type architectural structure
type terrain
[[{'concept': 'architectural structure'}, {'concept': 'terrain'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) WHERE { ?z property:country resource:Saint_Lucia . { { ?z rdf:type ontology:architectural_structure } UNION { ?z rdf:type ontology:terrain } } } } . FILTER ( ?s > ?c ) . { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?s ) WHERE { { ?p property:country ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:architectural_structure } UNION { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:terrain . ?p property:country ?f } } GROUP BY ?f } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1032
P17
Q15617994 Q811979 Q14524493
USER
And also tell me about Niger?
(c(Q811979)|c(Q14524493),P17,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q811979
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q14524493
action count
action filter_multi_types
action find_reverse
entity Q1032
relation P17
type Q811979
type Q14524493
[[{'concept': 'Q811979'}, {'concept': 'Q14524493'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?x ) AS ?v ) WHERE { ?x rdf:type ?z . VALUES ( ?z ) { ( ontology:Q14524493 ) ( ontology:Q811979 ) } } GROUP BY ?h } . FILTER ( ?v > ?q ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { ?o property:P17 resource:Q1032 . { ?o rdf:type ?l . VALUES ( ?l ) { ( ontology:Q811979 ) ( ontology:Q14524493 ) } } } } }
Niger
action count
action greater
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type architectural structure
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type terrain
action count
action filter_multi_types
action find_reverse
entity Niger
relation country
type architectural structure
type terrain
[[{'concept': 'architectural structure'}, {'concept': 'terrain'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?x ) AS ?v ) WHERE { ?x rdf:type ?z . VALUES ( ?z ) { ( ontology:terrain ) ( ontology:architectural_structure ) } } GROUP BY ?h } . FILTER ( ?v > ?q ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { ?o property:country resource:Niger . { ?o rdf:type ?l . VALUES ( ?l ) { ( ontology:architectural_structure ) ( ontology:terrain ) } } } } }
[]
designation for an administrative territorial entity architectural structure terrain
SYSTEM
126
Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q214 Q712 Q711 Q717 Q837 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q881 Q986 Q219 Q4628 Q822 Q241 Q242 Q811 Q736 Q33 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q733 Q854 Q734 Q819 Q424 Q236 Q230 Q232 Q233 Q20 Q1042 Q27 Q28 Q189 Q843 Q184 Q1029 Q1028 Q836 Q786 Q32 Q228 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q977 Q17 Q902 Q1036 Q974 Q1033 Q1030 Q191 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q211 Q217 Q215 Q218 Q37 Q916 Q833 Q1009 Q29 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q810 Q1019 Q813 Q1016 Q1011 Q863 Q869
(c(Q811979)|c(Q14524493),P17,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q811979
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q14524493
action count
action filter_multi_types
action find_reverse
entity Q1032
relation P17
type Q811979
type Q14524493
[ANSWER]
[[{'concept': 'Q811979'}, {'concept': 'Q14524493'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?x ) AS ?v ) WHERE { ?x rdf:type ?z . VALUES ( ?z ) { ( ontology:Q14524493 ) ( ontology:Q811979 ) } } GROUP BY ?h } . FILTER ( ?v > ?q ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { ?o property:P17 resource:Q1032 . { ?o rdf:type ?l . VALUES ( ?l ) { ( ontology:Q811979 ) ( ontology:Q14524493 ) } } } } }
Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Slovakia Fiji Mongolia Venezuela Nepal Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Eritrea Bulgaria Faroe Islands Lebanon Cuba Belize Nicaragua Ecuador Finland Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Paraguay Sri Lanka Guyana Laos Cambodia Montenegro Georgia Kazakhstan Malta Norway Seychelles Ireland Hungary Iceland Pakistan Belarus Mozambique Morocco Myanmar Dominican Republic Luxembourg Andorra Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Djibouti Japan Bangladesh Uganda Democratic Republic of the Congo Nigeria Namibia Estonia Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovenia Romania Lithuania Angola Malaysia Cameroon Spain Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Jordan Madagascar Kyrgyzstan Libya Cape Verde Tajikistan Thailand
126
action count
action greater
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type architectural structure
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type terrain
action count
action filter_multi_types
action find_reverse
entity Niger
relation country
type architectural structure
type terrain
[[{'concept': 'architectural structure'}, {'concept': 'terrain'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?x ) AS ?v ) WHERE { ?x rdf:type ?z . VALUES ( ?z ) { ( ontology:terrain ) ( ontology:architectural_structure ) } } GROUP BY ?h } . FILTER ( ?v > ?q ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { ?o property:country resource:Niger . { ?o rdf:type ?l . VALUES ( ?l ) { ( ontology:architectural_structure ) ( ontology:terrain ) } } } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q21
P36
Q56061
USER
Which administrative territory is known as the capital of England ?
(Q21,P36,c(Q56061))
action filter_type
action find
entity Q21
relation P36
type Q56061
['Q21', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q56061 . resource:Q21 property:P36 ?o }
England
action filter_type
action find
entity England
relation capital
type administrative territorial entity
['England', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:administrative_territorial_entity . resource:England property:capital ?o }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q21,P36,c(Q56061))
action filter_type
action find
entity Q21
relation P36
type Q56061
[ANSWER] is known as the capital of England
['Q21', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q56061 . resource:Q21 property:P36 ?o }
London
London is known as the capital of England
London
action filter_type
action find
entity England
relation capital
type administrative territorial entity
['England', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:administrative_territorial_entity . resource:England property:capital ?o }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q21
P551
Q502895
USER
Which people have residence at England ?
(c(Q502895),P551,Q21)
action filter_type
action find_reverse
entity Q21
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q21']
SELECT DISTINCT ?g WHERE { ?g property:P551 resource:Q21 . ?g rdf:type ontology:Q502895 }
England
action filter_type
action find_reverse
entity England
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'England']
SELECT DISTINCT ?g WHERE { ?g property:residence resource:England . ?g rdf:type ontology:common_name }
[]
common name
Q7085 Q12908 Q935
SYSTEM
Niels Bohr, George Soros, Isaac Newton
Q19721999 Q7085 Q17297597 Q15632055 Q1331681 Q12908 Q189144 Q544951 Q7086769 Q171363 Q27740159 Q3198512 Q21151748 Q16065895 Q21069418 Q6097409 Q117139 Q8006910 Q2877725 Q15429884 Q213712 Q14277 Q76948 Q6914744 Q19629253 Q935 Q5538701 Q20810758
(c(Q502895),P551,Q21)
action filter_type
action find_reverse
entity Q21
relation P551
type Q502895
[ANSWERS] have residence at England
[{'concept': 'Q502895'}, 'P551', 'Q21']
SELECT DISTINCT ?g WHERE { ?g property:P551 resource:Q21 . ?g rdf:type ontology:Q502895 }
Coco Piris Niels Bohr Charles de Coux Christie Fuller Ella Briggs George Soros Walter Raleigh Moshoeshoe II of Lesotho Oli Thompson Viggo Mortensen Barbara Ferland Gundulf Rosemary Stjernstedt Maria Caterina Rosalbina Caradori-Allan Frédéric Albrecht Ivan Sansom Wiz Khalifa William Close Baba de Faucigny-Lucinge Mary Elizabeth Hawker Rudolf von Laban William Herschel Caroline Herschel Mortimer Menpes Jacques Dessalines Isaac Newton George E. A. Hallett Leopold William Jerome Fane De Salis
Niels Bohr, George Soros and Isaac Newton have residence at England
Niels Bohr George Soros Isaac Newton
action filter_type
action find_reverse
entity England
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'England']
SELECT DISTINCT ?g WHERE { ?g property:residence resource:England . ?g rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q12908
P802
Q502895
USER
Who was a notable student of that one ?
(c(Q502895),P802,Q12908)
action filter_type
action find_reverse
entity Q12908
relation P802
type Q502895
[{'concept': 'Q502895'}, 'P802', 'Q12908']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . ?c property:P802 resource:Q12908 }
George Soros
action filter_type
action find_reverse
entity George Soros
relation student
type common name
[{'concept': 'common name'}, 'student', 'George Soros']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . ?c property:student resource:George_Soros }
[]
common name
Clarification for simple ques.
Q935
SYSTEM
Did you mean Isaac Newton ?
Q7085 Q12908 Q935
(c(Q502895),P802,Q7085) (c(Q502895),P802,Q12908) (c(Q502895),P802,Q935)
[ANSWER]
[{'concept': 'Q502895'}, 'P802', 'Q7085'] [{'concept': 'Q502895'}, 'P802', 'Q12908'] [{'concept': 'Q502895'}, 'P802', 'Q935']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . ?c property:P802 resource:Q12908 }
Niels Bohr George Soros Isaac Newton
Did you mean Isaac Newton ?
Isaac Newton
[{'concept': 'common name'}, 'student', 'Niels Bohr'] [{'concept': 'common name'}, 'student', 'George Soros'] [{'concept': 'common name'}, 'student', 'Isaac Newton']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . ?c property:student resource:George_Soros }
[]
Simple Question (Coreferenced)
USER
No, I meant George Soros. Could you tell me the answer for that?
(c(Q502895),P802,Q12908)
Q12908
[{'concept': 'Q502895'}, 'P802', 'Q12908']
[{'concept': 'common name'}, 'student', 'George Soros']
[]
Q81244
SYSTEM
Karl Popper
Q81244
(c(Q502895),P802,Q12908)
action filter_type
action find_reverse
entity Q12908
relation P802
type Q502895
Was a notable student of that one [ANSWER]
[{'concept': 'Q502895'}, 'P802', 'Q12908']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . ?c property:P802 resource:Q12908 }
Karl Popper
Was a notable student of that one Karl Popper
Karl Popper
action filter_type
action find_reverse
entity George Soros
relation student
type common name
[{'concept': 'common name'}, 'student', 'George Soros']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . ?c property:student resource:George_Soros }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q45
P840
Q15617994 Q838948 Q166142
USER
How many administrative territories are the narrative locations of greater number of works of art or applications than Portugal ?
(c(Q838948)|c(Q166142),P840,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q45
relation P840
type Q838948
type Q166142
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) ?v WHERE { ?p rdf:type ?g . VALUES ( ?g ) { ( ontology:Q838948 ) ( ontology:Q166142 ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { ?o property:P840 resource:Q45 . { { ?o rdf:type ontology:Q166142 } UNION { ?o rdf:type ontology:Q838948 } } } } . FILTER ( ?j > ?n ) }
Portugal
action count
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Portugal
relation narrative location
type work of art
type application
[[{'concept': 'work of art'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) ?v WHERE { ?p rdf:type ?g . VALUES ( ?g ) { ( ontology:work_of_art ) ( ontology:application ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { ?o property:narrative_location resource:Portugal . { { ?o rdf:type ontology:application } UNION { ?o rdf:type ontology:work_of_art } } } } . FILTER ( ?j > ?n ) }
[]
designation for an administrative territorial entity work of art application
SYSTEM
66
Q805 Q804 Q801 Q668 Q414 Q142 Q55 Q145 Q148 Q189 Q710 Q717 Q837 Q258 Q159 Q43 Q41 Q155 Q796 Q794 Q889 Q884 Q881 Q858 Q419 Q822 Q241 Q33 Q32 Q31 Q30 Q36 Q34 Q39 Q38 Q739 Q423 Q851 Q236 Q232 Q20 Q27 Q29 Q184 Q1028 Q227 Q96 Q17 Q1033 Q1030 Q191 Q298 Q750 Q212 Q218 Q14859 Q2742 Q79 Q77 Q774 Q817 Q810 Q1014 Q28 Q1952 Q869
(c(Q838948)|c(Q166142),P840,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q45
relation P840
type Q838948
type Q166142
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) ?v WHERE { ?p rdf:type ?g . VALUES ( ?g ) { ( ontology:Q838948 ) ( ontology:Q166142 ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { ?o property:P840 resource:Q45 . { { ?o rdf:type ontology:Q166142 } UNION { ?o rdf:type ontology:Q838948 } } } } . FILTER ( ?j > ?n ) }
Yemen Panama Israel India Argentina France Netherlands United Kingdom People's Republic of China Iceland Kiribati Venezuela Nepal South Africa Russia Turkey Greece Brazil Iraq Iran Afghanistan South Korea Vietnam Syria Peru Lebanon Cuba Finland Luxembourg Belgium United States of America Poland Sweden Switzerland Italy Colombia North Korea Saudi Arabia Montenegro Kazakhstan Norway Ireland Spain Belarus Morocco Azerbaijan Mexico Japan Nigeria Namibia Estonia Chile Bolivia Ukraine Romania Ansbach Münster Egypt Uruguay Guatemala Kuwait Jordan Liberia Hungary Nova Scotia Thailand
66
action count
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Portugal
relation narrative location
type work of art
type application
[[{'concept': 'work of art'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) ?v WHERE { ?p rdf:type ?g . VALUES ( ?g ) { ( ontology:work_of_art ) ( ontology:application ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { ?o property:narrative_location resource:Portugal . { { ?o rdf:type ontology:application } UNION { ?o rdf:type ontology:work_of_art } } } } . FILTER ( ?j > ?n ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q842
P840
Q15617994 Q838948 Q166142
USER
And also tell me about Oman?
(c(Q838948)|c(Q166142),P840,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q842
relation P840
type Q838948
type Q166142
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?c ) WHERE { VALUES ( ?o ) { ( ontology:Q838948 ) ( ontology:Q166142 ) } . ?k rdf:type ?o } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { ?s property:P840 resource:Q842 . { ?s rdf:type ?t . VALUES ( ?t ) { ( ontology:Q838948 ) ( ontology:Q166142 ) } } } } . FILTER ( ?c > ?g ) }
Oman
action count
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Oman
relation narrative location
type work of art
type application
[[{'concept': 'work of art'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?c ) WHERE { VALUES ( ?o ) { ( ontology:work_of_art ) ( ontology:application ) } . ?k rdf:type ?o } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { ?s property:narrative_location resource:Oman . { ?s rdf:type ?t . VALUES ( ?t ) { ( ontology:work_of_art ) ( ontology:application ) } } } } . FILTER ( ?c > ?g ) }
[]
designation for an administrative territorial entity work of art application
SYSTEM
66
Q805 Q804 Q801 Q668 Q414 Q142 Q55 Q145 Q148 Q189 Q710 Q717 Q837 Q258 Q159 Q43 Q41 Q155 Q796 Q794 Q889 Q884 Q881 Q858 Q419 Q822 Q241 Q33 Q32 Q31 Q30 Q36 Q34 Q39 Q38 Q739 Q423 Q851 Q236 Q232 Q20 Q27 Q29 Q184 Q1028 Q227 Q96 Q17 Q1033 Q1030 Q191 Q298 Q750 Q212 Q218 Q14859 Q2742 Q79 Q77 Q774 Q817 Q810 Q1014 Q28 Q1952 Q869
(c(Q838948)|c(Q166142),P840,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q842
relation P840
type Q838948
type Q166142
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?c ) WHERE { VALUES ( ?o ) { ( ontology:Q838948 ) ( ontology:Q166142 ) } . ?k rdf:type ?o } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { ?s property:P840 resource:Q842 . { ?s rdf:type ?t . VALUES ( ?t ) { ( ontology:Q838948 ) ( ontology:Q166142 ) } } } } . FILTER ( ?c > ?g ) }
Yemen Panama Israel India Argentina France Netherlands United Kingdom People's Republic of China Iceland Kiribati Venezuela Nepal South Africa Russia Turkey Greece Brazil Iraq Iran Afghanistan South Korea Vietnam Syria Peru Lebanon Cuba Finland Luxembourg Belgium United States of America Poland Sweden Switzerland Italy Colombia North Korea Saudi Arabia Montenegro Kazakhstan Norway Ireland Spain Belarus Morocco Azerbaijan Mexico Japan Nigeria Namibia Estonia Chile Bolivia Ukraine Romania Ansbach Münster Egypt Uruguay Guatemala Kuwait Jordan Liberia Hungary Nova Scotia Thailand
66
action count
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Oman
relation narrative location
type work of art
type application
[[{'concept': 'work of art'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?c ) WHERE { VALUES ( ?o ) { ( ontology:work_of_art ) ( ontology:application ) } . ?k rdf:type ?o } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { ?s property:narrative_location resource:Oman . { ?s rdf:type ?t . VALUES ( ?t ) { ( ontology:work_of_art ) ( ontology:application ) } } } } . FILTER ( ?c > ?g ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P725
Q502895 Q838948
USER
Which works of art did max number of people dub for ?
(c(Q838948),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q838948
type Q502895
[{'concept': 'Q838948'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?c ) { SELECT DISTINCT ?t ( COUNT ( ?z ) AS ?o ) WHERE { ?t property:P725 ?z . ?z rdf:type ontology:Q502895 . ?t rdf:type ontology:Q838948 } GROUP BY ?t } } . { SELECT DISTINCT ?s ( COUNT ( ?y ) AS ?q ) WHERE { ?s property:P725 ?y . ?s rdf:type ontology:Q838948 . ?y rdf:type ontology:Q502895 } GROUP BY ?s } . FILTER ( ?q = ?c ) }
action argmax
action find_tuple_counts
relation voice actor
type work of art
type common name
[{'concept': 'work of art'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?c ) { SELECT DISTINCT ?t ( COUNT ( ?z ) AS ?o ) WHERE { ?t property:voice_actor ?z . ?z rdf:type ontology:common_name . ?t rdf:type ontology:work_of_art } GROUP BY ?t } } . { SELECT DISTINCT ?s ( COUNT ( ?y ) AS ?q ) WHERE { ?s property:voice_actor ?y . ?s rdf:type ontology:work_of_art . ?y rdf:type ontology:common_name } GROUP BY ?s } . FILTER ( ?q = ?c ) }
[]
common name work of art
Q19263748
SYSTEM
The Anthem of the Heart
Q19263748
(c(Q838948),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q838948
type Q502895
Which works of art max number of people dubbed for
[{'concept': 'Q838948'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?c ) { SELECT DISTINCT ?t ( COUNT ( ?z ) AS ?o ) WHERE { ?t property:P725 ?z . ?z rdf:type ontology:Q502895 . ?t rdf:type ontology:Q838948 } GROUP BY ?t } } . { SELECT DISTINCT ?s ( COUNT ( ?y ) AS ?q ) WHERE { ?s property:P725 ?y . ?s rdf:type ontology:Q838948 . ?y rdf:type ontology:Q502895 } GROUP BY ?s } . FILTER ( ?q = ?c ) }
The Anthem of the Heart
Which works of art max number of people dubbed for
The Anthem of the Heart
action argmax
action find_tuple_counts
relation voice actor
type work of art
type common name
[{'concept': 'work of art'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?c ) { SELECT DISTINCT ?t ( COUNT ( ?z ) AS ?o ) WHERE { ?t property:voice_actor ?z . ?z rdf:type ontology:common_name . ?t rdf:type ontology:work_of_art } GROUP BY ?t } } . { SELECT DISTINCT ?s ( COUNT ( ?y ) AS ?q ) WHERE { ?s property:voice_actor ?y . ?s rdf:type ontology:work_of_art . ?y rdf:type ontology:common_name } GROUP BY ?s } . FILTER ( ?q = ?c ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29
P376
Q16889133
USER
Where is Spain located ?
(Q29,P376,c(Q16889133))
action filter_type
action find
entity Q29
relation P376
type Q16889133
['Q29', 'P376', {'concept': 'Q16889133'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q16889133 . resource:Q29 property:P376 ?c }
Spain
action filter_type
action find
entity Spain
relation located on astronomical body
type class
['Spain', 'located on astronomical body', {'concept': 'class'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:class . resource:Spain property:located_on_astronomical_body ?c }
[]
class
Q2
SYSTEM
Earth
Q2
(Q29,P376,c(Q16889133))
action filter_type
action find
entity Q29
relation P376
type Q16889133
Spain is located on [ANSWER]
['Q29', 'P376', {'concept': 'Q16889133'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q16889133 . resource:Q29 property:P376 ?c }
Earth
Spain is located on Earth
Earth
action filter_type
action find
entity Spain
relation located on astronomical body
type class
['Spain', 'located on astronomical body', {'concept': 'class'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:class . resource:Spain property:located_on_astronomical_body ?c }
[]