Simple Question (Direct)
Simple Question
Q11557583
P734
Q82799
USER
Who is associated with Ryūichi Hamaguchi ?
(Q11557583,P734,c(Q82799))
action filter_type
action find
entity Q11557583
relation P734
type Q82799
['Q11557583', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?x WHERE { resource:Q11557583 property:P734 ?x . ?x rdf:type ontology:Q82799 }
Ryūichi Hamaguchi
action filter_type
action find
entity Ryūichi Hamaguchi
relation family name
type name
['Ryūichi Hamaguchi', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?x WHERE { resource:Ryūichi_Hamaguchi property:family_name ?x . ?x rdf:type ontology:name }
[]
name
Q21494132
SYSTEM
Hamaguchi
Q21494132
(Q11557583,P734,c(Q82799))
action filter_type
action find
entity Q11557583
relation P734
type Q82799
[ANSWER] is associated with Ryūichi [ANSWER]
['Q11557583', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?x WHERE { resource:Q11557583 property:P734 ?x . ?x rdf:type ontology:Q82799 }
Hamaguchi
Hamaguchi is associated with Ryūichi Hamaguchi
Hamaguchi
action filter_type
action find
entity Ryūichi Hamaguchi
relation family name
type name
['Ryūichi Hamaguchi', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?x WHERE { resource:Ryūichi_Hamaguchi property:family_name ?x . ?x rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11557583
P108
Q3918
USER
Which university employs Ryūichi Hamaguchi ?
(Q11557583,P108,c(Q3918))
action filter_type
action find
entity Q11557583
relation P108
type Q3918
['Q11557583', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q3918 . resource:Q11557583 property:P108 ?w }
Ryūichi Hamaguchi
action filter_type
action find
entity Ryūichi Hamaguchi
relation employer
type university
['Ryūichi Hamaguchi', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:university . resource:Ryūichi_Hamaguchi property:employer ?w }
[]
university
Q7842
SYSTEM
University of Tokyo
Q7842
(Q11557583,P108,c(Q3918))
action filter_type
action find
entity Q11557583
relation P108
type Q3918
[ANSWER] employs Ryūichi Hamaguchi
['Q11557583', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q3918 . resource:Q11557583 property:P108 ?w }
University of Tokyo
University of Tokyo employs Ryūichi Hamaguchi
University of Tokyo
action filter_type
action find
entity Ryūichi Hamaguchi
relation employer
type university
['Ryūichi Hamaguchi', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:university . resource:Ryūichi_Hamaguchi property:employer ?w }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7836141
Q3918
USER
And also tell me about Travers Twiss?
(Q7836141,P108,c(Q3918))
action filter_type
action find
entity Q7836141
relation P108
type Q3918
['Q7836141', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?o WHERE { resource:Q7836141 property:P108 ?o . ?o rdf:type ontology:Q3918 }
Travers Twiss
action filter_type
action find
entity Travers Twiss
relation employer
type university
['Travers Twiss', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?o WHERE { resource:Travers_Twiss property:employer ?o . ?o rdf:type ontology:university }
[]
university
Q34433 Q245247
SYSTEM
University of Oxford, King's College London
Q34433 Q245247
(Q7836141,P108,c(Q3918))
action filter_type
action find
entity Q7836141
relation P108
type Q3918
[ANSWERS]
['Q7836141', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?o WHERE { resource:Q7836141 property:P108 ?o . ?o rdf:type ontology:Q3918 }
University of Oxford King's College London
University of Oxford King's College London
action filter_type
action find
entity Travers Twiss
relation employer
type university
['Travers Twiss', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?o WHERE { resource:Travers_Twiss property:employer ?o . ?o rdf:type ontology:university }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q258979 Q34433
P495 P17
Q15617994
USER
Which administrative territories are University of Oxford a part of and are the origin of Jane Eyre ?
AND((Q34433,P17,c(Q15617994)), (Q258979,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q34433
relation P17
action find
entity Q258979
relation P495
type Q15617994
{'AND': [['Q34433', 'P17', {'concept': 'Q15617994'}], ['Q258979', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { resource:Q34433 property:P17 ?k . resource:Q258979 property:P495 ?k . ?k rdf:type ontology:Q15617994 }
Jane Eyre University of Oxford
action filter_type
action intersection
action find
entity University of Oxford
relation country
action find
entity Jane Eyre
relation country of origin
type designation for an administrative territorial entity
{'AND': [['University of Oxford', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Jane Eyre', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { resource:University_of_Oxford property:country ?k . resource:Jane_Eyre property:country_of_origin ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
AND((Q34433,P17,c(Q15617994)), (Q258979,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q34433
relation P17
action find
entity Q258979
relation P495
type Q15617994
[ANSWER] is University of Oxford a part of and is the origin of Jane Eyre
{'AND': [['Q34433', 'P17', {'concept': 'Q15617994'}], ['Q258979', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { resource:Q34433 property:P17 ?k . resource:Q258979 property:P495 ?k . ?k rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is University of Oxford a part of and is the origin of Jane Eyre
United Kingdom
action filter_type
action intersection
action find
entity University of Oxford
relation country
action find
entity Jane Eyre
relation country of origin
type designation for an administrative territorial entity
{'AND': [['University of Oxford', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Jane Eyre', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { resource:University_of_Oxford property:country ?k . resource:Jane_Eyre property:country_of_origin ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q145 Q23310073
P27
Q502895
USER
Is Onur Tuna a native of that administrative territory ?
(Q23310073,P27,Q145)
action is_in
entity Q23310073
action find
entity Q145
relation P27
['Q23310073', 'P27', 'Q145']
ASK WHERE { resource:Q145 property:P27 resource:Q23310073 }
United Kingdom Onur Tuna
action is_in
entity Onur Tuna
action find
entity United Kingdom
relation country of citizenship
['Onur Tuna', 'country of citizenship', 'United Kingdom']
ASK WHERE { resource:United_Kingdom property:country_of_citizenship resource:Onur_Tuna }
[]
common name
SYSTEM
NO
(Q23310073,P27,Q145)
action is_in
entity Q23310073
action find
entity Q145
relation P27
[ANSWER]
['Q23310073', 'P27', 'Q145']
ASK WHERE { resource:Q145 property:P27 resource:Q23310073 }
No
action is_in
entity Onur Tuna
action find
entity United Kingdom
relation country of citizenship
['Onur Tuna', 'country of citizenship', 'United Kingdom']
ASK WHERE { resource:United_Kingdom property:country_of_citizenship resource:Onur_Tuna }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q11557583 Q7208334
P19
Q56061
USER
Is Pointe au Baril, Ontario the birthplace of Ryūichi Hamaguchi ?
(Q11557583,P19,Q7208334)
action is_in
entity Q7208334
action find
entity Q11557583
relation P19
['Q11557583', 'P19', 'Q7208334']
ASK WHERE { resource:Q11557583 property:P19 resource:Q7208334 }
Ryūichi Hamaguchi Pointe au Baril, Ontario
action is_in
entity Pointe au Baril, Ontario
action find
entity Ryūichi Hamaguchi
relation place of birth
['Ryūichi Hamaguchi', 'place of birth', 'Pointe au Baril, Ontario']
ASK WHERE { resource:Ryūichi_Hamaguchi property:place_of_birth resource:Pointe_au_Baril,_Ontario }
[]
administrative territorial entity
SYSTEM
NO
(Q11557583,P19,Q7208334)
action is_in
entity Q7208334
action find
entity Q11557583
relation P19
[ANSWER]
['Q11557583', 'P19', 'Q7208334']
ASK WHERE { resource:Q11557583 property:P19 resource:Q7208334 }
No
action is_in
entity Pointe au Baril, Ontario
action find
entity Ryūichi Hamaguchi
relation place of birth
['Ryūichi Hamaguchi', 'place of birth', 'Pointe au Baril, Ontario']
ASK WHERE { resource:Ryūichi_Hamaguchi property:place_of_birth resource:Pointe_au_Baril,_Ontario }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P36
Q486972 Q515 Q15617994
USER
How many administrative territories consists of atleast 1 human settlements and cities as their capital ?
(c(Q15617994),P36,c(Q486972)|c(Q515))
action count
action atleast
action union
action find_tuple_counts
relation P36
type Q15617994
type Q486972
action find_tuple_counts
relation P36
type Q15617994
type Q515
value 1
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q486972'}, {'concept': 'Q515'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?v ) WHERE { { ?n rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q515 . ?n property:P36 ?x } UNION { ?n property:P36 ?x . ?x rdf:type ontology:Q486972 . ?n rdf:type ontology:Q15617994 } } GROUP BY ?n } . FILTER ( ?v >= 1 ) }
action count
action atleast
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type human settlement
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'human settlement'}, {'concept': 'city'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?v ) WHERE { { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:city . ?n property:capital ?x } UNION { ?n property:capital ?x . ?x rdf:type ontology:human_settlement . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?n } . FILTER ( ?v >= 1 ) }
[]
human settlement city designation for an administrative territorial entity
SYSTEM
74
Q2991354 Q414 Q1111401 Q252 Q399 Q258 Q155 Q736 Q16628524 Q843 Q2007 Q1050 Q12717 Q298 Q115 Q114 Q541589 Q696651 Q948 Q1268811 Q702 Q833 Q790 Q796 Q794 Q889 Q884 Q881 Q541095 Q1037 Q1033 Q1030 Q662056 Q30831 Q878 Q46130 Q3044714 Q1951 Q2236821 Q492437 Q492430 Q711 Q717 Q1948 Q27 Q225 Q47261 Q347 Q965 Q963 Q1008 Q72670 Q568751 Q2150573 Q12536 Q3342 Q842 Q3240 Q4712 Q924 Q928 Q851 Q222 Q228 Q3462133 Q17 Q3846423 Q3207 Q212 Q211 Q218 Q974 Q1019 Q1011
(c(Q15617994),P36,c(Q486972)|c(Q515))
action count
action atleast
action union
action find_tuple_counts
relation P36
type Q15617994
type Q486972
action find_tuple_counts
relation P36
type Q15617994
type Q515
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q486972'}, {'concept': 'Q515'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?v ) WHERE { { ?n rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q515 . ?n property:P36 ?x } UNION { ?n property:P36 ?x . ?x rdf:type ontology:Q486972 . ?n rdf:type ontology:Q15617994 } } GROUP BY ?n } . FILTER ( ?v >= 1 ) }
Aquiles Serdán Municipality Argentina Kispest District Indonesia Armenia South Africa Brazil Ecuador San Salvador el Verde municipality Pakistan Northwest Territories Swaziland Bas-Rhin Chile Ethiopia Kenya Ems-Supérieur Saxe-Eisenach Tunisia Dyle Federated States of Micronesia Malaysia Haiti Iraq Iran Afghanistan South Korea Vietnam Rhin-et-Moselle Rwanda Nigeria Namibia Cushamen Department Red Sea Governorate United Arab Emirates Rhône Ouest Alberta Rhône-et-Loire Bouches-du-Weser Bouches-de-l'Elbe Mongolia Venezuela Manitoba Ireland Bosnia and Herzegovina Duchy of Bavaria Liechtenstein Burkina Faso Botswana Côte d'Ivoire Batumi Oblast Mont-Tonnerre Unterelsaß Abbasid caliphate Côte-d'Or Oman Bouches-du-Rhône Duchy of Burgundy Tanzania Philippines Saudi Arabia Albania Andorra Saxe-Coburg and Gotha Japan Viesca Municipality Aude Ukraine Latvia Romania Democratic Republic of the Congo Madagascar Cape Verde
74
action count
action atleast
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type human settlement
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'human settlement'}, {'concept': 'city'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?v ) WHERE { { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:city . ?n property:capital ?x } UNION { ?n property:capital ?x . ?x rdf:type ontology:human_settlement . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?n } . FILTER ( ?v >= 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q490924 Q7836141
P47 P27
Q15617994
USER
Which administrative territories are the native countriesof Travers Twiss or are adjacent to Misilmeri ?
OR((Q7836141,P27,c(Q15617994)), (Q490924,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q7836141
relation P27
action find
entity Q490924
relation P47
type Q15617994
{'OR': [['Q7836141', 'P27', {'concept': 'Q15617994'}], ['Q490924', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q7836141 property:P27 ?e } UNION { resource:Q490924 property:P47 ?e } } . ?e rdf:type ontology:Q15617994 }
Misilmeri Travers Twiss
action filter_type
action union
action find
entity Travers Twiss
relation country of citizenship
action find
entity Misilmeri
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Travers Twiss', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Misilmeri', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Travers_Twiss property:country_of_citizenship ?e } UNION { resource:Misilmeri property:shares_border_with ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q490801 Q496859 Q490936 Q145 Q496908 Q27000 Q4971 Q491398
SYSTEM
Santa Flavia, Casteldaccia, Belmonte Mezzagno, United Kingdom, Bolognetta, Bagheria, Villabate, Marineo
Q490801 Q496859 Q490936 Q145 Q496908 Q27000 Q4971 Q491398
OR((Q7836141,P27,c(Q15617994)), (Q490924,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q7836141
relation P27
action find
entity Q490924
relation P47
type Q15617994
[ANSWERS] are the native countriesof Travers Twiss or are adjacent to Misilmeri
{'OR': [['Q7836141', 'P27', {'concept': 'Q15617994'}], ['Q490924', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q7836141 property:P27 ?e } UNION { resource:Q490924 property:P47 ?e } } . ?e rdf:type ontology:Q15617994 }
Santa Flavia Casteldaccia Belmonte Mezzagno United Kingdom Bolognetta Bagheria Villabate Marineo
Santa Flavia, Casteldaccia, Belmonte Mezzagno, United Kingdom, Bolognetta, Bagheria, Villabate and Marineo are the native countriesof Travers Twiss or are adjacent to Misilmeri
Santa Flavia Casteldaccia Belmonte Mezzagno United Kingdom Bolognetta Bagheria Villabate Marineo
action filter_type
action union
action find
entity Travers Twiss
relation country of citizenship
action find
entity Misilmeri
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Travers Twiss', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Misilmeri', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Travers_Twiss property:country_of_citizenship ?e } UNION { resource:Misilmeri property:shares_border_with ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]