Simple Question (Direct)
Simple Question
Q16236654
P21
Q290
USER
Which sex does Willyan da Silva Barbosa belong to ?
(Q16236654,P21,c(Q290))
action filter_type
action find
entity Q16236654
relation P21
type Q290
['Q16236654', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q290 . resource:Q16236654 property:P21 ?j }
Willyan da Silva Barbosa
action filter_type
action find
entity Willyan da Silva Barbosa
relation gender
type sex
['Willyan da Silva Barbosa', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:sex . resource:Willyan_da_Silva_Barbosa property:gender ?j }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q16236654,P21,c(Q290))
action filter_type
action find
entity Q16236654
relation P21
type Q290
Willyan da Silva Barbosa belongs to [ANSWER]
['Q16236654', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q290 . resource:Q16236654 property:P21 ?j }
male
Willyan da Silva Barbosa belongs to male
male
action filter_type
action find
entity Willyan da Silva Barbosa
relation gender
type sex
['Willyan da Silva Barbosa', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:sex . resource:Willyan_da_Silva_Barbosa property:gender ?j }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16236654
P27
Q15617994
USER
Which administrative territory is Willyan da Silva Barbosa an inhabitant of ?
(Q16236654,P27,c(Q15617994))
action filter_type
action find
entity Q16236654
relation P27
type Q15617994
['Q16236654', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q16236654 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
Willyan da Silva Barbosa
action filter_type
action find
entity Willyan da Silva Barbosa
relation country of citizenship
type designation for an administrative territorial entity
['Willyan da Silva Barbosa', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Willyan_da_Silva_Barbosa property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155
SYSTEM
Brazil
Q155
(Q16236654,P27,c(Q15617994))
action filter_type
action find
entity Q16236654
relation P27
type Q15617994
[ANSWER] is Willyan da Silva Barbosa an inhabitant of
['Q16236654', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q16236654 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
Brazil
Brazil is Willyan da Silva Barbosa an inhabitant of
Brazil
action filter_type
action find
entity Willyan da Silva Barbosa
relation country of citizenship
type designation for an administrative territorial entity
['Willyan da Silva Barbosa', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Willyan_da_Silva_Barbosa property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16236654
P641
Q349
USER
Which sport was that person a part of ?
(Q155,P641,c(Q349))
action filter_type
action find
entity Q16236654
relation P641
type Q349
['Q155', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?g WHERE { resource:Q16236654 property:P641 ?g . ?g rdf:type ontology:Q349 }
Willyan da Silva Barbosa
action filter_type
action find
entity Willyan da Silva Barbosa
relation sport
type sport
['Brazil', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?g WHERE { resource:Willyan_da_Silva_Barbosa property:sport ?g . ?g rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q155,P641,c(Q349))
action filter_type
action find
entity Q16236654
relation P641
type Q349
Football [ANSWER] was that person a part of
['Q155', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?g WHERE { resource:Q16236654 property:P641 ?g . ?g rdf:type ontology:Q349 }
association football
Football association football was that person a part of
association football
action filter_type
action find
entity Willyan da Silva Barbosa
relation sport
type sport
['Brazil', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?g WHERE { resource:Willyan_da_Silva_Barbosa property:sport ?g . ?g rdf:type ontology:sport }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q2708480 Q16236654
P641
Q349
USER
And also Daniel Sánchez
AND((Q16236654,P641,c(Q349)), (Q2708480,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q16236654
relation P641
action find
entity Q2708480
relation P641
type Q349
{'AND': [['Q16236654', 'P641', {'concept': 'Q349'}], ['Q2708480', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?m WHERE { resource:Q16236654 property:P641 ?m . resource:Q2708480 property:P641 ?m . ?m rdf:type ontology:Q349 }
Daniel Sánchez Willyan da Silva Barbosa
action filter_type
action intersection
action find
entity Willyan da Silva Barbosa
relation sport
action find
entity Daniel Sánchez
relation sport
type sport
{'AND': [['Willyan da Silva Barbosa', 'sport', {'concept': 'sport'}], ['Daniel Sánchez', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?m WHERE { resource:Willyan_da_Silva_Barbosa property:sport ?m . resource:Daniel_Sánchez property:sport ?m . ?m rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
AND((Q16236654,P641,c(Q349)), (Q2708480,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q16236654
relation P641
action find
entity Q2708480
relation P641
type Q349
[ANSWER]
{'AND': [['Q16236654', 'P641', {'concept': 'Q349'}], ['Q2708480', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?m WHERE { resource:Q16236654 property:P641 ?m . resource:Q2708480 property:P641 ?m . ?m rdf:type ontology:Q349 }
association football
association football
action filter_type
action intersection
action find
entity Willyan da Silva Barbosa
relation sport
action find
entity Daniel Sánchez
relation sport
type sport
{'AND': [['Willyan da Silva Barbosa', 'sport', {'concept': 'sport'}], ['Daniel Sánchez', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?m WHERE { resource:Willyan_da_Silva_Barbosa property:sport ?m . resource:Daniel_Sánchez property:sport ?m . ?m rdf:type ontology:sport }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q3479532 Q5614271
P21
Q290
USER
How many sexes do Serge Santucci or Silver Millennium belong to ?
(Q3479532,P21,c(Q290)) (Q5614271,P21,c(Q290))
action count
action union
action filter_type
action find
entity Q3479532
relation P21
type Q290
action filter_type
action find
entity Q5614271
relation P21
type Q290
['Q3479532', 'P21', {'concept': 'Q290'}] ['Q5614271', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { VALUES ( ?p ) { ( resource:Q3479532 ) ( resource:Q5614271 ) } . ?p property:P21 ?r }
Serge Santucci Silver Millennium
action count
action union
action filter_type
action find
entity Serge Santucci
relation gender
type sex
action filter_type
action find
entity Silver Millennium
relation gender
type sex
['Serge Santucci', 'gender', {'concept': 'sex'}] ['Silver Millennium', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { VALUES ( ?p ) { ( resource:Serge_Santucci ) ( resource:Silver_Millennium ) } . ?p property:gender ?r }
[]
sex
SYSTEM
2
Q6581097 Q6581072
(Q3479532,P21,c(Q290)) (Q5614271,P21,c(Q290))
action count
action union
action filter_type
action find
entity Q3479532
relation P21
type Q290
action filter_type
action find
entity Q5614271
relation P21
type Q290
[ANSWER]
['Q3479532', 'P21', {'concept': 'Q290'}] ['Q5614271', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { VALUES ( ?p ) { ( resource:Q3479532 ) ( resource:Q5614271 ) } . ?p property:P21 ?r }
male female
2
action count
action union
action filter_type
action find
entity Serge Santucci
relation gender
type sex
action filter_type
action find
entity Silver Millennium
relation gender
type sex
['Serge Santucci', 'gender', {'concept': 'sex'}] ['Silver Millennium', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { VALUES ( ?p ) { ( resource:Serge_Santucci ) ( resource:Silver_Millennium ) } . ?p property:gender ?r }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16228138 Q16236654
P106
Q12737077
USER
Which occupations are the professions of Willyan da Silva Barbosa or John Henry Ratcliffe ?
OR((Q16236654,P106,c(Q12737077)), (Q16228138,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q16236654
relation P106
action find
entity Q16228138
relation P106
type Q12737077
{'OR': [['Q16236654', 'P106', {'concept': 'Q12737077'}], ['Q16228138', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q12737077 . { VALUES ( ?y ) { ( resource:Q16236654 ) ( resource:Q16228138 ) } . ?y property:P106 ?w } }
John Henry Ratcliffe Willyan da Silva Barbosa
action filter_type
action union
action find
entity Willyan da Silva Barbosa
relation occupation
action find
entity John Henry Ratcliffe
relation occupation
type occupation
{'OR': [['Willyan da Silva Barbosa', 'occupation', {'concept': 'occupation'}], ['John Henry Ratcliffe', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:occupation . { VALUES ( ?y ) { ( resource:Willyan_da_Silva_Barbosa ) ( resource:John_Henry_Ratcliffe ) } . ?y property:occupation ?w } }
[]
occupation
Q806798 Q937857
SYSTEM
banker, association football player
Q806798 Q937857
OR((Q16236654,P106,c(Q12737077)), (Q16228138,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q16236654
relation P106
action find
entity Q16228138
relation P106
type Q12737077
[ANSWERS] are the professions of Willyan da Silva Barbosa or John Henry Ratcliffe
{'OR': [['Q16236654', 'P106', {'concept': 'Q12737077'}], ['Q16228138', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q12737077 . { VALUES ( ?y ) { ( resource:Q16236654 ) ( resource:Q16228138 ) } . ?y property:P106 ?w } }
banker association football player
Banker and association football player are the professions of Willyan da Silva Barbosa or John Henry Ratcliffe
banker association football player
action filter_type
action union
action find
entity Willyan da Silva Barbosa
relation occupation
action find
entity John Henry Ratcliffe
relation occupation
type occupation
{'OR': [['Willyan da Silva Barbosa', 'occupation', {'concept': 'occupation'}], ['John Henry Ratcliffe', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:occupation . { VALUES ( ?y ) { ( resource:Willyan_da_Silva_Barbosa ) ( resource:John_Henry_Ratcliffe ) } . ?y property:occupation ?w } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P417
Q502895
USER
How many people are the names of the patron saint of that occupation ?
(Q806798,P417,c(Q502895))
['Q806798', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q806798 property:Q28914 ?z . ?z rdf:type ontology:Q502895 }
['banker', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:banker property:patron_saint ?z . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q806798
SYSTEM
Did you mean banker ?
(Q806798,P417,c(Q502895)) (Q937857,P417,c(Q502895))
[ANSWER]
['Q806798', 'P417', {'concept': 'Q502895'}] ['Q937857', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q806798 property:Q28914 ?z . ?z rdf:type ontology:Q502895 }
Did you mean banker ?
banker
['banker', 'patron saint', {'concept': 'common name'}] ['association football player', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:banker property:patron_saint ?z . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q806798,P417,c(Q502895))
['Q806798', 'P417', {'concept': 'Q502895'}]
['banker', 'patron saint', {'concept': 'common name'}]
[]
SYSTEM
1
Q43600
(Q806798,P417,c(Q502895))
[ANSWER]
['Q806798', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q806798 property:Q28914 ?z . ?z rdf:type ontology:Q502895 }
Matthew the Apostle
1
['banker', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:banker property:patron_saint ?z . ?z rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155
P530
Q56061
USER
Who have a diplomatic relationship with Brazil ?
(Q155,P530,c(Q56061))
action filter_type
action find
entity Q155
relation P530
type Q56061
['Q155', 'P530', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q155 property:P530 ?e . ?e rdf:type ontology:Q56061 }
Brazil
action filter_type
action find
entity Brazil
relation diplomatic relation
type administrative territorial entity
['Brazil', 'diplomatic relation', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Brazil property:diplomatic_relation ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q7159 Q458
SYSTEM
African Union, European Union
Q7159 Q458
(Q155,P530,c(Q56061))
action filter_type
action find
entity Q155
relation P530
type Q56061
[ANSWERS] have a diplomatic relationship with Brazil
['Q155', 'P530', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q155 property:P530 ?e . ?e rdf:type ontology:Q56061 }
African Union European Union
African Union and European Union have a diplomatic relationship with Brazil
African Union European Union
action filter_type
action find
entity Brazil
relation diplomatic relation
type administrative territorial entity
['Brazil', 'diplomatic relation', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Brazil property:diplomatic_relation ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]