Simple Question (Direct)
Simple Question
Q3594427
P21
Q290
USER
Which sex does Željko Kopanja possess ?
(Q3594427,P21,c(Q290))
action filter_type
action find
entity Q3594427
relation P21
type Q290
['Q3594427', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q290 . resource:Q3594427 property:P21 ?b }
Željko Kopanja
action filter_type
action find
entity Željko Kopanja
relation gender
type sex
['Željko Kopanja', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:sex . resource:Željko_Kopanja property:gender ?b }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3594427,P21,c(Q290))
action filter_type
action find
entity Q3594427
relation P21
type Q290
Željko Kopanja possesses [ANSWER]
['Q3594427', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q290 . resource:Q3594427 property:P21 ?b }
male
Željko Kopanja possesses male
male
action filter_type
action find
entity Željko Kopanja
relation gender
type sex
['Željko Kopanja', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:sex . resource:Željko_Kopanja property:gender ?b }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3594427
P106
Q12737077
USER
What is the profession of Željko Kopanja ?
(Q3594427,P106,c(Q12737077))
action filter_type
action find
entity Q3594427
relation P106
type Q12737077
['Q3594427', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q3594427 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
Željko Kopanja
action filter_type
action find
entity Željko Kopanja
relation occupation
type occupation
['Željko Kopanja', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Željko_Kopanja property:occupation ?n . ?n rdf:type ontology:occupation }
[]
occupation
Q1930187
SYSTEM
journalist
Q1930187
(Q3594427,P106,c(Q12737077))
action filter_type
action find
entity Q3594427
relation P106
type Q12737077
The profession of Željko Kopanja is the [ANSWER]
['Q3594427', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q3594427 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
journalist
The profession of Željko Kopanja is the journalist
journalist
action filter_type
action find
entity Željko Kopanja
relation occupation
type occupation
['Željko Kopanja', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Željko_Kopanja property:occupation ?n . ?n rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3594427
P27
Q15617994
USER
Which administrative territory does that person belong to ?
(Q1930187,P27,c(Q15617994))
action filter_type
action find
entity Q3594427
relation P27
type Q15617994
['Q1930187', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q3594427 property:P27 ?t . ?t rdf:type ontology:Q15617994 }
Željko Kopanja
action filter_type
action find
entity Željko Kopanja
relation country of citizenship
type designation for an administrative territorial entity
['journalist', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Željko_Kopanja property:country_of_citizenship ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q225
SYSTEM
Bosnia and Herzegovina
Q225
(Q1930187,P27,c(Q15617994))
action filter_type
action find
entity Q3594427
relation P27
type Q15617994
That person belongs to State [ANSWER]
['Q1930187', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q3594427 property:P27 ?t . ?t rdf:type ontology:Q15617994 }
Bosnia and Herzegovina
That person belongs to State Bosnia and Herzegovina
Bosnia and Herzegovina
action filter_type
action find
entity Željko Kopanja
relation country of citizenship
type designation for an administrative territorial entity
['journalist', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Željko_Kopanja property:country_of_citizenship ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P495
Q15617994 Q838948 Q2342494
USER
Which administrative territories are the origin of approximately the same number of works of art or collectables as that administrative territory ?
(c(Q838948)|c(Q2342494),P495,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q225
relation P495
type Q838948
type Q2342494
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) ?h WHERE { { ?l property:P495 ?h . ?h rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q838948 } UNION { ?h rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q2342494 . ?l property:P495 ?h } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { ?u property:P495 resource:Q225 . { { ?u rdf:type ontology:Q838948 } UNION { ?u rdf:type ontology:Q2342494 } } } } . FILTER ( ?y = ?r ) }
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Bosnia and Herzegovina
relation country of origin
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) ?h WHERE { { ?l property:country_of_origin ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:work_of_art } UNION { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:collectable . ?l property:country_of_origin ?h } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { ?u property:country_of_origin resource:Bosnia_and_Herzegovina . { { ?u rdf:type ontology:work_of_art } UNION { ?u rdf:type ontology:collectable } } } } . FILTER ( ?y = ?r ) }
[]
designation for an administrative territorial entity work of art collectable
Q155 Q230 Q159
SYSTEM
Brazil, Georgia, Russia
Q805 Q804 Q801 Q800 Q1462 Q419 Q414 Q55 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q838948)|c(Q2342494),P495,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q225
relation P495
type Q838948
type Q2342494
[ANSWERS] are the origin of approximately the same number of works of art or collectables as that administrative territory
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) ?h WHERE { { ?l property:P495 ?h . ?h rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q838948 } UNION { ?h rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q2342494 . ?l property:P495 ?h } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { ?u property:P495 resource:Q225 . { { ?u rdf:type ontology:Q838948 } UNION { ?u rdf:type ontology:Q2342494 } } } } . FILTER ( ?y = ?r ) }
Yemen Panama Israel Costa Rica Sardinia Peru Argentina Netherlands Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
Brazil, Georgia and Russia are the origin of approximately the same number of works of art or collectables as that administrative territory
Brazil Georgia Russia
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Bosnia and Herzegovina
relation country of origin
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) ?h WHERE { { ?l property:country_of_origin ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:work_of_art } UNION { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:collectable . ?l property:country_of_origin ?h } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { ?u property:country_of_origin resource:Bosnia_and_Herzegovina . { { ?u rdf:type ontology:work_of_art } UNION { ?u rdf:type ontology:collectable } } } } . FILTER ( ?y = ?r ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q155 Q230 Q159
P35
Q502895
USER
Which people have the highest formal authority in those administrative territories ?
(Q155,P35,c(Q502895)) (Q230,P35,c(Q502895)) (Q159,P35,c(Q502895))
action filter_type
action find
entity prev_answer
relation P35
type Q502895
['Q155', 'P35', {'concept': 'Q502895'}] ['Q230', 'P35', {'concept': 'Q502895'}] ['Q159', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { VALUES ( ?i ) { ( resource:Q805 ) ( resource:Q804 ) ( resource:Q801 ) } . ?i property:P35 ?n . ?n rdf:type ontology:Q502895 }
Brazil Georgia Russia
action filter_type
action find
entity prev_answer
relation head of state
type common name
['Brazil', 'head of state', {'concept': 'common name'}] ['Georgia', 'head of state', {'concept': 'common name'}] ['Russia', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { VALUES ( ?i ) { ( resource:Yemen ) ( resource:Panama ) ( resource:Israel ) } . ?i property:head_of_state ?n . ?n rdf:type ontology:common_name }
[]
common name
Q7747 Q34453 Q230578
SYSTEM
Vladimir Putin, Boris Yeltsin, Fernando Henrique Cardoso
Q236503 Q230578 Q463533 Q40722 Q37181 Q485946 Q218435 Q13107337 Q151929 Q43330 Q229493 Q34453 Q23530 Q7747
(Q155,P35,c(Q502895)) (Q230,P35,c(Q502895)) (Q159,P35,c(Q502895))
action filter_type
action find
entity prev_answer
relation P35
type Q502895
[ANSWERS] have the highest formal authority in those administrative territories
['Q155', 'P35', {'concept': 'Q502895'}] ['Q230', 'P35', {'concept': 'Q502895'}] ['Q159', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { VALUES ( ?i ) { ( resource:Q805 ) ( resource:Q804 ) ( resource:Q801 ) } . ?i property:P35 ?n . ?n rdf:type ontology:Q502895 }
Fernando Collor de Mello Fernando Henrique Cardoso Michel Temer Dilma Rousseff Luiz Inácio Lula da Silva Itamar Franco Zviad Gamsakhurdia Giorgi Margvelashvili Eduard Shevardnadze Mikhail Saakashvili Nino Burjanadze Boris Yeltsin Dmitry Medvedev Vladimir Putin
Vladimir Putin, Boris Yeltsin and Fernando Henrique Cardoso have the highest formal authority in those administrative territories
Vladimir Putin Boris Yeltsin Fernando Henrique Cardoso
action filter_type
action find
entity prev_answer
relation head of state
type common name
['Brazil', 'head of state', {'concept': 'common name'}] ['Georgia', 'head of state', {'concept': 'common name'}] ['Russia', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { VALUES ( ?i ) { ( resource:Yemen ) ( resource:Panama ) ( resource:Israel ) } . ?i property:head_of_state ?n . ?n rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q7747 Q34453 Q230578
P26
Q502895
USER
Which people are married to those ones ?
(c(Q502895),P26,Q7747) (c(Q502895),P26,Q34453) (c(Q502895),P26,Q230578)
action filter_type
action find
entity prev_answer
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q7747'] [{'concept': 'Q502895'}, 'P26', 'Q34453'] [{'concept': 'Q502895'}, 'P26', 'Q230578']
SELECT DISTINCT ?e WHERE { ?k property:P26 ?e . ?e rdf:type ontology:Q502895 . VALUES ( ?k ) { ( resource:Q236503 ) ( resource:Q230578 ) ( resource:Q463533 ) } }
Vladimir Putin Boris Yeltsin Fernando Henrique Cardoso
action filter_type
action find
entity prev_answer
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Vladimir Putin'] [{'concept': 'common name'}, 'spouse', 'Boris Yeltsin'] [{'concept': 'common name'}, 'spouse', 'Fernando Henrique Cardoso']
SELECT DISTINCT ?e WHERE { ?k property:spouse ?e . ?e rdf:type ontology:common_name . VALUES ( ?k ) { ( resource:Fernando_Collor_de_Mello ) ( resource:Fernando_Henrique_Cardoso ) ( resource:Michel_Temer ) } }
[]
common name
Q233282 Q264341 Q2498810
SYSTEM
Lyudmila Putina, Ruth Cardoso, Naina Yeltsina
Q233282 Q2498810 Q264341 Q17278012
(c(Q502895),P26,Q7747) (c(Q502895),P26,Q34453) (c(Q502895),P26,Q230578)
action filter_type
action find
entity prev_answer
relation P26
type Q502895
[ANSWERS] are married to those ones
[{'concept': 'Q502895'}, 'P26', 'Q7747'] [{'concept': 'Q502895'}, 'P26', 'Q34453'] [{'concept': 'Q502895'}, 'P26', 'Q230578']
SELECT DISTINCT ?e WHERE { ?k property:P26 ?e . ?e rdf:type ontology:Q502895 . VALUES ( ?k ) { ( resource:Q236503 ) ( resource:Q230578 ) ( resource:Q463533 ) } }
Lyudmila Putina Naina Yeltsina Ruth Cardoso Patrícia Kundrát
Lyudmila Putina, Ruth Cardoso and Naina Yeltsina are married to those ones
Lyudmila Putina Ruth Cardoso Naina Yeltsina
action filter_type
action find
entity prev_answer
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Vladimir Putin'] [{'concept': 'common name'}, 'spouse', 'Boris Yeltsin'] [{'concept': 'common name'}, 'spouse', 'Fernando Henrique Cardoso']
SELECT DISTINCT ?e WHERE { ?k property:spouse ?e . ?e rdf:type ontology:common_name . VALUES ( ?k ) { ( resource:Fernando_Collor_de_Mello ) ( resource:Fernando_Henrique_Cardoso ) ( resource:Michel_Temer ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q233282 Q264341 Q2498810
P26
Q502895
USER
Which people are the life partner of Lyudmila Putina, Ruth Cardoso and Naina Yeltsina ?
(Q233282,P26,c(Q502895)) (Q264341,P26,c(Q502895)) (Q2498810,P26,c(Q502895))
action union
action filter_type
action find
entity Q233282
relation P26
type Q502895
action filter_type
action find
entity Q264341
relation P26
type Q502895
action filter_type
action find
entity Q2498810
relation P26
type Q502895
['Q233282', 'P26', {'concept': 'Q502895'}] ['Q264341', 'P26', {'concept': 'Q502895'}] ['Q2498810', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { { resource:Q233282 property:P26 ?h . ?h rdf:type ontology:Q502895 } UNION { resource:Q264341 property:P26 ?h . ?h rdf:type ontology:Q502895 } }
Lyudmila Putina Ruth Cardoso Naina Yeltsina
action union
action filter_type
action find
entity Lyudmila Putina
relation spouse
type common name
action filter_type
action find
entity Ruth Cardoso
relation spouse
type common name
action filter_type
action find
entity Naina Yeltsina
relation spouse
type common name
['Lyudmila Putina', 'spouse', {'concept': 'common name'}] ['Ruth Cardoso', 'spouse', {'concept': 'common name'}] ['Naina Yeltsina', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { { resource:Lyudmila_Putina property:spouse ?h . ?h rdf:type ontology:common_name } UNION { resource:Ruth_Cardoso property:spouse ?h . ?h rdf:type ontology:common_name } }
[]
common name
Q7747 Q230578 Q34453
SYSTEM
Vladimir Putin, Fernando Henrique Cardoso, Boris Yeltsin
Q7747 Q230578 Q34453
(Q233282,P26,c(Q502895)) (Q264341,P26,c(Q502895)) (Q2498810,P26,c(Q502895))
action union
action filter_type
action find
entity Q233282
relation P26
type Q502895
action filter_type
action find
entity Q264341
relation P26
type Q502895
action filter_type
action find
entity Q2498810
relation P26
type Q502895
[ANSWERS] are the life partner of Lyudmila Putina, Ruth Cardoso and Naina Yeltsina
['Q233282', 'P26', {'concept': 'Q502895'}] ['Q264341', 'P26', {'concept': 'Q502895'}] ['Q2498810', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { { resource:Q233282 property:P26 ?h . ?h rdf:type ontology:Q502895 } UNION { resource:Q264341 property:P26 ?h . ?h rdf:type ontology:Q502895 } }
Vladimir Putin Fernando Henrique Cardoso Boris Yeltsin
Vladimir Putin, Fernando Henrique Cardoso and Boris Yeltsin are the life partner of Lyudmila Putina, Ruth Cardoso and Naina Yeltsina
Vladimir Putin Fernando Henrique Cardoso Boris Yeltsin
action union
action filter_type
action find
entity Lyudmila Putina
relation spouse
type common name
action filter_type
action find
entity Ruth Cardoso
relation spouse
type common name
action filter_type
action find
entity Naina Yeltsina
relation spouse
type common name
['Lyudmila Putina', 'spouse', {'concept': 'common name'}] ['Ruth Cardoso', 'spouse', {'concept': 'common name'}] ['Naina Yeltsina', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { { resource:Lyudmila_Putina property:spouse ?h . ?h rdf:type ontology:common_name } UNION { resource:Ruth_Cardoso property:spouse ?h . ?h rdf:type ontology:common_name } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q7747 Q230578 Q34453
P35
Q15617994
USER
Which administrative territories have those people as their head of state ?
(c(Q15617994),P35,Q7747) (c(Q15617994),P35,Q230578) (c(Q15617994),P35,Q34453)
action filter_type
action find_reverse
entity prev_answer
relation P35
type Q15617994
[{'concept': 'Q15617994'}, 'P35', 'Q7747'] [{'concept': 'Q15617994'}, 'P35', 'Q230578'] [{'concept': 'Q15617994'}, 'P35', 'Q34453']
SELECT DISTINCT ?i WHERE { ?i property:P35 ?n . ?i rdf:type ontology:Q15617994 . VALUES ( ?n ) { ( resource:Q7747 ) ( resource:Q230578 ) ( resource:Q34453 ) } }
Vladimir Putin Fernando Henrique Cardoso Boris Yeltsin
action filter_type
action find_reverse
entity prev_answer
relation head of state
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'head of state', 'Vladimir Putin'] [{'concept': 'designation for an administrative territorial entity'}, 'head of state', 'Fernando Henrique Cardoso'] [{'concept': 'designation for an administrative territorial entity'}, 'head of state', 'Boris Yeltsin']
SELECT DISTINCT ?i WHERE { ?i property:head_of_state ?n . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?n ) { ( resource:Vladimir_Putin ) ( resource:Fernando_Henrique_Cardoso ) ( resource:Boris_Yeltsin ) } }
[]
designation for an administrative territorial entity
Q155 Q159 Q159
SYSTEM
Brazil for 1st, Russia for 2nd, 3rd
Q159 Q159 Q155 Q159
(c(Q15617994),P35,Q7747) (c(Q15617994),P35,Q230578) (c(Q15617994),P35,Q34453)
action filter_type
action find_reverse
entity prev_answer
relation P35
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P35', 'Q7747'] [{'concept': 'Q15617994'}, 'P35', 'Q230578'] [{'concept': 'Q15617994'}, 'P35', 'Q34453']
SELECT DISTINCT ?i WHERE { ?i property:P35 ?n . ?i rdf:type ontology:Q15617994 . VALUES ( ?n ) { ( resource:Q7747 ) ( resource:Q230578 ) ( resource:Q34453 ) } }
Russia Russia Brazil Russia
Brazil, Russia and Russia have those people as their head of state
Brazil Russia Russia
action filter_type
action find_reverse
entity prev_answer
relation head of state
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'head of state', 'Vladimir Putin'] [{'concept': 'designation for an administrative territorial entity'}, 'head of state', 'Fernando Henrique Cardoso'] [{'concept': 'designation for an administrative territorial entity'}, 'head of state', 'Boris Yeltsin']
SELECT DISTINCT ?i WHERE { ?i property:head_of_state ?n . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?n ) { ( resource:Vladimir_Putin ) ( resource:Fernando_Henrique_Cardoso ) ( resource:Boris_Yeltsin ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q7747
P140
Q879146
USER
Which Christian denomination is the religion of that person ?
(Q7747,P140,c(Q879146))
action filter_type
action find
entity Q7747
relation P140
type Q879146
['Q7747', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?y WHERE { resource:Q7747 property:P140 ?y . ?y rdf:type ontology:Q879146 }
Vladimir Putin
action filter_type
action find
entity Vladimir Putin
relation religion
type Christian denomination
['Vladimir Putin', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?y WHERE { resource:Vladimir_Putin property:religion ?y . ?y rdf:type ontology:Christian_denomination }
[]
Christian denomination
Clarification for simple ques.
Q7747
SYSTEM
Did you mean Vladimir Putin ?
Q155 Q159 Q159
(Q155,P140,c(Q879146)) (Q159,P140,c(Q879146)) (Q159,P140,c(Q879146))
[ANSWER]
['Q155', 'P140', {'concept': 'Q879146'}] ['Q159', 'P140', {'concept': 'Q879146'}] ['Q159', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?y WHERE { resource:Q7747 property:P140 ?y . ?y rdf:type ontology:Q879146 }
Brazil Russia Russia
Did you mean Vladimir Putin ?
Vladimir Putin
['Brazil', 'religion', {'concept': 'Christian denomination'}] ['Russia', 'religion', {'concept': 'Christian denomination'}] ['Russia', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?y WHERE { resource:Vladimir_Putin property:religion ?y . ?y rdf:type ontology:Christian_denomination }
[]
Simple Question (Coreferenced)
USER
Yes
(Q7747,P140,c(Q879146))
['Q7747', 'P140', {'concept': 'Q879146'}]
['Vladimir Putin', 'religion', {'concept': 'Christian denomination'}]
[]
Q60995
SYSTEM
Russian Orthodox Church
Q60995
(Q7747,P140,c(Q879146))
action filter_type
action find
entity Q7747
relation P140
type Q879146
[ANSWER] is the religion of that person
['Q7747', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?y WHERE { resource:Q7747 property:P140 ?y . ?y rdf:type ontology:Q879146 }
Russian Orthodox Church
Russian Orthodox Church is the religion of that person
Russian Orthodox Church
action filter_type
action find
entity Vladimir Putin
relation religion
type Christian denomination
['Vladimir Putin', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?y WHERE { resource:Vladimir_Putin property:religion ?y . ?y rdf:type ontology:Christian_denomination }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q60995 Q4394448 Q14974
P112
Q502895
USER
Was Russian Orthodox Church founded by Robert William Read and Vladimir the Great ?
(Q60995,P112,Q4394448) (Q60995,P112,Q14974)
action is_in
entity Q60995
action intersection
action find_reverse
entity Q4394448
relation P112
action find_reverse
entity Q14974
relation P112
['Q60995', 'P112', 'Q4394448'] ['Q60995', 'P112', 'Q14974']
ASK WHERE { resource:Q60995 property:P112 resource:Q14974 . resource:Q60995 property:P112 resource:Q4394448 }
Russian Orthodox Church Robert William Read Vladimir the Great
action is_in
entity Russian Orthodox Church
action intersection
action find_reverse
entity Robert William Read
relation founder
action find_reverse
entity Vladimir the Great
relation founder
['Russian Orthodox Church', 'founder', 'Robert William Read'] ['Russian Orthodox Church', 'founder', 'Vladimir the Great']
ASK WHERE { resource:Russian_Orthodox_Church property:founder resource:Vladimir_the_Great . resource:Russian_Orthodox_Church property:founder resource:Robert_William_Read }
[]
common name
SYSTEM
NO and YES respectively
(Q60995,P112,Q4394448) (Q60995,P112,Q14974)
action is_in
entity Q60995
action intersection
action find_reverse
entity Q4394448
relation P112
action find_reverse
entity Q14974
relation P112
[ANSWER]
['Q60995', 'P112', 'Q4394448'] ['Q60995', 'P112', 'Q14974']
ASK WHERE { resource:Q60995 property:P112 resource:Q14974 . resource:Q60995 property:P112 resource:Q4394448 }
NO and YES respectively
action is_in
entity Russian Orthodox Church
action intersection
action find_reverse
entity Robert William Read
relation founder
action find_reverse
entity Vladimir the Great
relation founder
['Russian Orthodox Church', 'founder', 'Robert William Read'] ['Russian Orthodox Church', 'founder', 'Vladimir the Great']
ASK WHERE { resource:Russian_Orthodox_Church property:founder resource:Vladimir_the_Great . resource:Russian_Orthodox_Church property:founder resource:Robert_William_Read }
[]