Simple Question (Direct)
Simple Question
Q457502
P106
Q12737077
USER
Which occupations have Teresa Colom i Pich as his/her 's career ?
(Q457502,P106,c(Q12737077))
action filter_type
action find
entity Q457502
relation P106
type Q12737077
['Q457502', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q457502 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
Teresa Colom i Pich
action filter_type
action find
entity Teresa Colom i Pich
relation occupation
type occupation
['Teresa Colom i Pich', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Teresa_Colom_i_Pich property:occupation ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q36180 Q49757
SYSTEM
writer, poet
Q36180 Q49757
(Q457502,P106,c(Q12737077))
action filter_type
action find
entity Q457502
relation P106
type Q12737077
The [ANSWERS] have Teresa Colom i Pich as his/her 's career
['Q457502', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q457502 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
writer poet
The writer and poet have Teresa Colom i Pich as his/her 's career
writer poet
action filter_type
action find
entity Teresa Colom i Pich
relation occupation
type occupation
['Teresa Colom i Pich', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Teresa_Colom_i_Pich property:occupation ?i . ?i rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q457502
P1412
Q34770
USER
Which language can Teresa Colom i Pich read ?
(Q457502,P1412,c(Q34770))
action filter_type
action find
entity Q457502
relation P1412
type Q34770
['Q457502', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?q WHERE { resource:Q457502 property:P1412 ?q . ?q rdf:type ontology:Q34770 }
Teresa Colom i Pich
action filter_type
action find
entity Teresa Colom i Pich
relation languages spoken, written or signed
type language
['Teresa Colom i Pich', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?q WHERE { resource:Teresa_Colom_i_Pich property:languages_spoken,_written_or_signed ?q . ?q rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q457502,P1412,c(Q34770))
action filter_type
action find
entity Q457502
relation P1412
type Q34770
Teresa Colom i Pich can read in [ANSWER]
['Q457502', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?q WHERE { resource:Q457502 property:P1412 ?q . ?q rdf:type ontology:Q34770 }
Spanish
Teresa Colom i Pich can read in Spanish
Spanish
action filter_type
action find
entity Teresa Colom i Pich
relation languages spoken, written or signed
type language
['Teresa Colom i Pich', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?q WHERE { resource:Teresa_Colom_i_Pich property:languages_spoken,_written_or_signed ?q . ?q rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q457502
P21
Q290
USER
What is the sex of Teresa Colom i Pich ?
(Q457502,P21,c(Q290))
action filter_type
action find
entity Q457502
relation P21
type Q290
['Q457502', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q290 . resource:Q457502 property:P21 ?e }
Teresa Colom i Pich
action filter_type
action find
entity Teresa Colom i Pich
relation gender
type sex
['Teresa Colom i Pich', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:sex . resource:Teresa_Colom_i_Pich property:gender ?e }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q457502,P21,c(Q290))
action filter_type
action find
entity Q457502
relation P21
type Q290
The sex of Teresa Colom i Pich is the [ANSWER]
['Q457502', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q290 . resource:Q457502 property:P21 ?e }
female
The sex of Teresa Colom i Pich is the female
female
action filter_type
action find
entity Teresa Colom i Pich
relation gender
type sex
['Teresa Colom i Pich', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:sex . resource:Teresa_Colom_i_Pich property:gender ?e }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7823439
Q290
USER
And also tell me about Tony Smith?
(Q7823439,P21,c(Q290))
action filter_type
action find
entity Q7823439
relation P21
type Q290
['Q7823439', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q7823439 property:P21 ?a . ?a rdf:type ontology:Q290 }
Tony Smith
action filter_type
action find
entity Tony Smith
relation gender
type sex
['Tony Smith', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Tony_Smith property:gender ?a . ?a rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7823439,P21,c(Q290))
action filter_type
action find
entity Q7823439
relation P21
type Q290
[ANSWER]
['Q7823439', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q7823439 property:P21 ?a . ?a rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Tony Smith
relation gender
type sex
['Tony Smith', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Tony_Smith property:gender ?a . ?a rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q609470 Q7823439
P27
Q15617994
USER
Which administrative territories do Tony Smith or José Augustin de Llano belong to ?
OR((Q7823439,P27,c(Q15617994)), (Q609470,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7823439
relation P27
action find
entity Q609470
relation P27
type Q15617994
{'OR': [['Q7823439', 'P27', {'concept': 'Q15617994'}], ['Q609470', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q7823439 property:P27 ?f } UNION { resource:Q609470 property:P27 ?f } } . ?f rdf:type ontology:Q15617994 }
José Augustin de Llano Tony Smith
action filter_type
action union
action find
entity Tony Smith
relation country of citizenship
action find
entity José Augustin de Llano
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Tony Smith', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['José Augustin de Llano', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Tony_Smith property:country_of_citizenship ?f } UNION { resource:José_Augustin_de_Llano property:country_of_citizenship ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q145
SYSTEM
Spain, United Kingdom
Q29 Q145
OR((Q7823439,P27,c(Q15617994)), (Q609470,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7823439
relation P27
action find
entity Q609470
relation P27
type Q15617994
Tony Smith or José Augustin de Llano belong to [ANSWERS]
{'OR': [['Q7823439', 'P27', {'concept': 'Q15617994'}], ['Q609470', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q7823439 property:P27 ?f } UNION { resource:Q609470 property:P27 ?f } } . ?f rdf:type ontology:Q15617994 }
Spain United Kingdom
Tony Smith or José Augustin de Llano belong to Spain and United Kingdom
Spain United Kingdom
action filter_type
action union
action find
entity Tony Smith
relation country of citizenship
action find
entity José Augustin de Llano
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Tony Smith', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['José Augustin de Llano', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Tony_Smith property:country_of_citizenship ?f } UNION { resource:José_Augustin_de_Llano property:country_of_citizenship ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1076226
P495
Q838948
USER
Are those administrative territories a country of origin of Antony and Cleopatra ?
(Q1076226,P495,Q29) (Q1076226,P495,Q145)
action is_in
entity prev_answer
action find
entity Q1076226
relation P495
['Q1076226', 'P495', 'Q29'] ['Q1076226', 'P495', 'Q145']
ASK WHERE { resource:Q1076226 property:P495 ?a . VALUES ( ?a ) { ( resource:Q29 ) ( resource:Q145 ) } }
Antony and Cleopatra
action is_in
entity prev_answer
action find
entity Antony and Cleopatra
relation country of origin
['Antony and Cleopatra', 'country of origin', 'Spain'] ['Antony and Cleopatra', 'country of origin', 'United Kingdom']
ASK WHERE { resource:Antony_and_Cleopatra property:country_of_origin ?a . VALUES ( ?a ) { ( resource:Spain ) ( resource:United_Kingdom ) } }
[]
work of art
SYSTEM
YES
(Q1076226,P495,Q29) (Q1076226,P495,Q145)
action is_in
entity prev_answer
action find
entity Q1076226
relation P495
[ANSWER]
['Q1076226', 'P495', 'Q29'] ['Q1076226', 'P495', 'Q145']
ASK WHERE { resource:Q1076226 property:P495 ?a . VALUES ( ?a ) { ( resource:Q29 ) ( resource:Q145 ) } }
Yes
action is_in
entity prev_answer
action find
entity Antony and Cleopatra
relation country of origin
['Antony and Cleopatra', 'country of origin', 'Spain'] ['Antony and Cleopatra', 'country of origin', 'United Kingdom']
ASK WHERE { resource:Antony_and_Cleopatra property:country_of_origin ?a . VALUES ( ?a ) { ( resource:Spain ) ( resource:United_Kingdom ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P276
Q43229
USER
What is located at United Kingdom ?
(c(Q43229),P276,Q145)
action filter_type
action find_reverse
entity Q145
relation P276
type Q43229
[{'concept': 'Q43229'}, 'P276', 'Q145']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q43229 . ?m property:P276 resource:Q145 }
United Kingdom
action filter_type
action find_reverse
entity United Kingdom
relation location
type organization
[{'concept': 'organization'}, 'location', 'United Kingdom']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:organization . ?m property:location resource:United_Kingdom }
[]
organization
Q1077805
SYSTEM
Shannon Racing Cars
Q1077805
(c(Q43229),P276,Q145)
action filter_type
action find_reverse
entity Q145
relation P276
type Q43229
[ANSWER] is located at United Kingdom
[{'concept': 'Q43229'}, 'P276', 'Q145']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q43229 . ?m property:P276 resource:Q145 }
Shannon Racing Cars
Shannon Racing Cars is located at United Kingdom
Shannon Racing Cars
action filter_type
action find_reverse
entity United Kingdom
relation location
type organization
[{'concept': 'organization'}, 'location', 'United Kingdom']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:organization . ?m property:location resource:United_Kingdom }
[]