Simple Question (Direct)
Simple Question
Q5394821
P21
Q290
USER
Which sex does Ernie Wright possess ?
(Q5394821,P21,c(Q290))
action filter_type
action find
entity Q5394821
relation P21
type Q290
['Q5394821', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q5394821 property:P21 ?a . ?a rdf:type ontology:Q290 }
Ernie Wright
action filter_type
action find
entity Ernie Wright
relation gender
type sex
['Ernie Wright', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Ernie_Wright property:gender ?a . ?a rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5394821,P21,c(Q290))
action filter_type
action find
entity Q5394821
relation P21
type Q290
Ernie Wright possesses a [ANSWER]
['Q5394821', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q5394821 property:P21 ?a . ?a rdf:type ontology:Q290 }
male
Ernie Wright possesses a male
male
action filter_type
action find
entity Ernie Wright
relation gender
type sex
['Ernie Wright', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Ernie_Wright property:gender ?a . ?a rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5394821
P106
Q12737077
USER
What is the profession of Ernie Wright ?
(Q5394821,P106,c(Q12737077))
action filter_type
action find
entity Q5394821
relation P106
type Q12737077
['Q5394821', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q5394821 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
Ernie Wright
action filter_type
action find
entity Ernie Wright
relation occupation
type occupation
['Ernie Wright', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Ernie_Wright property:occupation ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q5394821,P106,c(Q12737077))
action filter_type
action find
entity Q5394821
relation P106
type Q12737077
The profession of Ernie Wright is an [ANSWER]
['Q5394821', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q5394821 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
association football player
The profession of Ernie Wright is an association football player
association football player
action filter_type
action find
entity Ernie Wright
relation occupation
type occupation
['Ernie Wright', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Ernie_Wright property:occupation ?b . ?b rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1389181
Q12737077
USER
And also tell me about Cayetano Carpio?
(Q1389181,P106,c(Q12737077))
action filter_type
action find
entity Q1389181
relation P106
type Q12737077
['Q1389181', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q1389181 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
Cayetano Carpio
action filter_type
action find
entity Cayetano Carpio
relation occupation
type occupation
['Cayetano Carpio', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Cayetano_Carpio property:occupation ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q1389181,P106,c(Q12737077))
action filter_type
action find
entity Q1389181
relation P106
type Q12737077
[ANSWER]
['Q1389181', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q1389181 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
politician
politician
action filter_type
action find
entity Cayetano Carpio
relation occupation
type occupation
['Cayetano Carpio', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Cayetano_Carpio property:occupation ?e . ?e rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3756467 Q5394821
P641
Q349
USER
Which sports did Ernie Wright or Gabriel Enache participate in ?
OR((Q5394821,P641,c(Q349)), (Q3756467,P641,c(Q349)))
action filter_type
action union
action find
entity Q5394821
relation P641
action find
entity Q3756467
relation P641
type Q349
{'OR': [['Q5394821', 'P641', {'concept': 'Q349'}], ['Q3756467', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q5394821 property:P641 ?s } UNION { resource:Q3756467 property:P641 ?s } } . ?s rdf:type ontology:Q349 }
Gabriel Enache Ernie Wright
action filter_type
action union
action find
entity Ernie Wright
relation sport
action find
entity Gabriel Enache
relation sport
type sport
{'OR': [['Ernie Wright', 'sport', {'concept': 'sport'}], ['Gabriel Enache', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Ernie_Wright property:sport ?s } UNION { resource:Gabriel_Enache property:sport ?s } } . ?s rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
OR((Q5394821,P641,c(Q349)), (Q3756467,P641,c(Q349)))
action filter_type
action union
action find
entity Q5394821
relation P641
action find
entity Q3756467
relation P641
type Q349
Ernie Wright or Gabriel Enache participated in [ANSWER]
{'OR': [['Q5394821', 'P641', {'concept': 'Q349'}], ['Q3756467', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q5394821 property:P641 ?s } UNION { resource:Q3756467 property:P641 ?s } } . ?s rdf:type ontology:Q349 }
association football
Ernie Wright or Gabriel Enache participated in association football
association football
action filter_type
action union
action find
entity Ernie Wright
relation sport
action find
entity Gabriel Enache
relation sport
type sport
{'OR': [['Ernie Wright', 'sport', {'concept': 'sport'}], ['Gabriel Enache', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Ernie_Wright property:sport ?s } UNION { resource:Gabriel_Enache property:sport ?s } } . ?s rdf:type ontology:sport }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P366
Q349 Q8205328 Q1875621
USER
Which sports are considered as the main functionality of around 1 artefacts and aircraft classes ?
(c(Q8205328)|c(Q1875621),P366,c(Q349))
action approx
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q8205328
action find_reverse_tuple_counts
relation P366
type Q349
type Q1875621
value 1
[[{'concept': 'Q8205328'}, {'concept': 'Q1875621'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?u ) WHERE { VALUES ( ?y ) { ( ontology:Q1875621 ) ( ontology:Q8205328 ) } . ?i rdf:type ?y } GROUP BY ?c } . FILTER ( ?u = 1 ) }
action approx
action union
action find_reverse_tuple_counts
relation use
type sport
type artefact
action find_reverse_tuple_counts
relation use
type sport
type aircraft class
value 1
[[{'concept': 'artefact'}, {'concept': 'aircraft class'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?u ) WHERE { VALUES ( ?y ) { ( ontology:aircraft_class ) ( ontology:artefact ) } . ?i rdf:type ?y } GROUP BY ?c } . FILTER ( ?u = 1 ) }
[]
sport artefact aircraft class
Q14300548 Q108429
SYSTEM
skating, archery
Q14300548 Q108429
(c(Q8205328)|c(Q1875621),P366,c(Q349))
action approx
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q8205328
action find_reverse_tuple_counts
relation P366
type Q349
type Q1875621
value 1
[ANSWERS] are considered as the main functionality of around 1 artefacts and aircraft classes
[[{'concept': 'Q8205328'}, {'concept': 'Q1875621'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?u ) WHERE { VALUES ( ?y ) { ( ontology:Q1875621 ) ( ontology:Q8205328 ) } . ?i rdf:type ?y } GROUP BY ?c } . FILTER ( ?u = 1 ) }
skating archery
Skating and archery are considered as the main functionality of around 1 artefacts and aircraft classes
skating archery
action approx
action union
action find_reverse_tuple_counts
relation use
type sport
type artefact
action find_reverse_tuple_counts
relation use
type sport
type aircraft class
value 1
[[{'concept': 'artefact'}, {'concept': 'aircraft class'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?u ) WHERE { VALUES ( ?y ) { ( ontology:aircraft_class ) ( ontology:artefact ) } . ?i rdf:type ?y } GROUP BY ?c } . FILTER ( ?u = 1 ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q14300548 Q108429
P366
Q8205328
USER
Which artefacts have their main functionality as skating and archery ?
(c(Q8205328),P366,Q14300548) (c(Q8205328),P366,Q108429)
action union
action filter_type
action find_reverse
entity Q14300548
relation P366
type Q8205328
action filter_type
action find_reverse
entity Q108429
relation P366
type Q8205328
[{'concept': 'Q8205328'}, 'P366', 'Q14300548'] [{'concept': 'Q8205328'}, 'P366', 'Q108429']
SELECT DISTINCT ?h WHERE { { ?h property:P366 resource:Q14300548 . ?h rdf:type ontology:Q8205328 } UNION { ?h rdf:type ontology:Q8205328 . ?h property:P366 resource:Q108429 } }
skating archery
action union
action filter_type
action find_reverse
entity skating
relation use
type artefact
action filter_type
action find_reverse
entity archery
relation use
type artefact
[{'concept': 'artefact'}, 'use', 'skating'] [{'concept': 'artefact'}, 'use', 'archery']
SELECT DISTINCT ?h WHERE { { ?h property:use resource:skating . ?h rdf:type ontology:artefact } UNION { ?h rdf:type ontology:artefact . ?h property:use resource:archery } }
[]
artefact
Q108640 Q19827042
SYSTEM
ice skate, bow and arrow
Q108640 Q19827042
(c(Q8205328),P366,Q14300548) (c(Q8205328),P366,Q108429)
action union
action filter_type
action find_reverse
entity Q14300548
relation P366
type Q8205328
action filter_type
action find_reverse
entity Q108429
relation P366
type Q8205328
And [ANSWERS] have their main functionality as skating and archery
[{'concept': 'Q8205328'}, 'P366', 'Q14300548'] [{'concept': 'Q8205328'}, 'P366', 'Q108429']
SELECT DISTINCT ?h WHERE { { ?h property:P366 resource:Q14300548 . ?h rdf:type ontology:Q8205328 } UNION { ?h rdf:type ontology:Q8205328 . ?h property:P366 resource:Q108429 } }
ice skate bow and arrow
And ice skate and bow and arrow have their main functionality as skating and archery
ice skate bow and arrow
action union
action filter_type
action find_reverse
entity skating
relation use
type artefact
action filter_type
action find_reverse
entity archery
relation use
type artefact
[{'concept': 'artefact'}, 'use', 'skating'] [{'concept': 'artefact'}, 'use', 'archery']
SELECT DISTINCT ?h WHERE { { ?h property:use resource:skating . ?h rdf:type ontology:artefact } UNION { ?h rdf:type ontology:artefact . ?h property:use resource:archery } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q19827042
P361
Q8205328
USER
What is a part of that one ?
(c(Q8205328),P361,Q19827042)
action filter_type
action find_reverse
entity Q19827042
relation P361
type Q8205328
[{'concept': 'Q8205328'}, 'P361', 'Q19827042']
SELECT DISTINCT ?b WHERE { ?b property:P361 resource:Q19827042 . ?b rdf:type ontology:Q8205328 }
bow and arrow
action filter_type
action find_reverse
entity bow and arrow
relation part of
type artefact
[{'concept': 'artefact'}, 'part of', 'bow and arrow']
SELECT DISTINCT ?b WHERE { ?b property:part_of resource:bow_and_arrow . ?b rdf:type ontology:artefact }
[]
artefact
Clarification for simple ques.
Q19827042
SYSTEM
Did you mean bow and arrow ?
Q108640 Q19827042
(c(Q8205328),P361,Q108640) (c(Q8205328),P361,Q19827042)
[ANSWER]
[{'concept': 'Q8205328'}, 'P361', 'Q108640'] [{'concept': 'Q8205328'}, 'P361', 'Q19827042']
SELECT DISTINCT ?b WHERE { ?b property:P361 resource:Q19827042 . ?b rdf:type ontology:Q8205328 }
ice skate bow and arrow
Did you mean bow and arrow ?
bow and arrow
[{'concept': 'artefact'}, 'part of', 'ice skate'] [{'concept': 'artefact'}, 'part of', 'bow and arrow']
SELECT DISTINCT ?b WHERE { ?b property:part_of resource:bow_and_arrow . ?b rdf:type ontology:artefact }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q8205328),P361,Q19827042)
[{'concept': 'Q8205328'}, 'P361', 'Q19827042']
[{'concept': 'artefact'}, 'part of', 'bow and arrow']
[]
Q46311
SYSTEM
bow
Q46311
(c(Q8205328),P361,Q19827042)
action filter_type
action find_reverse
entity Q19827042
relation P361
type Q8205328
A part of that one is the [ANSWER]
[{'concept': 'Q8205328'}, 'P361', 'Q19827042']
SELECT DISTINCT ?b WHERE { ?b property:P361 resource:Q19827042 . ?b rdf:type ontology:Q8205328 }
bow
A part of that one is the bow
bow
action filter_type
action find_reverse
entity bow and arrow
relation part of
type artefact
[{'concept': 'artefact'}, 'part of', 'bow and arrow']
SELECT DISTINCT ?b WHERE { ?b property:part_of resource:bow_and_arrow . ?b rdf:type ontology:artefact }
[]