Simple Question (Direct)
Simple Question
Q6145071
P19
Q15617994
USER
Which administrative territory was James Walls born in ?
(Q6145071,P19,c(Q15617994))
action filter_type
action find
entity Q6145071
relation P19
type Q15617994
['Q6145071', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q6145071 property:P19 ?a . ?a rdf:type ontology:Q15617994 }
James Walls
action filter_type
action find
entity James Walls
relation place of birth
type designation for an administrative territorial entity
['James Walls', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:James_Walls property:place_of_birth ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q4848462
SYSTEM
Baillieston
Q4848462
(Q6145071,P19,c(Q15617994))
action filter_type
action find
entity Q6145071
relation P19
type Q15617994
James Walls was born in [ANSWER]
['Q6145071', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q6145071 property:P19 ?a . ?a rdf:type ontology:Q15617994 }
Baillieston
James Walls was born in Baillieston
Baillieston
action filter_type
action find
entity James Walls
relation place of birth
type designation for an administrative territorial entity
['James Walls', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:James_Walls property:place_of_birth ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6145071
P106
Q12737077
USER
What is the profession of James Walls ?
(Q6145071,P106,c(Q12737077))
action filter_type
action find
entity Q6145071
relation P106
type Q12737077
['Q6145071', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q6145071 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
James Walls
action filter_type
action find
entity James Walls
relation occupation
type occupation
['James Walls', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:James_Walls property:occupation ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q6145071,P106,c(Q12737077))
action filter_type
action find
entity Q6145071
relation P106
type Q12737077
The profession of James Walls is an [ANSWER]
['Q6145071', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q6145071 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
association football player
The profession of James Walls is an association football player
association football player
action filter_type
action find
entity James Walls
relation occupation
type occupation
['James Walls', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:James_Walls property:occupation ?a . ?a rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6145071
P21
Q290
USER
What is the sex of that person ?
(Q937857,P21,c(Q290))
action filter_type
action find
entity Q6145071
relation P21
type Q290
['Q937857', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q6145071 property:P21 ?i . ?i rdf:type ontology:Q290 }
James Walls
action filter_type
action find
entity James Walls
relation gender
type sex
['association football player', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:James_Walls property:gender ?i . ?i rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q937857,P21,c(Q290))
action filter_type
action find
entity Q6145071
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q937857', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q6145071 property:P21 ?i . ?i rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity James Walls
relation gender
type sex
['association football player', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:James_Walls property:gender ?i . ?i rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P138
Q1936581 Q11173
USER
How many mineral groups or chemical compounds have that sex as their namesake ?
(c(Q1936581),P138,Q6581097) (c(Q11173),P138,Q6581097) (c(Q1936581),P138,Q6581097) (c(Q11173),P138,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q1936581
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q11173
[{'concept': 'Q1936581'}, 'P138', 'Q6581097'] [{'concept': 'Q11173'}, 'P138', 'Q6581097'] [{'concept': 'Q1936581'}, 'P138', 'Q6581097'] [{'concept': 'Q11173'}, 'P138', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) WHERE { { ?t property:P138 resource:Q6581097 . ?t rdf:type ontology:Q11173 } UNION { ?t property:P138 resource:Q6581097 . ?t rdf:type ontology:Q1936581 } }
action count
action union
action filter_type
action find_reverse
entity male
relation named after
type mineral group
action filter_type
action find_reverse
entity male
relation named after
type chemical compound
[{'concept': 'mineral group'}, 'named after', 'male'] [{'concept': 'chemical compound'}, 'named after', 'male'] [{'concept': 'mineral group'}, 'named after', 'male'] [{'concept': 'chemical compound'}, 'named after', 'male']
SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) WHERE { { ?t property:named_after resource:male . ?t rdf:type ontology:chemical_compound } UNION { ?t property:named_after resource:male . ?t rdf:type ontology:mineral_group } }
[]
mineral group chemical compound
SYSTEM
2
Q3844522 Q19861203
(c(Q1936581),P138,Q6581097) (c(Q11173),P138,Q6581097) (c(Q1936581),P138,Q6581097) (c(Q11173),P138,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q1936581
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q11173
[ANSWER]
[{'concept': 'Q1936581'}, 'P138', 'Q6581097'] [{'concept': 'Q11173'}, 'P138', 'Q6581097'] [{'concept': 'Q1936581'}, 'P138', 'Q6581097'] [{'concept': 'Q11173'}, 'P138', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) WHERE { { ?t property:P138 resource:Q6581097 . ?t rdf:type ontology:Q11173 } UNION { ?t property:P138 resource:Q6581097 . ?t rdf:type ontology:Q1936581 } }
tweddillite postite
2
action count
action union
action filter_type
action find_reverse
entity male
relation named after
type mineral group
action filter_type
action find_reverse
entity male
relation named after
type chemical compound
[{'concept': 'mineral group'}, 'named after', 'male'] [{'concept': 'chemical compound'}, 'named after', 'male'] [{'concept': 'mineral group'}, 'named after', 'male'] [{'concept': 'chemical compound'}, 'named after', 'male']
SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) WHERE { { ?t property:named_after resource:male . ?t rdf:type ontology:chemical_compound } UNION { ?t property:named_after resource:male . ?t rdf:type ontology:mineral_group } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4848462
P17
Q15617994
USER
Which administrative territory is Baillieston located in ?
(Q4848462,P17,c(Q15617994))
action filter_type
action find
entity Q4848462
relation P17
type Q15617994
['Q4848462', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q4848462 property:P17 ?u . ?u rdf:type ontology:Q15617994 }
Baillieston
action filter_type
action find
entity Baillieston
relation country
type designation for an administrative territorial entity
['Baillieston', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Baillieston property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q4848462,P17,c(Q15617994))
action filter_type
action find
entity Q4848462
relation P17
type Q15617994
Baillieston is located in [ANSWER]
['Q4848462', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q4848462 property:P17 ?u . ?u rdf:type ontology:Q15617994 }
United Kingdom
Baillieston is located in United Kingdom
United Kingdom
action filter_type
action find
entity Baillieston
relation country
type designation for an administrative territorial entity
['Baillieston', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Baillieston property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7946575
Q15617994
USER
And also tell me about WAMG?
(Q7946575,P17,c(Q15617994))
action filter_type
action find
entity Q7946575
relation P17
type Q15617994
['Q7946575', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q7946575 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
WAMG
action filter_type
action find
entity WAMG
relation country
type designation for an administrative territorial entity
['WAMG', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:WAMG property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q7946575,P17,c(Q15617994))
action filter_type
action find
entity Q7946575
relation P17
type Q15617994
[ANSWER]
['Q7946575', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q7946575 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
United States of America
United States of America
action filter_type
action find
entity WAMG
relation country
type designation for an administrative territorial entity
['WAMG', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:WAMG property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q4848462
P19 P21
Q502895
USER
Which people have place of birth as Baillieston and have the gender as male ?
AND((c(Q502895),P19,Q4848462), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q4848462
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q4848462'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . ?i property:P19 resource:Q4848462 . ?i property:P21 resource:Q6581097 }
male Baillieston
action filter_type
action intersection
action find_reverse
entity Baillieston
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Baillieston'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . ?i property:place_of_birth resource:Baillieston . ?i property:gender resource:male }
[]
common name
Q5107384 Q2534225 Q3370433 Q6113891 Q6146881 Q4707797 Q18619483 Q19560396 Q8017472 Q6767732
SYSTEM
Some of them are Chris McCart, Peter Houston, Paul Agnew, Jack Marshall, Jamie Fairlie, Alan Sneddon, Peter Shields, Peter Duncan, William Reid, Mark Gavin
Q6113891 Q16009327 Q5107384 Q18619483 Q2534225 Q20714051 Q3370433 Q6146881 Q16066758 Q6145071 Q6767732 Q3569082 Q19560396 Q5489985 Q8021674 Q4707797 Q20651386 Q8017472 Q4761226 Q5982278
AND((c(Q502895),P19,Q4848462), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q4848462
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] have place of birth as Baillieston and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q4848462'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . ?i property:P19 resource:Q4848462 . ?i property:P21 resource:Q6581097 }
Jack Marshall John Mackie Chris McCart Peter Shields Peter Houston James Liddell Paul Agnew Jamie Fairlie Gardiner Hannah James Walls Mark Gavin Willie Henderson Peter Duncan Frank Tollan Willie McCulloch Alan Sneddon Alex Forsyth William Reid Andy Rennie Ian McDougall
Chris McCart, Peter Houston, Paul Agnew, Jack Marshall, Jamie Fairlie, Alan Sneddon, Peter Shields, Peter Duncan, William Reid and Mark Gavin have place of birth as Baillieston and have the gender as male
Chris McCart Peter Houston Paul Agnew Jack Marshall Jamie Fairlie Alan Sneddon Peter Shields Peter Duncan William Reid Mark Gavin
action filter_type
action intersection
action find_reverse
entity Baillieston
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Baillieston'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . ?i property:place_of_birth resource:Baillieston . ?i property:gender resource:male }
[]
Clarification
Simple Question|Single Entity|Indirect
Q4707797
P641
Q349
USER
What did that person participate in ?
(Q4707797,P641,c(Q349))
action filter_type
action find
entity Q4707797
relation P641
type Q349
['Q4707797', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?w WHERE { resource:Q4707797 property:P641 ?w . ?w rdf:type ontology:Q349 }
Alan Sneddon
action filter_type
action find
entity Alan Sneddon
relation sport
type sport
['Alan Sneddon', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?w WHERE { resource:Alan_Sneddon property:sport ?w . ?w rdf:type ontology:sport }
[]
sport
Clarification for simple ques.
Q6767732
SYSTEM
Did you mean Mark Gavin ?
Q5107384 Q2534225 Q3370433 Q6113891 Q6146881 Q4707797 Q18619483 Q19560396 Q8017472 Q6767732
(Q5107384,P641,c(Q349)) (Q2534225,P641,c(Q349)) (Q3370433,P641,c(Q349)) (Q6113891,P641,c(Q349)) (Q6146881,P641,c(Q349)) (Q4707797,P641,c(Q349)) (Q18619483,P641,c(Q349)) (Q19560396,P641,c(Q349)) (Q8017472,P641,c(Q349)) (Q6767732,P641,c(Q349))
[ANSWER]
['Q5107384', 'P641', {'concept': 'Q349'}] ['Q2534225', 'P641', {'concept': 'Q349'}] ['Q3370433', 'P641', {'concept': 'Q349'}] ['Q6113891', 'P641', {'concept': 'Q349'}] ['Q6146881', 'P641', {'concept': 'Q349'}] ['Q4707797', 'P641', {'concept': 'Q349'}] ['Q18619483', 'P641', {'concept': 'Q349'}] ['Q19560396', 'P641', {'concept': 'Q349'}] ['Q8017472', 'P641', {'concept': 'Q349'}] ['Q6767732', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?w WHERE { resource:Q4707797 property:P641 ?w . ?w rdf:type ontology:Q349 }
Chris McCart Peter Houston Paul Agnew Jack Marshall Jamie Fairlie Alan Sneddon Peter Shields Peter Duncan William Reid Mark Gavin
Did you mean Mark Gavin ?
Mark Gavin
['Chris McCart', 'sport', {'concept': 'sport'}] ['Peter Houston', 'sport', {'concept': 'sport'}] ['Paul Agnew', 'sport', {'concept': 'sport'}] ['Jack Marshall', 'sport', {'concept': 'sport'}] ['Jamie Fairlie', 'sport', {'concept': 'sport'}] ['Alan Sneddon', 'sport', {'concept': 'sport'}] ['Peter Shields', 'sport', {'concept': 'sport'}] ['Peter Duncan', 'sport', {'concept': 'sport'}] ['William Reid', 'sport', {'concept': 'sport'}] ['Mark Gavin', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?w WHERE { resource:Alan_Sneddon property:sport ?w . ?w rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
USER
No, I meant Alan Sneddon. Could you tell me the answer for that?
(Q4707797,P641,c(Q349))
Q4707797
['Q4707797', 'P641', {'concept': 'Q349'}]
['Alan Sneddon', 'sport', {'concept': 'sport'}]
[]
Q2736
SYSTEM
association football
Q2736
(Q4707797,P641,c(Q349))
action filter_type
action find
entity Q4707797
relation P641
type Q349
That person participated in [ANSWER]
['Q4707797', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?w WHERE { resource:Q4707797 property:P641 ?w . ?w rdf:type ontology:Q349 }
association football
That person participated in association football
association football
action filter_type
action find
entity Alan Sneddon
relation sport
type sport
['Alan Sneddon', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?w WHERE { resource:Alan_Sneddon property:sport ?w . ?w rdf:type ontology:sport }
[]