Simple Question (Direct)
Simple Question
Q6323470
P735
Q82799
USER
Which name is K. K. Shetty known by ?
(Q6323470,P735,c(Q82799))
action filter_type
action find
entity Q6323470
relation P735
type Q82799
['Q6323470', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?h WHERE { resource:Q6323470 property:P735 ?h . ?h rdf:type ontology:Q82799 }
K. K. Shetty
action filter_type
action find
entity K. K. Shetty
relation given name
type name
['K. K. Shetty', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?h WHERE { resource:K._K._Shetty property:given_name ?h . ?h rdf:type ontology:name }
[]
name
Q19803508
SYSTEM
K.
Q19803508
(Q6323470,P735,c(Q82799))
action filter_type
action find
entity Q6323470
relation P735
type Q82799
Is [ANSWER] [ANSWER] Shetty known by
['Q6323470', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?h WHERE { resource:Q6323470 property:P735 ?h . ?h rdf:type ontology:Q82799 }
K.
Is K. K. Shetty known by
K.
action filter_type
action find
entity K. K. Shetty
relation given name
type name
['K. K. Shetty', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?h WHERE { resource:K._K._Shetty property:given_name ?h . ?h rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6323470
P102
Q7210356
USER
Which party does that person belong to ?
(Q19803508,P102,c(Q7210356))
action filter_type
action find
entity Q6323470
relation P102
type Q7210356
['Q19803508', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q7210356 . resource:Q6323470 property:P102 ?n }
K. K. Shetty
action filter_type
action find
entity K. K. Shetty
relation member of political party
type political organization
['K.', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:political_organization . resource:K._K._Shetty property:member_of_political_party ?n }
[]
political organization
Q10225
SYSTEM
Indian National Congress
Q10225
(Q19803508,P102,c(Q7210356))
action filter_type
action find
entity Q6323470
relation P102
type Q7210356
That person belongs to [ANSWER]
['Q19803508', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q7210356 . resource:Q6323470 property:P102 ?n }
Indian National Congress
That person belongs to Indian National Congress
Indian National Congress
action filter_type
action find
entity K. K. Shetty
relation member of political party
type political organization
['K.', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:political_organization . resource:K._K._Shetty property:member_of_political_party ?n }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6323470
P27
Q15617994
USER
Which administrative territory is that person an inhabitant of ?
(Q10225,P27,c(Q15617994))
action filter_type
action find
entity Q6323470
relation P27
type Q15617994
['Q10225', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q6323470 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
K. K. Shetty
action filter_type
action find
entity K. K. Shetty
relation country of citizenship
type designation for an administrative territorial entity
['Indian National Congress', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:K._K._Shetty property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q668
SYSTEM
India
Q668
(Q10225,P27,c(Q15617994))
action filter_type
action find
entity Q6323470
relation P27
type Q15617994
The [ANSWER] is that person an inhabitant of
['Q10225', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q6323470 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
India
The India is that person an inhabitant of
India
action filter_type
action find
entity K. K. Shetty
relation country of citizenship
type designation for an administrative territorial entity
['Indian National Congress', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:K._K._Shetty property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4718615 Q6323470
P39 P106
Q12737077
USER
Which occupations were the positions occupied by K. K. Shetty or are the job of Alexander Clunes Sheriff ?
OR((Q6323470,P39,c(Q12737077)), (Q4718615,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q6323470
relation P39
action find
entity Q4718615
relation P106
type Q12737077
{'OR': [['Q6323470', 'P39', {'concept': 'Q12737077'}], ['Q4718615', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q12737077 . { { resource:Q4718615 property:P106 ?s } UNION { resource:Q6323470 property:P39 ?s } } }
Alexander Clunes Sheriff K. K. Shetty
action filter_type
action union
action find
entity K. K. Shetty
relation position held
action find
entity Alexander Clunes Sheriff
relation occupation
type occupation
{'OR': [['K. K. Shetty', 'position held', {'concept': 'occupation'}], ['Alexander Clunes Sheriff', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:occupation . { { resource:Alexander_Clunes_Sheriff property:occupation ?s } UNION { resource:K._K._Shetty property:position_held ?s } } }
[]
occupation
Q16556694 Q82955
SYSTEM
member of the Lok Sabha, politician
Q16556694 Q82955
OR((Q6323470,P39,c(Q12737077)), (Q4718615,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q6323470
relation P39
action find
entity Q4718615
relation P106
type Q12737077
The [ANSWERS] the positions occupied by K. Shetty or are the job of Alexander Clunes Sheriff
{'OR': [['Q6323470', 'P39', {'concept': 'Q12737077'}], ['Q4718615', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q12737077 . { { resource:Q4718615 property:P106 ?s } UNION { resource:Q6323470 property:P39 ?s } } }
member of the Lok Sabha politician
The member of the Lok Sabha and politician the positions occupied by K. Shetty or are the job of Alexander Clunes Sheriff
member of the Lok Sabha politician
action filter_type
action union
action find
entity K. K. Shetty
relation position held
action find
entity Alexander Clunes Sheriff
relation occupation
type occupation
{'OR': [['K. K. Shetty', 'position held', {'concept': 'occupation'}], ['Alexander Clunes Sheriff', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:occupation . { { resource:Alexander_Clunes_Sheriff property:occupation ?s } UNION { resource:K._K._Shetty property:position_held ?s } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4718615
P1412
Q34770
USER
Which language is Alexander Clunes Sheriff capable of writing?
(Q16556694,P1412,c(Q34770)) (Q82955,P1412,c(Q34770))
action filter_type
action find
entity Q4718615
relation P1412
type Q34770
['Q16556694', 'P1412', {'concept': 'Q34770'}] ['Q82955', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { resource:Q4718615 property:P1412 ?x . ?x rdf:type ontology:Q34770 }
Alexander Clunes Sheriff
action filter_type
action find
entity Alexander Clunes Sheriff
relation languages spoken, written or signed
type language
['member of the Lok Sabha', 'languages spoken, written or signed', {'concept': 'language'}] ['politician', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { resource:Alexander_Clunes_Sheriff property:languages_spoken,_written_or_signed ?x . ?x rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q16556694,P1412,c(Q34770)) (Q82955,P1412,c(Q34770))
action filter_type
action find
entity Q4718615
relation P1412
type Q34770
[ANSWER] is Alexander Clunes Sheriff capable of writing
['Q16556694', 'P1412', {'concept': 'Q34770'}] ['Q82955', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { resource:Q4718615 property:P1412 ?x . ?x rdf:type ontology:Q34770 }
English
English is Alexander Clunes Sheriff capable of writing
English
action filter_type
action find
entity Alexander Clunes Sheriff
relation languages spoken, written or signed
type language
['member of the Lok Sabha', 'languages spoken, written or signed', {'concept': 'language'}] ['politician', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { resource:Alexander_Clunes_Sheriff property:languages_spoken,_written_or_signed ?x . ?x rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4718615
P937
Q56061
USER
Which is the work location of that person ?
(Q1860,P937,c(Q56061))
action filter_type
action find
entity Q4718615
relation P937
type Q56061
['Q1860', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q4718615 property:P937 ?o . ?o rdf:type ontology:Q56061 }
Alexander Clunes Sheriff
action filter_type
action find
entity Alexander Clunes Sheriff
relation work location
type administrative territorial entity
['English', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Alexander_Clunes_Sheriff property:work_location ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q1860,P937,c(Q56061))
action filter_type
action find
entity Q4718615
relation P937
type Q56061
The work location of that person is in [ANSWER]
['Q1860', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q4718615 property:P937 ?o . ?o rdf:type ontology:Q56061 }
London
The work location of that person is in London
London
action filter_type
action find
entity Alexander Clunes Sheriff
relation work location
type administrative territorial entity
['English', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Alexander_Clunes_Sheriff property:work_location ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P30
Q2221906 Q56061
USER
Which administrative territories are included in greater number of geographic locations than that administrative territory ?
(c(Q56061),P30,c(Q2221906))
action greater
action find_tuple_counts
relation P30
type Q56061
type Q2221906
action count
action filter_type
action find
entity Q84
relation P30
type Q56061
[{'concept': 'Q56061'}, 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?k ) AS ?t ) WHERE { ?d property:P30 ?k . ?d rdf:type ontology:Q56061 . ?k rdf:type ontology:Q2221906 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { ?w rdf:type ontology:Q56061 . resource:Q84 property:P30 ?w } } . FILTER ( ?t > ?c ) }
action greater
action find_tuple_counts
relation continent
type administrative territorial entity
type geographic location
action count
action filter_type
action find
entity London
relation continent
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?k ) AS ?t ) WHERE { ?d property:continent ?k . ?d rdf:type ontology:administrative_territorial_entity . ?k rdf:type ontology:geographic_location } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { ?w rdf:type ontology:administrative_territorial_entity . resource:London property:continent ?w } } . FILTER ( ?t > ?c ) }
[]
geographic location administrative territorial entity
Q458
SYSTEM
European Union
Q458
(c(Q56061),P30,c(Q2221906))
action greater
action find_tuple_counts
relation P30
type Q56061
type Q2221906
action count
action filter_type
action find
entity Q84
relation P30
type Q56061
The [ANSWER] is included in greater number of geographic locations than that administrative territory
[{'concept': 'Q56061'}, 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?k ) AS ?t ) WHERE { ?d property:P30 ?k . ?d rdf:type ontology:Q56061 . ?k rdf:type ontology:Q2221906 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { ?w rdf:type ontology:Q56061 . resource:Q84 property:P30 ?w } } . FILTER ( ?t > ?c ) }
European Union
The European Union is included in greater number of geographic locations than that administrative territory
European Union
action greater
action find_tuple_counts
relation continent
type administrative territorial entity
type geographic location
action count
action filter_type
action find
entity London
relation continent
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?k ) AS ?t ) WHERE { ?d property:continent ?k . ?d rdf:type ontology:administrative_territorial_entity . ?k rdf:type ontology:geographic_location } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { ?w rdf:type ontology:administrative_territorial_entity . resource:London property:continent ?w } } . FILTER ( ?t > ?c ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q38 Q668
P463
Q484652
USER
Which international organizations were India and Italy a member of ?
AND((Q668,P463,c(Q484652)), (Q38,P463,c(Q484652)))
action filter_type
action intersection
action find
entity Q668
relation P463
action find
entity Q38
relation P463
type Q484652
{'AND': [['Q668', 'P463', {'concept': 'Q484652'}], ['Q38', 'P463', {'concept': 'Q484652'}]]}
SELECT DISTINCT ?u WHERE { resource:Q668 property:P463 ?u . resource:Q38 property:P463 ?u . ?u rdf:type ontology:Q484652 }
Italy India
action filter_type
action intersection
action find
entity India
relation member of
action find
entity Italy
relation member of
type international organization
{'AND': [['India', 'member of', {'concept': 'international organization'}], ['Italy', 'member of', {'concept': 'international organization'}]]}
SELECT DISTINCT ?u WHERE { resource:India property:member_of ?u . resource:Italy property:member_of ?u . ?u rdf:type ontology:international_organization }
[]
international organization
Q1065 Q19771 Q188822 Q1043527
SYSTEM
United Nations, G20, Asian Development Bank, Multilateral Investment Guarantee Agency
Q1065 Q19771 Q188822 Q1043527
AND((Q668,P463,c(Q484652)), (Q38,P463,c(Q484652)))
action filter_type
action intersection
action find
entity Q668
relation P463
action find
entity Q38
relation P463
type Q484652
[ANSWERS] were India and Italy a member of
{'AND': [['Q668', 'P463', {'concept': 'Q484652'}], ['Q38', 'P463', {'concept': 'Q484652'}]]}
SELECT DISTINCT ?u WHERE { resource:Q668 property:P463 ?u . resource:Q38 property:P463 ?u . ?u rdf:type ontology:Q484652 }
United Nations G20 Asian Development Bank Multilateral Investment Guarantee Agency
United Nations, G20, Asian Development Bank and Multilateral Investment Guarantee Agency were India and Italy a member of
United Nations G20 Asian Development Bank Multilateral Investment Guarantee Agency
action filter_type
action intersection
action find
entity India
relation member of
action find
entity Italy
relation member of
type international organization
{'AND': [['India', 'member of', {'concept': 'international organization'}], ['Italy', 'member of', {'concept': 'international organization'}]]}
SELECT DISTINCT ?u WHERE { resource:India property:member_of ?u . resource:Italy property:member_of ?u . ?u rdf:type ontology:international_organization }
[]
Clarification
Simple Question|Single Entity|Indirect
Q188822
P108
Q502895
USER
What are the name of people who works for that international organization ?
(c(Q502895),P108,Q188822)
action filter_type
action find_reverse
entity Q188822
relation P108
type Q502895
[{'concept': 'Q502895'}, 'P108', 'Q188822']
SELECT DISTINCT ?q WHERE { ?q property:P108 resource:Q188822 . ?q rdf:type ontology:Q502895 }
Asian Development Bank
action filter_type
action find_reverse
entity Asian Development Bank
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'Asian Development Bank']
SELECT DISTINCT ?q WHERE { ?q property:employer resource:Asian_Development_Bank . ?q rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q1065
SYSTEM
Did you mean United Nations ?
Q1065 Q19771 Q188822 Q1043527
(c(Q502895),P108,Q1065) (c(Q502895),P108,Q19771) (c(Q502895),P108,Q188822) (c(Q502895),P108,Q1043527)
[ANSWER]
[{'concept': 'Q502895'}, 'P108', 'Q1065'] [{'concept': 'Q502895'}, 'P108', 'Q19771'] [{'concept': 'Q502895'}, 'P108', 'Q188822'] [{'concept': 'Q502895'}, 'P108', 'Q1043527']
SELECT DISTINCT ?q WHERE { ?q property:P108 resource:Q188822 . ?q rdf:type ontology:Q502895 }
United Nations G20 Asian Development Bank Multilateral Investment Guarantee Agency
Did you mean United Nations ?
United Nations
[{'concept': 'common name'}, 'employer', 'United Nations'] [{'concept': 'common name'}, 'employer', 'G20'] [{'concept': 'common name'}, 'employer', 'Asian Development Bank'] [{'concept': 'common name'}, 'employer', 'Multilateral Investment Guarantee Agency']
SELECT DISTINCT ?q WHERE { ?q property:employer resource:Asian_Development_Bank . ?q rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Asian Development Bank. Could you tell me the answer for that?
(c(Q502895),P108,Q188822)
Q188822
[{'concept': 'Q502895'}, 'P108', 'Q188822']
[{'concept': 'common name'}, 'employer', 'Asian Development Bank']
[]
Q90654 Q105347
SYSTEM
Richard Werner, Marcel Fratzscher
Q90654 Q105347
(c(Q502895),P108,Q188822)
action filter_type
action find_reverse
entity Q188822
relation P108
type Q502895
The name of people works for that international organization are [ANSWERS]
[{'concept': 'Q502895'}, 'P108', 'Q188822']
SELECT DISTINCT ?q WHERE { ?q property:P108 resource:Q188822 . ?q rdf:type ontology:Q502895 }
Richard Werner Marcel Fratzscher
The name of people works for that international organization are Richard Werner and Marcel Fratzscher
Richard Werner Marcel Fratzscher
action filter_type
action find_reverse
entity Asian Development Bank
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'Asian Development Bank']
SELECT DISTINCT ?q WHERE { ?q property:employer resource:Asian_Development_Bank . ?q rdf:type ontology:common_name }
[]