Simple Question (Direct)
Simple Question
Q5616194
P1412
Q34770
USER
Which language does Guillermo Madrigal speak in ?
(Q5616194,P1412,c(Q34770))
action filter_type
action find
entity Q5616194
relation P1412
type Q34770
['Q5616194', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?o WHERE { resource:Q5616194 property:P1412 ?o . ?o rdf:type ontology:Q34770 }
Guillermo Madrigal
action filter_type
action find
entity Guillermo Madrigal
relation languages spoken, written or signed
type language
['Guillermo Madrigal', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?o WHERE { resource:Guillermo_Madrigal property:languages_spoken,_written_or_signed ?o . ?o rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q5616194,P1412,c(Q34770))
action filter_type
action find
entity Q5616194
relation P1412
type Q34770
Guillermo Madrigal speaks in [ANSWER]
['Q5616194', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?o WHERE { resource:Q5616194 property:P1412 ?o . ?o rdf:type ontology:Q34770 }
Spanish
Guillermo Madrigal speaks in Spanish
Spanish
action filter_type
action find
entity Guillermo Madrigal
relation languages spoken, written or signed
type language
['Guillermo Madrigal', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?o WHERE { resource:Guillermo_Madrigal property:languages_spoken,_written_or_signed ?o . ?o rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5616194
P641
Q349
USER
Which sport did Guillermo Madrigal participate in ?
(Q5616194,P641,c(Q349))
action filter_type
action find
entity Q5616194
relation P641
type Q349
['Q5616194', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?b WHERE { resource:Q5616194 property:P641 ?b . ?b rdf:type ontology:Q349 }
Guillermo Madrigal
action filter_type
action find
entity Guillermo Madrigal
relation sport
type sport
['Guillermo Madrigal', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?b WHERE { resource:Guillermo_Madrigal property:sport ?b . ?b rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q5616194,P641,c(Q349))
action filter_type
action find
entity Q5616194
relation P641
type Q349
Guillermo Madrigal participated in [ANSWER]
['Q5616194', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?b WHERE { resource:Q5616194 property:P641 ?b . ?b rdf:type ontology:Q349 }
association football
Guillermo Madrigal participated in association football
association football
action filter_type
action find
entity Guillermo Madrigal
relation sport
type sport
['Guillermo Madrigal', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?b WHERE { resource:Guillermo_Madrigal property:sport ?b . ?b rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5616194
P106
Q12737077
USER
What is the job of Guillermo Madrigal ?
(Q5616194,P106,c(Q12737077))
action filter_type
action find
entity Q5616194
relation P106
type Q12737077
['Q5616194', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q12737077 . resource:Q5616194 property:P106 ?w }
Guillermo Madrigal
action filter_type
action find
entity Guillermo Madrigal
relation occupation
type occupation
['Guillermo Madrigal', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:occupation . resource:Guillermo_Madrigal property:occupation ?w }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q5616194,P106,c(Q12737077))
action filter_type
action find
entity Q5616194
relation P106
type Q12737077
The job of Guillermo Madrigal is an [ANSWER]
['Q5616194', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q12737077 . resource:Q5616194 property:P106 ?w }
association football player
The job of Guillermo Madrigal is an association football player
association football player
action filter_type
action find
entity Guillermo Madrigal
relation occupation
type occupation
['Guillermo Madrigal', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:occupation . resource:Guillermo_Madrigal property:occupation ?w }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5616194
P27
Q15617994
USER
Which administrative territory is Guillermo Madrigal a civilian of ?
(Q5616194,P27,c(Q15617994))
action filter_type
action find
entity Q5616194
relation P27
type Q15617994
['Q5616194', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q5616194 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Guillermo Madrigal
action filter_type
action find
entity Guillermo Madrigal
relation country of citizenship
type designation for an administrative territorial entity
['Guillermo Madrigal', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Guillermo_Madrigal property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q96
SYSTEM
Mexico
Q96
(Q5616194,P27,c(Q15617994))
action filter_type
action find
entity Q5616194
relation P27
type Q15617994
[ANSWER] is Guillermo Madrigal a civilian of
['Q5616194', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q5616194 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Mexico
Mexico is Guillermo Madrigal a civilian of
Mexico
action filter_type
action find
entity Guillermo Madrigal
relation country of citizenship
type designation for an administrative territorial entity
['Guillermo Madrigal', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Guillermo_Madrigal property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q15617994 Q1048835 Q15617994
USER
How many administrative territories have tactful political relations with atmost 32 administrative territories and political territories ?
(c(Q15617994),P530,c(Q15617994)|c(Q1048835))
action count
action atmost
action union
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 32
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?x ) WHERE { VALUES ( ?c ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?g rdf:type ?c } GROUP BY ?b } . FILTER ( ?x <= 32 ) }
action count
action atmost
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 32
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?x ) WHERE { VALUES ( ?c ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?g rdf:type ?c } GROUP BY ?b } . FILTER ( ?x <= 32 ) }
[]
designation for an administrative territorial entity political territorial entity designation for an administrative territorial entity
SYSTEM
157
Q702 Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994)|c(Q1048835))
action count
action atmost
action union
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 32
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?x ) WHERE { VALUES ( ?c ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?g rdf:type ?c } GROUP BY ?b } . FILTER ( ?x <= 32 ) }
Federated States of Micronesia Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia 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 Nauru Chile Palau 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 Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
157
action count
action atmost
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 32
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?x ) WHERE { VALUES ( ?c ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?g rdf:type ?c } GROUP BY ?b } . FILTER ( ?x <= 32 ) }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q948
Q15617994
USER
And what about Tunisia?
(Q948,P530,c(Q15617994))
action filter_type
action find
entity Q948
relation P530
type Q15617994
['Q948', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q948 property:P530 ?k . ?k rdf:type ontology:Q15617994 }
Tunisia
action filter_type
action find
entity Tunisia
relation diplomatic relation
type designation for an administrative territorial entity
['Tunisia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Tunisia property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q30 Q159
SYSTEM
Italy, United States of America, Russia
Q142 Q159 Q38 Q30
(Q948,P530,c(Q15617994))
action filter_type
action find
entity Q948
relation P530
type Q15617994
[ANSWERS]
['Q948', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q948 property:P530 ?k . ?k rdf:type ontology:Q15617994 }
France Russia Italy United States of America
Italy United States of America Russia
action filter_type
action find
entity Tunisia
relation diplomatic relation
type designation for an administrative territorial entity
['Tunisia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Tunisia property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q38 Q30 Q159
P463
Q43229
USER
What were Italy, United States of America and Russia a member of ?
(Q38,P463,c(Q43229)) (Q30,P463,c(Q43229)) (Q159,P463,c(Q43229))
action union
action filter_type
action find
entity Q38
relation P463
type Q43229
action filter_type
action find
entity Q30
relation P463
type Q43229
action filter_type
action find
entity Q159
relation P463
type Q43229
['Q38', 'P463', {'concept': 'Q43229'}] ['Q30', 'P463', {'concept': 'Q43229'}] ['Q159', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?q WHERE { ?a property:P463 ?q . VALUES ( ?a ) { ( resource:Q38 ) ( resource:Q30 ) } }
Italy United States of America Russia
action union
action filter_type
action find
entity Italy
relation member of
type organization
action filter_type
action find
entity United States of America
relation member of
type organization
action filter_type
action find
entity Russia
relation member of
type organization
['Italy', 'member of', {'concept': 'organization'}] ['United States of America', 'member of', {'concept': 'organization'}] ['Russia', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?q WHERE { ?a property:member_of ?q . VALUES ( ?a ) { ( resource:Italy ) ( resource:United_States_of_America ) } }
[]
organization
Q7809 Q42944 Q151991
SYSTEM
United Nations Educational, Scientific and Cultural Organization, European Organization for Nuclear Research, European Southern Observatory
Q340195 Q125761 Q191384 Q1153087 Q309195 Q689859 Q899770 Q189946 Q7809 Q132551 Q1666759 Q699036 Q42944 Q61923 Q177773 Q41550 Q3772571 Q386120 Q656801 Q151991 Q161549 Q7825 Q488981 Q82151 Q7178 Q827525 Q340195 Q191384 Q899770 Q41550 Q656801 Q170481 Q7825 Q827525 Q485207 Q7779 Q191384 Q7825 Q827525 Q656801 Q380340 Q170481 Q243630
(Q38,P463,c(Q43229)) (Q30,P463,c(Q43229)) (Q159,P463,c(Q43229))
action union
action filter_type
action find
entity Q38
relation P463
type Q43229
action filter_type
action find
entity Q30
relation P463
type Q43229
action filter_type
action find
entity Q159
relation P463
type Q43229
Italy , United States of America and Russia a member of the [ANSWERS] were
['Q38', 'P463', {'concept': 'Q43229'}] ['Q30', 'P463', {'concept': 'Q43229'}] ['Q159', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?q WHERE { ?a property:P463 ?q . VALUES ( ?a ) { ( resource:Q38 ) ( resource:Q30 ) } }
African Development Bank International Civil Aviation Organization International Bank for Reconstruction and Development Inter-American Development Bank Bank for International Settlements International Fund for Agricultural Development International Centre for Settlement of Investment Disputes Western European Union United Nations Educational, Scientific and Cultural Organization United Nations High Commissioner for Refugees International Mobile Satellite Organization United Nations Truce Supervision Organization European Organization for Nuclear Research World Tourism Organization World Intellectual Property Organization Organisation for Economic Co-operation and Development Caribbean Development Bank United Nations Industrial Development Organization International Finance Corporation European Southern Observatory European Coal and Steel Community World Trade Organization European Bank for Reconstruction and Development Food and Agriculture Organization of the United Nations International Red Cross and Red Crescent Movementsac International Development Association African Development Bank International Bank for Reconstruction and Development International Centre for Settlement of Investment Disputes Organisation for Economic Co-operation and Development International Finance Corporation Asia-Pacific Economic Cooperation World Trade Organization International Development Association Shanghai Cooperation Organisation Commonwealth of Independent States International Bank for Reconstruction and Development World Trade Organization International Development Association International Finance Corporation Organization of the Black Sea Economic Cooperation Asia-Pacific Economic Cooperation BRICS
Italy , United States of America and Russia a member of the United Nations Educational, Scientific and Cultural Organization, European Organization for Nuclear Research and European Southern Observatory were
United Nations Educational, Scientific and Cultural Organization European Organization for Nuclear Research European Southern Observatory
action union
action filter_type
action find
entity Italy
relation member of
type organization
action filter_type
action find
entity United States of America
relation member of
type organization
action filter_type
action find
entity Russia
relation member of
type organization
['Italy', 'member of', {'concept': 'organization'}] ['United States of America', 'member of', {'concept': 'organization'}] ['Russia', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?q WHERE { ?a property:member_of ?q . VALUES ( ?a ) { ( resource:Italy ) ( resource:United_States_of_America ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7809
P108
Q502895
USER
Which people work for United Nations Educational, Scientific and Cultural Organization ?
(c(Q502895),P108,Q7809)
action filter_type
action find_reverse
entity Q7809
relation P108
type Q502895
[{'concept': 'Q502895'}, 'P108', 'Q7809']
SELECT DISTINCT ?p WHERE { ?p property:P108 resource:Q7809 . ?p rdf:type ontology:Q502895 }
United Nations Educational, Scientific and Cultural Organization
action filter_type
action find_reverse
entity United Nations Educational, Scientific and Cultural Organization
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'United Nations Educational, Scientific and Cultural Organization']
SELECT DISTINCT ?p WHERE { ?p property:employer resource:United_Nations_Educational,_Scientific_and_Cultural_Organization . ?p rdf:type ontology:common_name }
[]
common name
Q22667895 Q716552 Q3541430
SYSTEM
David Wasawo, Norman McLaren, Trần Văn Khê
Q230850 Q3085768 Q22667895 Q3541430 Q3103148 Q716552 Q20986340 Q25872869 Q26179875
(c(Q502895),P108,Q7809)
action filter_type
action find_reverse
entity Q7809
relation P108
type Q502895
[ANSWERS] work for United Nations Educational, Scientific and Cultural Organization
[{'concept': 'Q502895'}, 'P108', 'Q7809']
SELECT DISTINCT ?p WHERE { ?p property:P108 resource:Q7809 . ?p rdf:type ontology:Q502895 }
Irina Bokova François Russo David Wasawo Trần Văn Khê Georges Malempré Norman McLaren Lê Thành Khôi János Bogárdi Genevieve Fiore
David Wasawo, Norman McLaren and Trần Văn Khê work for United Nations Educational, Scientific and Cultural Organization
David Wasawo Norman McLaren Trần Văn Khê
action filter_type
action find_reverse
entity United Nations Educational, Scientific and Cultural Organization
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'United Nations Educational, Scientific and Cultural Organization']
SELECT DISTINCT ?p WHERE { ?p property:employer resource:United_Nations_Educational,_Scientific_and_Cultural_Organization . ?p rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3541430
P22
Q502895
USER
Which person has that one as dad ?
(c(Q502895),P22,Q3541430)
action filter_type
action find_reverse
entity Q3541430
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q3541430']
SELECT DISTINCT ?s WHERE { ?s property:P22 resource:Q3541430 . ?s rdf:type ontology:Q502895 }
Trần Văn Khê
action filter_type
action find_reverse
entity Trần Văn Khê
relation father
type common name
[{'concept': 'common name'}, 'father', 'Trần Văn Khê']
SELECT DISTINCT ?s WHERE { ?s property:father resource:Trần_Văn_Khê . ?s rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q716552
SYSTEM
Did you mean Norman McLaren ?
Q22667895 Q716552 Q3541430
(c(Q502895),P22,Q22667895) (c(Q502895),P22,Q716552) (c(Q502895),P22,Q3541430)
[ANSWER]
[{'concept': 'Q502895'}, 'P22', 'Q22667895'] [{'concept': 'Q502895'}, 'P22', 'Q716552'] [{'concept': 'Q502895'}, 'P22', 'Q3541430']
SELECT DISTINCT ?s WHERE { ?s property:P22 resource:Q3541430 . ?s rdf:type ontology:Q502895 }
David Wasawo Norman McLaren Trần Văn Khê
Did you mean Norman McLaren ?
Norman McLaren
[{'concept': 'common name'}, 'father', 'David Wasawo'] [{'concept': 'common name'}, 'father', 'Norman McLaren'] [{'concept': 'common name'}, 'father', 'Trần Văn Khê']
SELECT DISTINCT ?s WHERE { ?s property:father resource:Trần_Văn_Khê . ?s rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Trần Văn Khê. Could you tell me the answer for that?
(c(Q502895),P22,Q3541430)
Q3541430
[{'concept': 'Q502895'}, 'P22', 'Q3541430']
[{'concept': 'common name'}, 'father', 'Trần Văn Khê']
[]
Q980927
SYSTEM
Trần Quang Hải
Q980927
(c(Q502895),P22,Q3541430)
action filter_type
action find_reverse
entity Q3541430
relation P22
type Q502895
[ANSWER] has that one as dad
[{'concept': 'Q502895'}, 'P22', 'Q3541430']
SELECT DISTINCT ?s WHERE { ?s property:P22 resource:Q3541430 . ?s rdf:type ontology:Q502895 }
Trần Quang Hải
Trần Quang Hải has that one as dad
Trần Quang Hải
action filter_type
action find_reverse
entity Trần Văn Khê
relation father
type common name
[{'concept': 'common name'}, 'father', 'Trần Văn Khê']
SELECT DISTINCT ?s WHERE { ?s property:father resource:Trần_Văn_Khê . ?s rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q25768315 Q716552
P937
Q56061
USER
Which administrative territories are the work locations of Norman McLaren or G. F. Sargent ?
OR((Q716552,P937,c(Q56061)), (Q25768315,P937,c(Q56061)))
action filter_type
action union
action find
entity Q716552
relation P937
action find
entity Q25768315
relation P937
type Q56061
{'OR': [['Q716552', 'P937', {'concept': 'Q56061'}], ['Q25768315', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q56061 . { VALUES ( ?u ) { ( resource:Q716552 ) ( resource:Q25768315 ) } . ?u property:P937 ?r } }
G. F. Sargent Norman McLaren
action filter_type
action union
action find
entity Norman McLaren
relation work location
action find
entity G. F. Sargent
relation work location
type administrative territorial entity
{'OR': [['Norman McLaren', 'work location', {'concept': 'administrative territorial entity'}], ['G. F. Sargent', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:administrative_territorial_entity . { VALUES ( ?u ) { ( resource:Norman_McLaren ) ( resource:G._F._Sargent ) } . ?u property:work_location ?r } }
[]
administrative territorial entity
Q340 Q41262 Q3130 Q84 Q3141
SYSTEM
Montreal, Nottingham, Sydney, London, Melbourne
Q340 Q41262 Q3130 Q84 Q3141
OR((Q716552,P937,c(Q56061)), (Q25768315,P937,c(Q56061)))
action filter_type
action union
action find
entity Q716552
relation P937
action find
entity Q25768315
relation P937
type Q56061
[ANSWERS] are the work locations of Norman McLaren or G. F. Sargent
{'OR': [['Q716552', 'P937', {'concept': 'Q56061'}], ['Q25768315', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q56061 . { VALUES ( ?u ) { ( resource:Q716552 ) ( resource:Q25768315 ) } . ?u property:P937 ?r } }
Montreal Nottingham Sydney London Melbourne
Montreal, Nottingham, Sydney, London and Melbourne are the work locations of Norman McLaren or G. F. Sargent
Montreal Nottingham Sydney London Melbourne
action filter_type
action union
action find
entity Norman McLaren
relation work location
action find
entity G. F. Sargent
relation work location
type administrative territorial entity
{'OR': [['Norman McLaren', 'work location', {'concept': 'administrative territorial entity'}], ['G. F. Sargent', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:administrative_territorial_entity . { VALUES ( ?u ) { ( resource:Norman_McLaren ) ( resource:G._F._Sargent ) } . ?u property:work_location ?r } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q202585
P127
Q334453
USER
Who owns RCA Records ?
(Q202585,P127,c(Q334453))
action filter_type
action find
entity Q202585
relation P127
type Q334453
['Q202585', 'P127', {'concept': 'Q334453'}]
SELECT DISTINCT ?e WHERE { resource:Q202585 property:P127 ?e . ?e rdf:type ontology:Q334453 }
RCA Records
action filter_type
action find
entity RCA Records
relation owned by
type division
['RCA Records', 'owned by', {'concept': 'division'}]
SELECT DISTINCT ?e WHERE { resource:RCA_Records property:owned_by ?e . ?e rdf:type ontology:division }
[]
division
Q330629
SYSTEM
Sony Music Entertainment
Q330629
(Q202585,P127,c(Q334453))
action filter_type
action find
entity Q202585
relation P127
type Q334453
[ANSWER] owns RCA Records
['Q202585', 'P127', {'concept': 'Q334453'}]
SELECT DISTINCT ?e WHERE { resource:Q202585 property:P127 ?e . ?e rdf:type ontology:Q334453 }
Sony Music Entertainment
Sony Music Entertainment owns RCA Records
Sony Music Entertainment
action filter_type
action find
entity RCA Records
relation owned by
type division
['RCA Records', 'owned by', {'concept': 'division'}]
SELECT DISTINCT ?e WHERE { resource:RCA_Records property:owned_by ?e . ?e rdf:type ontology:division }
[]