Simple Question (Direct)
Simple Question
Q1225719
P19
Q56061
USER
Which administrative territory was Giuseppe Baini born in ?
(Q1225719,P19,c(Q56061))
action filter_type
action find
entity Q1225719
relation P19
type Q56061
['Q1225719', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q1225719 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Giuseppe Baini
action filter_type
action find
entity Giuseppe Baini
relation place of birth
type administrative territorial entity
['Giuseppe Baini', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Giuseppe_Baini property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q220
SYSTEM
Rome
Q220
(Q1225719,P19,c(Q56061))
action filter_type
action find
entity Q1225719
relation P19
type Q56061
Giuseppe Baini was born in [ANSWER]
['Q1225719', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q1225719 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Rome
Giuseppe Baini was born in Rome
Rome
action filter_type
action find
entity Giuseppe Baini
relation place of birth
type administrative territorial entity
['Giuseppe Baini', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Giuseppe_Baini property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1225719
P106
Q12737077
USER
Which occupations are the professions of that person ?
(Q220,P106,c(Q12737077))
action filter_type
action find
entity Q1225719
relation P106
type Q12737077
['Q220', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q1225719 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
Giuseppe Baini
action filter_type
action find
entity Giuseppe Baini
relation occupation
type occupation
['Rome', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Giuseppe_Baini property:occupation ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q36834 Q14915627 Q20198542
SYSTEM
composer, musicologist, music historian
Q14915627 Q20198542 Q1076502 Q36834 Q1350157
(Q220,P106,c(Q12737077))
action filter_type
action find
entity Q1225719
relation P106
type Q12737077
The professions of that person are [ANSWERS]
['Q220', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q1225719 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
musicologist music historian choir director composer music critic
The professions of that person are composer, musicologist and music historian
composer musicologist music historian
action filter_type
action find
entity Giuseppe Baini
relation occupation
type occupation
['Rome', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Giuseppe_Baini property:occupation ?y . ?y rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q18641369 Q1225719
P106
Q12737077
USER
Or Alf Boyack?
OR((Q1225719,P106,c(Q12737077)), (Q18641369,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q1225719
relation P106
action find
entity Q18641369
relation P106
type Q12737077
{'OR': [['Q1225719', 'P106', {'concept': 'Q12737077'}], ['Q18641369', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q1225719 property:P106 ?s } UNION { resource:Q18641369 property:P106 ?s } } . ?s rdf:type ontology:Q12737077 }
Alf Boyack Giuseppe Baini
action filter_type
action union
action find
entity Giuseppe Baini
relation occupation
action find
entity Alf Boyack
relation occupation
type occupation
{'OR': [['Giuseppe Baini', 'occupation', {'concept': 'occupation'}], ['Alf Boyack', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Giuseppe_Baini property:occupation ?s } UNION { resource:Alf_Boyack property:occupation ?s } } . ?s rdf:type ontology:occupation }
[]
occupation
Q36834 Q13414980 Q20198542 Q1076502 Q1350157 Q14915627
SYSTEM
composer, Australian-rules footballer, music historian, choir director, music critic, musicologist
Q36834 Q13414980 Q20198542 Q1076502 Q1350157 Q14915627
OR((Q1225719,P106,c(Q12737077)), (Q18641369,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q1225719
relation P106
action find
entity Q18641369
relation P106
type Q12737077
[ANSWERS]
{'OR': [['Q1225719', 'P106', {'concept': 'Q12737077'}], ['Q18641369', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q1225719 property:P106 ?s } UNION { resource:Q18641369 property:P106 ?s } } . ?s rdf:type ontology:Q12737077 }
composer Australian-rules footballer music historian choir director music critic musicologist
composer Australian-rules footballer music historian choir director music critic musicologist
action filter_type
action union
action find
entity Giuseppe Baini
relation occupation
action find
entity Alf Boyack
relation occupation
type occupation
{'OR': [['Giuseppe Baini', 'occupation', {'concept': 'occupation'}], ['Alf Boyack', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Giuseppe_Baini property:occupation ?s } UNION { resource:Alf_Boyack property:occupation ?s } } . ?s rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1350157
P136
Q2342494
USER
Which collectable as that occupation as its class ?
(c(Q2342494),P136,Q1350157)
action filter_type
action find_reverse
entity Q1350157
relation P136
type Q2342494
[{'concept': 'Q2342494'}, 'P136', 'Q1350157']
SELECT DISTINCT ?m WHERE { ?m property:P136 resource:Q1350157 . ?m rdf:type ontology:Q2342494 }
music critic
action filter_type
action find_reverse
entity music critic
relation genre
type collectable
[{'concept': 'collectable'}, 'genre', 'music critic']
SELECT DISTINCT ?m WHERE { ?m property:genre resource:music_critic . ?m rdf:type ontology:collectable }
[]
collectable
Clarification for simple ques.
Q36834
SYSTEM
Did you mean composer ?
Q36834 Q13414980 Q20198542 Q1076502 Q1350157 Q14915627
(c(Q2342494),P136,Q36834) (c(Q2342494),P136,Q13414980) (c(Q2342494),P136,Q20198542) (c(Q2342494),P136,Q1076502) (c(Q2342494),P136,Q1350157) (c(Q2342494),P136,Q14915627)
[ANSWER]
[{'concept': 'Q2342494'}, 'P136', 'Q36834'] [{'concept': 'Q2342494'}, 'P136', 'Q13414980'] [{'concept': 'Q2342494'}, 'P136', 'Q20198542'] [{'concept': 'Q2342494'}, 'P136', 'Q1076502'] [{'concept': 'Q2342494'}, 'P136', 'Q1350157'] [{'concept': 'Q2342494'}, 'P136', 'Q14915627']
SELECT DISTINCT ?m WHERE { ?m property:P136 resource:Q1350157 . ?m rdf:type ontology:Q2342494 }
composer Australian-rules footballer music historian choir director music critic musicologist
Did you mean composer ?
composer
[{'concept': 'collectable'}, 'genre', 'composer'] [{'concept': 'collectable'}, 'genre', 'Australian-rules footballer'] [{'concept': 'collectable'}, 'genre', 'music historian'] [{'concept': 'collectable'}, 'genre', 'choir director'] [{'concept': 'collectable'}, 'genre', 'music critic'] [{'concept': 'collectable'}, 'genre', 'musicologist']
SELECT DISTINCT ?m WHERE { ?m property:genre resource:music_critic . ?m rdf:type ontology:collectable }
[]
Simple Question (Coreferenced)
USER
No, I meant music critic. Could you tell me the answer for that?
(c(Q2342494),P136,Q1350157)
Q1350157
[{'concept': 'Q2342494'}, 'P136', 'Q1350157']
[{'concept': 'collectable'}, 'genre', 'music critic']
[]
Q7354776
SYSTEM
Rock and the Pop Narcotic
Q7354776
(c(Q2342494),P136,Q1350157)
action filter_type
action find_reverse
entity Q1350157
relation P136
type Q2342494
[ANSWER]
[{'concept': 'Q2342494'}, 'P136', 'Q1350157']
SELECT DISTINCT ?m WHERE { ?m property:P136 resource:Q1350157 . ?m rdf:type ontology:Q2342494 }
Rock and the Pop Narcotic
Rock and the Pop Narcotic
action filter_type
action find_reverse
entity music critic
relation genre
type collectable
[{'concept': 'collectable'}, 'genre', 'music critic']
SELECT DISTINCT ?m WHERE { ?m property:genre resource:music_critic . ?m rdf:type ontology:collectable }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q7354776 Q6208990
P50
Q502895
USER
Was Joe Carducci the writer of Rock and the Pop Narcotic ?
(Q7354776,P50,Q6208990)
action is_in
entity Q6208990
action find
entity Q7354776
relation P50
['Q7354776', 'P50', 'Q6208990']
ASK WHERE { resource:Q7354776 property:P50 resource:Q6208990 }
Rock and the Pop Narcotic Joe Carducci
action is_in
entity Joe Carducci
action find
entity Rock and the Pop Narcotic
relation author
['Rock and the Pop Narcotic', 'author', 'Joe Carducci']
ASK WHERE { resource:Rock_and_the_Pop_Narcotic property:author resource:Joe_Carducci }
[]
common name
SYSTEM
YES
(Q7354776,P50,Q6208990)
action is_in
entity Q6208990
action find
entity Q7354776
relation P50
[ANSWER]
['Q7354776', 'P50', 'Q6208990']
ASK WHERE { resource:Q7354776 property:P50 resource:Q6208990 }
Yes
action is_in
entity Joe Carducci
action find
entity Rock and the Pop Narcotic
relation author
['Rock and the Pop Narcotic', 'author', 'Joe Carducci']
ASK WHERE { resource:Rock_and_the_Pop_Narcotic property:author resource:Joe_Carducci }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1225719 Q7974750
P20
Q56061
USER
Did the expiration of Giuseppe Baini occur Watong ?
(Q1225719,P20,Q7974750)
action is_in
entity Q7974750
action find
entity Q1225719
relation P20
['Q1225719', 'P20', 'Q7974750']
ASK WHERE { resource:Q1225719 property:P20 resource:Q7974750 }
Giuseppe Baini Watong
action is_in
entity Watong
action find
entity Giuseppe Baini
relation place of death
['Giuseppe Baini', 'place of death', 'Watong']
ASK WHERE { resource:Giuseppe_Baini property:place_of_death resource:Watong }
[]
administrative territorial entity
SYSTEM
NO
(Q1225719,P20,Q7974750)
action is_in
entity Q7974750
action find
entity Q1225719
relation P20
[ANSWER]
['Q1225719', 'P20', 'Q7974750']
ASK WHERE { resource:Q1225719 property:P20 resource:Q7974750 }
No
action is_in
entity Watong
action find
entity Giuseppe Baini
relation place of death
['Giuseppe Baini', 'place of death', 'Watong']
ASK WHERE { resource:Giuseppe_Baini property:place_of_death resource:Watong }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q220 Q588598 Q554906
P1376
Q15617994
USER
Is Rome the capital of Wriezen and Hümpfershausen ?
(Q220,P1376,Q588598) (Q220,P1376,Q554906)
action is_in
entity Q220
action intersection
action find_reverse
entity Q588598
relation P1376
action find_reverse
entity Q554906
relation P1376
['Q220', 'P1376', 'Q588598'] ['Q220', 'P1376', 'Q554906']
ASK WHERE { resource:Q220 property:P1376 resource:Q588598 . resource:Q220 property:P1376 resource:Q554906 }
Rome Wriezen Hümpfershausen
action is_in
entity Rome
action intersection
action find_reverse
entity Wriezen
relation capital of
action find_reverse
entity Hümpfershausen
relation capital of
['Rome', 'capital of', 'Wriezen'] ['Rome', 'capital of', 'Hümpfershausen']
ASK WHERE { resource:Rome property:capital_of resource:Wriezen . resource:Rome property:capital_of resource:Hümpfershausen }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q220,P1376,Q588598) (Q220,P1376,Q554906)
action is_in
entity Q220
action intersection
action find_reverse
entity Q588598
relation P1376
action find_reverse
entity Q554906
relation P1376
[ANSWER]
['Q220', 'P1376', 'Q588598'] ['Q220', 'P1376', 'Q554906']
ASK WHERE { resource:Q220 property:P1376 resource:Q588598 . resource:Q220 property:P1376 resource:Q554906 }
No
action is_in
entity Rome
action intersection
action find_reverse
entity Wriezen
relation capital of
action find_reverse
entity Hümpfershausen
relation capital of
['Rome', 'capital of', 'Wriezen'] ['Rome', 'capital of', 'Hümpfershausen']
ASK WHERE { resource:Rome property:capital_of resource:Wriezen . resource:Rome property:capital_of resource:Hümpfershausen }
[]