Simple Question (Direct)
Simple Question
Q953222
P106
Q12737077
USER
What is the profession of Erzsébet Komlóssy ?
(Q953222,P106,c(Q12737077))
action filter_type
action find
entity Q953222
relation P106
type Q12737077
['Q953222', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q12737077 . resource:Q953222 property:P106 ?y }
Erzsébet Komlóssy
action filter_type
action find
entity Erzsébet Komlóssy
relation occupation
type occupation
['Erzsébet Komlóssy', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:occupation . resource:Erzsébet_Komlóssy property:occupation ?y }
[]
occupation
Q177220
SYSTEM
singer
Q177220
(Q953222,P106,c(Q12737077))
action filter_type
action find
entity Q953222
relation P106
type Q12737077
The profession of Erzsébet Komlóssy is a [ANSWER]
['Q953222', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q12737077 . resource:Q953222 property:P106 ?y }
singer
The profession of Erzsébet Komlóssy is a singer
singer
action filter_type
action find
entity Erzsébet Komlóssy
relation occupation
type occupation
['Erzsébet Komlóssy', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:occupation . resource:Erzsébet_Komlóssy property:occupation ?y }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q953222
P27
Q15617994
USER
Which administrative territory is the native country of that person ?
(Q177220,P27,c(Q15617994))
action filter_type
action find
entity Q953222
relation P27
type Q15617994
['Q177220', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . resource:Q953222 property:P27 ?z }
Erzsébet Komlóssy
action filter_type
action find
entity Erzsébet Komlóssy
relation country of citizenship
type designation for an administrative territorial entity
['singer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Erzsébet_Komlóssy property:country_of_citizenship ?z }
[]
designation for an administrative territorial entity
Q28
SYSTEM
Hungary
Q28
(Q177220,P27,c(Q15617994))
action filter_type
action find
entity Q953222
relation P27
type Q15617994
The [ANSWER] is the native country of that person
['Q177220', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . resource:Q953222 property:P27 ?z }
Hungary
The Hungary is the native country of that person
Hungary
action filter_type
action find
entity Erzsébet Komlóssy
relation country of citizenship
type designation for an administrative territorial entity
['singer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Erzsébet_Komlóssy property:country_of_citizenship ?z }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q28 Q38 Q403
P530
Q15617994
USER
Does that administrative territory have tactful political relations with Italy and Serbia ?
(Q28,P530,Q38) (Q28,P530,Q403)
action is_in
entity Q28
action intersection
action find_reverse
entity Q38
relation P530
action find_reverse
entity Q403
relation P530
['Q28', 'P530', 'Q38'] ['Q28', 'P530', 'Q403']
ASK WHERE { resource:Q28 property:P530 resource:Q38 . resource:Q28 property:P530 resource:Q403 }
Hungary Italy Serbia
action is_in
entity Hungary
action intersection
action find_reverse
entity Italy
relation diplomatic relation
action find_reverse
entity Serbia
relation diplomatic relation
['Hungary', 'diplomatic relation', 'Italy'] ['Hungary', 'diplomatic relation', 'Serbia']
ASK WHERE { resource:Hungary property:diplomatic_relation resource:Italy . resource:Hungary property:diplomatic_relation resource:Serbia }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q28,P530,Q38) (Q28,P530,Q403)
action is_in
entity Q28
action intersection
action find_reverse
entity Q38
relation P530
action find_reverse
entity Q403
relation P530
[ANSWER]
['Q28', 'P530', 'Q38'] ['Q28', 'P530', 'Q403']
ASK WHERE { resource:Q28 property:P530 resource:Q38 . resource:Q28 property:P530 resource:Q403 }
Yes
action is_in
entity Hungary
action intersection
action find_reverse
entity Italy
relation diplomatic relation
action find_reverse
entity Serbia
relation diplomatic relation
['Hungary', 'diplomatic relation', 'Italy'] ['Hungary', 'diplomatic relation', 'Serbia']
ASK WHERE { resource:Hungary property:diplomatic_relation resource:Italy . resource:Hungary property:diplomatic_relation resource:Serbia }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q47388 Q38
P47
Q15617994
USER
Which administrative territories have a shared border with Italy or Lezzeno ?
OR((Q38,P47,c(Q15617994)), (Q47388,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q38
relation P47
action find
entity Q47388
relation P47
type Q15617994
{'OR': [['Q38', 'P47', {'concept': 'Q15617994'}], ['Q47388', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?f ) { ( resource:Q38 ) ( resource:Q47388 ) } . ?f property:P47 ?i } . ?i rdf:type ontology:Q15617994 }
Lezzeno Italy
action filter_type
action union
action find
entity Italy
relation shares border with
action find
entity Lezzeno
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Italy', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Lezzeno', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?f ) { ( resource:Italy ) ( resource:Lezzeno ) } . ?f property:shares_border_with ?i } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q244095 Q244048 Q142 Q39 Q47633 Q47399 Q47507 Q215 Q238 Q47610
SYSTEM
Some of them are Bellagio, Argegno, France, Switzerland, Lenno, Nesso, Ossuccio, Slovenia, San Marino, Sala Comacina
Q142 Q47181 Q244095 Q215 Q244048 Q47507 Q238 Q47399 Q47620 Q47440 Q47610 Q39 Q47633 Q244449
OR((Q38,P47,c(Q15617994)), (Q47388,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q38
relation P47
action find
entity Q47388
relation P47
type Q15617994
[ANSWERS] have a shared border with Italy or Lezzeno
{'OR': [['Q38', 'P47', {'concept': 'Q15617994'}], ['Q47388', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?f ) { ( resource:Q38 ) ( resource:Q47388 ) } . ?f property:P47 ?i } . ?i rdf:type ontology:Q15617994 }
France Tremezzo Bellagio Slovenia Argegno Ossuccio San Marino Nesso Veleso Zelbio Sala Comacina Switzerland Lenno Colonno
Bellagio, Argegno, France, Switzerland, Lenno, Nesso, Ossuccio, Slovenia, San Marino and Sala Comacina have a shared border with Italy or Lezzeno
Bellagio Argegno France Switzerland Lenno Nesso Ossuccio Slovenia San Marino Sala Comacina
action filter_type
action union
action find
entity Italy
relation shares border with
action find
entity Lezzeno
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Italy', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Lezzeno', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?f ) { ( resource:Italy ) ( resource:Lezzeno ) } . ?f property:shares_border_with ?i } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P495
Q15617994 Q15416 Q201658
USER
Which administrative territories are the origins of more number of television programs or film genres than that administrative territory ?
(c(Q15416)|c(Q201658),P495,c(Q15617994))
[[{'concept': 'Q15416'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { ?n property:P495 ?y . VALUES ( ?n ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:Q15416 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q201658 }
[[{'concept': 'television program'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { ?n property:country_of_origin ?y . VALUES ( ?n ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:television_program . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:film_genre }
[]
designation for an administrative territorial entity television program film genre
Comparative|More/Less|Mult. entity type|Clarification
Q47507
SYSTEM
Did you mean Ossuccio ?
(c(Q15416)|c(Q201658),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { ?n property:P495 ?y . VALUES ( ?n ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:Q15416 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q201658 }
Did you mean Ossuccio ?
Ossuccio
[[{'concept': 'television program'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { ?n property:country_of_origin ?y . VALUES ( ?n ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:television_program . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:film_genre }
[]
Comparative Reasoning (All)
USER
No, I meant San Marino. Could you tell me the answer for that?
(c(Q15416)|c(Q201658),P495,c(Q15617994))
Q238
[[{'concept': 'Q15416'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'television program'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q37 Q712 Q717 Q837 Q252 Q399 Q398 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q794 Q889 Q884 Q881 Q822 Q241 Q33 Q32 Q31 Q30 Q36 Q34 Q928 Q39 Q38 Q739 Q983 Q854 Q424 Q230 Q232 Q233 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1027 Q189 Q843 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q222 Q96 Q229 Q17 Q902 Q1036 Q974 Q1032 Q1033 Q191 Q965 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q916 Q1005 Q833 Q970 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q29 Q869
(c(Q15416)|c(Q201658),P495,c(Q15617994))
[ANSWERS] are the origins of more number of television programs or film genres than that administrative territory
[[{'concept': 'Q15416'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q15416 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q201658 }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Lithuania Fiji Venezuela Nepal Indonesia Armenia Bahrain Serbia South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Iran Afghanistan South Korea Vietnam Lebanon Cuba Finland Luxembourg Belgium United States of America Poland Sweden Philippines Switzerland Italy Colombia Equatorial Guinea Sri Lanka Cambodia Georgia Kazakhstan Malta Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Mauritius Iceland Pakistan Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Albania Mexico Cyprus Japan Bangladesh Uganda Democratic Republic of the Congo Niger Nigeria Estonia Burkina Faso Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Angola Gambia Malaysia Comoros Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Spain Thailand
Italy, Brazil and United States of America are the origins of more number of television programs or film genres than that administrative territory
Italy Brazil United States of America
[[{'concept': 'television program'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:television_program . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:film_genre }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155
P35
Q502895
USER
Which people are the heads of state of Brazil ?
(Q155,P35,c(Q502895))
action filter_type
action find
entity Q155
relation P35
type Q502895
['Q155', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q155 property:P35 ?b . ?b rdf:type ontology:Q502895 }
Brazil
action filter_type
action find
entity Brazil
relation head of state
type common name
['Brazil', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Brazil property:head_of_state ?b . ?b rdf:type ontology:common_name }
[]
common name
Q37181 Q230578 Q40722
SYSTEM
Luiz Inácio Lula da Silva, Fernando Henrique Cardoso, Dilma Rousseff
Q37181 Q230578 Q463533 Q485946 Q236503 Q40722
(Q155,P35,c(Q502895))
action filter_type
action find
entity Q155
relation P35
type Q502895
[ANSWERS] are the heads of state of Brazil
['Q155', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q155 property:P35 ?b . ?b rdf:type ontology:Q502895 }
Luiz Inácio Lula da Silva Fernando Henrique Cardoso Michel Temer Itamar Franco Fernando Collor de Mello Dilma Rousseff
Luiz Inácio Lula da Silva, Fernando Henrique Cardoso and Dilma Rousseff are the heads of state of Brazil
Luiz Inácio Lula da Silva Fernando Henrique Cardoso Dilma Rousseff
action filter_type
action find
entity Brazil
relation head of state
type common name
['Brazil', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Brazil property:head_of_state ?b . ?b rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q40722
P102
Q7210356
USER
Which party does that person belong to ?
(Q40722,P102,c(Q7210356))
action filter_type
action find
entity Q40722
relation P102
type Q7210356
['Q40722', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?h WHERE { resource:Q40722 property:P102 ?h . ?h rdf:type ontology:Q7210356 }
Dilma Rousseff
action filter_type
action find
entity Dilma Rousseff
relation member of political party
type political organization
['Dilma Rousseff', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?h WHERE { resource:Dilma_Rousseff property:member_of_political_party ?h . ?h rdf:type ontology:political_organization }
[]
political organization
Clarification for simple ques.
Q230578
SYSTEM
Did you mean Fernando Henrique Cardoso ?
Q37181 Q230578 Q40722
(Q37181,P102,c(Q7210356)) (Q230578,P102,c(Q7210356)) (Q40722,P102,c(Q7210356))
[ANSWER]
['Q37181', 'P102', {'concept': 'Q7210356'}] ['Q230578', 'P102', {'concept': 'Q7210356'}] ['Q40722', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?h WHERE { resource:Q40722 property:P102 ?h . ?h rdf:type ontology:Q7210356 }
Luiz Inácio Lula da Silva Fernando Henrique Cardoso Dilma Rousseff
Did you mean Fernando Henrique Cardoso ?
Fernando Henrique Cardoso
['Luiz Inácio Lula da Silva', 'member of political party', {'concept': 'political organization'}] ['Fernando Henrique Cardoso', 'member of political party', {'concept': 'political organization'}] ['Dilma Rousseff', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?h WHERE { resource:Dilma_Rousseff property:member_of_political_party ?h . ?h rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
USER
No, I meant Dilma Rousseff. Could you tell me the answer for that?
(Q40722,P102,c(Q7210356))
Q40722
['Q40722', 'P102', {'concept': 'Q7210356'}]
['Dilma Rousseff', 'member of political party', {'concept': 'political organization'}]
[]
Q657089
SYSTEM
Workers' Party
Q657089
(Q40722,P102,c(Q7210356))
action filter_type
action find
entity Q40722
relation P102
type Q7210356
That person belongs to [ANSWER]
['Q40722', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?h WHERE { resource:Q40722 property:P102 ?h . ?h rdf:type ontology:Q7210356 }
Workers' Party
That person belongs to Workers' Party
Workers' Party
action filter_type
action find
entity Dilma Rousseff
relation member of political party
type political organization
['Dilma Rousseff', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?h WHERE { resource:Dilma_Rousseff property:member_of_political_party ?h . ?h rdf:type ontology:political_organization }
[]