Simple Question (Direct)
Simple Question
Q450131
P2416
Q31629
USER
Which type of sport did Shigeru So participate in ?
(Q450131,P2416,c(Q31629))
action filter_type
action find
entity Q450131
relation P2416
type Q31629
['Q450131', 'P2416', {'concept': 'Q31629'}]
SELECT DISTINCT ?b WHERE { resource:Q450131 property:P2416 ?b . ?b rdf:type ontology:Q31629 }
Shigeru So
action filter_type
action find
entity Shigeru So
relation sports discipline competed in
type type of sport
['Shigeru So', 'sports discipline competed in', {'concept': 'type of sport'}]
SELECT DISTINCT ?b WHERE { resource:Shigeru_So property:sports_discipline_competed_in ?b . ?b rdf:type ontology:type_of_sport }
[]
type of sport
Q40244
SYSTEM
marathon
Q40244
(Q450131,P2416,c(Q31629))
action filter_type
action find
entity Q450131
relation P2416
type Q31629
[ANSWER] did Shigeru So participate in
['Q450131', 'P2416', {'concept': 'Q31629'}]
SELECT DISTINCT ?b WHERE { resource:Q450131 property:P2416 ?b . ?b rdf:type ontology:Q31629 }
marathon
Marathon did Shigeru So participate in
marathon
action filter_type
action find
entity Shigeru So
relation sports discipline competed in
type type of sport
['Shigeru So', 'sports discipline competed in', {'concept': 'type of sport'}]
SELECT DISTINCT ?b WHERE { resource:Shigeru_So property:sports_discipline_competed_in ?b . ?b rdf:type ontology:type_of_sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q450131
P21
Q290
USER
What is the sex of Shigeru So ?
(Q450131,P21,c(Q290))
action filter_type
action find
entity Q450131
relation P21
type Q290
['Q450131', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q450131 property:P21 ?l . ?l rdf:type ontology:Q290 }
Shigeru So
action filter_type
action find
entity Shigeru So
relation gender
type sex
['Shigeru So', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Shigeru_So property:gender ?l . ?l rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q450131,P21,c(Q290))
action filter_type
action find
entity Q450131
relation P21
type Q290
The sex of Shigeru is the [ANSWER]
['Q450131', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q450131 property:P21 ?l . ?l rdf:type ontology:Q290 }
male
The sex of Shigeru is the male
male
action filter_type
action find
entity Shigeru So
relation gender
type sex
['Shigeru So', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Shigeru_So property:gender ?l . ?l rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q20035969
Q290
USER
And what about Gao Xinglong?
(Q20035969,P21,c(Q290))
action filter_type
action find
entity Q20035969
relation P21
type Q290
['Q20035969', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q290 . resource:Q20035969 property:P21 ?m }
Gao Xinglong
action filter_type
action find
entity Gao Xinglong
relation gender
type sex
['Gao Xinglong', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:sex . resource:Gao_Xinglong property:gender ?m }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q20035969,P21,c(Q290))
action filter_type
action find
entity Q20035969
relation P21
type Q290
[ANSWER]
['Q20035969', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q290 . resource:Q20035969 property:P21 ?m }
male
male
action filter_type
action find
entity Gao Xinglong
relation gender
type sex
['Gao Xinglong', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:sex . resource:Gao_Xinglong property:gender ?m }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q15973926
P21
Q502895
USER
Is Jean-Jacques Boutaud a that sex ?
(Q15973926,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q15973926
relation P21
['Q15973926', 'P21', 'Q6581097']
ASK WHERE { resource:Q15973926 property:P21 resource:Q6581097 }
male Jean-Jacques Boutaud
action is_in
entity male
action find
entity Jean-Jacques Boutaud
relation gender
['Jean-Jacques Boutaud', 'gender', 'male']
ASK WHERE { resource:Jean-Jacques_Boutaud property:gender resource:male }
[]
common name
SYSTEM
YES
(Q15973926,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q15973926
relation P21
[ANSWER]
['Q15973926', 'P21', 'Q6581097']
ASK WHERE { resource:Q15973926 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Jean-Jacques Boutaud
relation gender
['Jean-Jacques Boutaud', 'gender', 'male']
ASK WHERE { resource:Jean-Jacques_Boutaud property:gender resource:male }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q6581097
P138
Q2088357 Q79529
USER
How many musical ensembles and chemical substances are the eponym of male ?
(c(Q2088357),P138,Q6581097) (c(Q79529),P138,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q2088357
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q79529
[{'concept': 'Q2088357'}, 'P138', 'Q6581097'] [{'concept': 'Q79529'}, 'P138', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { VALUES ( ?o ) { ( ontology:Q2088357 ) ( ontology:Q79529 ) } . ?q rdf:type ?o }
male
action count
action union
action filter_type
action find_reverse
entity male
relation named after
type musical ensemble
action filter_type
action find_reverse
entity male
relation named after
type chemical substance
[{'concept': 'musical ensemble'}, 'named after', 'male'] [{'concept': 'chemical substance'}, 'named after', 'male']
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { VALUES ( ?o ) { ( ontology:musical_ensemble ) ( ontology:chemical_substance ) } . ?q rdf:type ?o }
[]
musical ensemble chemical substance
SYSTEM
1 musical ensembles and 1 chemical substances
Q15181127 Q19833612
(c(Q2088357),P138,Q6581097) (c(Q79529),P138,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q2088357
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q79529
[ANSWER]
[{'concept': 'Q2088357'}, 'P138', 'Q6581097'] [{'concept': 'Q79529'}, 'P138', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { VALUES ( ?o ) { ( ontology:Q2088357 ) ( ontology:Q79529 ) } . ?q rdf:type ?o }
Ausekarane fabrièsite
1 musical ensembles and 1 chemical substances
action count
action union
action filter_type
action find_reverse
entity male
relation named after
type musical ensemble
action filter_type
action find_reverse
entity male
relation named after
type chemical substance
[{'concept': 'musical ensemble'}, 'named after', 'male'] [{'concept': 'chemical substance'}, 'named after', 'male']
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { VALUES ( ?o ) { ( ontology:musical_ensemble ) ( ontology:chemical_substance ) } . ?q rdf:type ?o }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q450131
P106
Q12737077
USER
What is the profession of Shigeru So ?
(Q450131,P106,c(Q12737077))
action filter_type
action find
entity Q450131
relation P106
type Q12737077
['Q450131', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q12737077 . resource:Q450131 property:P106 ?b }
Shigeru So
action filter_type
action find
entity Shigeru So
relation occupation
type occupation
['Shigeru So', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:occupation . resource:Shigeru_So property:occupation ?b }
[]
occupation
Q13382460
SYSTEM
marathon runner
Q13382460
(Q450131,P106,c(Q12737077))
action filter_type
action find
entity Q450131
relation P106
type Q12737077
The profession of Shigeru is the [ANSWER]
['Q450131', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q12737077 . resource:Q450131 property:P106 ?b }
marathon runner
The profession of Shigeru is the marathon runner
marathon runner
action filter_type
action find
entity Shigeru So
relation occupation
type occupation
['Shigeru So', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:occupation . resource:Shigeru_So property:occupation ?b }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q7174628 Q450131
P106
Q12737077
USER
Or Peter Henderson?
OR((Q450131,P106,c(Q12737077)), (Q7174628,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q450131
relation P106
action find
entity Q7174628
relation P106
type Q12737077
{'OR': [['Q450131', 'P106', {'concept': 'Q12737077'}], ['Q7174628', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q7174628 property:P106 ?a } UNION { resource:Q450131 property:P106 ?a } } . ?a rdf:type ontology:Q12737077 }
Peter Henderson Shigeru So
action filter_type
action union
action find
entity Shigeru So
relation occupation
action find
entity Peter Henderson
relation occupation
type occupation
{'OR': [['Shigeru So', 'occupation', {'concept': 'occupation'}], ['Peter Henderson', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Peter_Henderson property:occupation ?a } UNION { resource:Shigeru_So property:occupation ?a } } . ?a rdf:type ontology:occupation }
[]
occupation
Q14373094 Q14089670 Q13382460 Q4009406
SYSTEM
rugby league player, rugby union player, marathon runner, sprinter
Q14373094 Q14089670 Q13382460 Q4009406
OR((Q450131,P106,c(Q12737077)), (Q7174628,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q450131
relation P106
action find
entity Q7174628
relation P106
type Q12737077
[ANSWERS]
{'OR': [['Q450131', 'P106', {'concept': 'Q12737077'}], ['Q7174628', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q7174628 property:P106 ?a } UNION { resource:Q450131 property:P106 ?a } } . ?a rdf:type ontology:Q12737077 }
rugby league player rugby union player marathon runner sprinter
rugby league player rugby union player marathon runner sprinter
action filter_type
action union
action find
entity Shigeru So
relation occupation
action find
entity Peter Henderson
relation occupation
type occupation
{'OR': [['Shigeru So', 'occupation', {'concept': 'occupation'}], ['Peter Henderson', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Peter_Henderson property:occupation ?a } UNION { resource:Shigeru_So property:occupation ?a } } . ?a rdf:type ontology:occupation }
[]