Simple Question (Direct)
Simple Question
Q718091
P21
Q290
USER
Which sex does Theodore Nicolas Gobley belong to ?
(Q718091,P21,c(Q290))
action filter_type
action find
entity Q718091
relation P21
type Q290
['Q718091', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q718091 property:P21 ?p . ?p rdf:type ontology:Q290 }
Theodore Nicolas Gobley
action filter_type
action find
entity Theodore Nicolas Gobley
relation gender
type sex
['Theodore Nicolas Gobley', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Theodore_Nicolas_Gobley property:gender ?p . ?p rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q718091,P21,c(Q290))
action filter_type
action find
entity Q718091
relation P21
type Q290
Theodore Nicolas Gobley belongs to [ANSWER]
['Q718091', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q718091 property:P21 ?p . ?p rdf:type ontology:Q290 }
male
Theodore Nicolas Gobley belongs to male
male
action filter_type
action find
entity Theodore Nicolas Gobley
relation gender
type sex
['Theodore Nicolas Gobley', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Theodore_Nicolas_Gobley property:gender ?p . ?p rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q718091
P20
Q20667921
USER
Where did the demise of Theodore Nicolas Gobley occur ?
(Q718091,P20,c(Q20667921))
action filter_type
action find
entity Q718091
relation P20
type Q20667921
['Q718091', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?t WHERE { resource:Q718091 property:P20 ?t . ?t rdf:type ontology:Q20667921 }
Theodore Nicolas Gobley
action filter_type
action find
entity Theodore Nicolas Gobley
relation place of death
type type of french administrative division
['Theodore Nicolas Gobley', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?t WHERE { resource:Theodore_Nicolas_Gobley property:place_of_death ?t . ?t rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q238393
SYSTEM
Bagnères-de-Luchon
Q238393
(Q718091,P20,c(Q20667921))
action filter_type
action find
entity Q718091
relation P20
type Q20667921
The demise of Theodore Nicolas Gobley occurred of [ANSWER]
['Q718091', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?t WHERE { resource:Q718091 property:P20 ?t . ?t rdf:type ontology:Q20667921 }
Bagnères-de-Luchon
The demise of Theodore Nicolas Gobley occurred of Bagnères-de-Luchon
Bagnères-de-Luchon
action filter_type
action find
entity Theodore Nicolas Gobley
relation place of death
type type of french administrative division
['Theodore Nicolas Gobley', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?t WHERE { resource:Theodore_Nicolas_Gobley property:place_of_death ?t . ?t rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q548683
Q20667921
USER
And how about Pascal Garnier?
(Q548683,P20,c(Q20667921))
action filter_type
action find
entity Q548683
relation P20
type Q20667921
['Q548683', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?g WHERE { resource:Q548683 property:P20 ?g . ?g rdf:type ontology:Q20667921 }
Pascal Garnier
action filter_type
action find
entity Pascal Garnier
relation place of death
type type of french administrative division
['Pascal Garnier', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?g WHERE { resource:Pascal_Garnier property:place_of_death ?g . ?g rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q271351
SYSTEM
Cornas
Q271351
(Q548683,P20,c(Q20667921))
action filter_type
action find
entity Q548683
relation P20
type Q20667921
[ANSWER]
['Q548683', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?g WHERE { resource:Q548683 property:P20 ?g . ?g rdf:type ontology:Q20667921 }
Cornas
Cornas
action filter_type
action find
entity Pascal Garnier
relation place of death
type type of french administrative division
['Pascal Garnier', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?g WHERE { resource:Pascal_Garnier property:place_of_death ?g . ?g rdf:type ontology:type_of_french_administrative_division }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q271351 Q245195 Q269430
P47
Q20667921
USER
Is that french administrative division next to the border of Saint-Péray and Bourg-lès-Valence ?
(Q271351,P47,Q245195) (Q271351,P47,Q269430)
action is_in
entity Q271351
action intersection
action find_reverse
entity Q245195
relation P47
action find_reverse
entity Q269430
relation P47
['Q271351', 'P47', 'Q245195'] ['Q271351', 'P47', 'Q269430']
ASK WHERE { resource:Q271351 property:P47 resource:Q245195 . resource:Q271351 property:P47 resource:Q269430 }
Cornas Saint-Péray Bourg-lès-Valence
action is_in
entity Cornas
action intersection
action find_reverse
entity Saint-Péray
relation shares border with
action find_reverse
entity Bourg-lès-Valence
relation shares border with
['Cornas', 'shares border with', 'Saint-Péray'] ['Cornas', 'shares border with', 'Bourg-lès-Valence']
ASK WHERE { resource:Cornas property:shares_border_with resource:Saint-Péray . resource:Cornas property:shares_border_with resource:Bourg-lès-Valence }
[]
type of french administrative division
SYSTEM
YES
(Q271351,P47,Q245195) (Q271351,P47,Q269430)
action is_in
entity Q271351
action intersection
action find_reverse
entity Q245195
relation P47
action find_reverse
entity Q269430
relation P47
[ANSWER]
['Q271351', 'P47', 'Q245195'] ['Q271351', 'P47', 'Q269430']
ASK WHERE { resource:Q271351 property:P47 resource:Q245195 . resource:Q271351 property:P47 resource:Q269430 }
Yes
action is_in
entity Cornas
action intersection
action find_reverse
entity Saint-Péray
relation shares border with
action find_reverse
entity Bourg-lès-Valence
relation shares border with
['Cornas', 'shares border with', 'Saint-Péray'] ['Cornas', 'shares border with', 'Bourg-lès-Valence']
ASK WHERE { resource:Cornas property:shares_border_with resource:Saint-Péray . resource:Cornas property:shares_border_with resource:Bourg-lès-Valence }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1966825 Q718091
P19
Q56061
USER
Which administrative territories were Theodore Nicolas Gobley or Jacob Geel born at ?
OR((Q718091,P19,c(Q56061)), (Q1966825,P19,c(Q56061)))
action filter_type
action union
action find
entity Q718091
relation P19
action find
entity Q1966825
relation P19
type Q56061
{'OR': [['Q718091', 'P19', {'concept': 'Q56061'}], ['Q1966825', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q1966825 property:P19 ?p } UNION { resource:Q718091 property:P19 ?p } } . ?p rdf:type ontology:Q56061 }
Jacob Geel Theodore Nicolas Gobley
action filter_type
action union
action find
entity Theodore Nicolas Gobley
relation place of birth
action find
entity Jacob Geel
relation place of birth
type administrative territorial entity
{'OR': [['Theodore Nicolas Gobley', 'place of birth', {'concept': 'administrative territorial entity'}], ['Jacob Geel', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Jacob_Geel property:place_of_birth ?p } UNION { resource:Theodore_Nicolas_Gobley property:place_of_birth ?p } } . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q727 Q90
SYSTEM
Amsterdam, Paris
Q727 Q90
OR((Q718091,P19,c(Q56061)), (Q1966825,P19,c(Q56061)))
action filter_type
action union
action find
entity Q718091
relation P19
action find
entity Q1966825
relation P19
type Q56061
[ANSWERS]
{'OR': [['Q718091', 'P19', {'concept': 'Q56061'}], ['Q1966825', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q1966825 property:P19 ?p } UNION { resource:Q718091 property:P19 ?p } } . ?p rdf:type ontology:Q56061 }
Amsterdam Paris
Which administrative territories were Theodore Nicolas Gobley or Jacob Geel born at
Amsterdam Paris
action filter_type
action union
action find
entity Theodore Nicolas Gobley
relation place of birth
action find
entity Jacob Geel
relation place of birth
type administrative territorial entity
{'OR': [['Theodore Nicolas Gobley', 'place of birth', {'concept': 'administrative territorial entity'}], ['Jacob Geel', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Jacob_Geel property:place_of_birth ?p } UNION { resource:Theodore_Nicolas_Gobley property:place_of_birth ?p } } . ?p rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P206
Q337567 Q355304
USER
How many still waterss or watercourses are situated nearby that administrative territory ?
(Q727,P206,c(Q337567)) (Q727,P206,c(Q355304)) (Q727,P206,c(Q337567)) (Q727,P206,c(Q355304)) (Q90,P206,c(Q337567)) (Q90,P206,c(Q355304))
['Q727', 'P206', {'concept': 'Q337567'}] ['Q727', 'P206', {'concept': 'Q355304'}] ['Q727', 'P206', {'concept': 'Q337567'}] ['Q727', 'P206', {'concept': 'Q355304'}] ['Q90', 'P206', {'concept': 'Q337567'}] ['Q90', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q26674641 property:P206 ?z } UNION { resource:Q26674641 property:P206 ?y } UNION { resource:Q26674641 property:P206 ?z } UNION { resource:Q26674641 property:P206 ?y } UNION { resource:Q7137194 property:P206 ?z } UNION { resource:Q7137194 property:P206 ?y } } . ?z rdf:type ontology:Q337567 . ?y rdf:type ontology:Q355304 }
['Amsterdam', 'located next to body of water', {'concept': 'still waters'}] ['Amsterdam', 'located next to body of water', {'concept': 'watercourse'}] ['Amsterdam', 'located next to body of water', {'concept': 'still waters'}] ['Amsterdam', 'located next to body of water', {'concept': 'watercourse'}] ['Paris', 'located next to body of water', {'concept': 'still waters'}] ['Paris', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Amsterdam property:located_next_to_body_of_water ?z } UNION { resource:Amsterdam property:located_next_to_body_of_water ?y } UNION { resource:Amsterdam property:located_next_to_body_of_water ?z } UNION { resource:Amsterdam property:located_next_to_body_of_water ?y } UNION { resource:Paris property:located_next_to_body_of_water ?z } UNION { resource:Paris property:located_next_to_body_of_water ?y } } . ?z rdf:type ontology:still_waters . ?y rdf:type ontology:watercourse }
[]
still waters watercourse
Quantitative|Count|Mult. entity type|Clarification
Q727
SYSTEM
Did you mean Amsterdam ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q26674641 property:P206 ?z } UNION { resource:Q26674641 property:P206 ?y } UNION { resource:Q26674641 property:P206 ?z } UNION { resource:Q26674641 property:P206 ?y } UNION { resource:Q7137194 property:P206 ?z } UNION { resource:Q7137194 property:P206 ?y } } . ?z rdf:type ontology:Q337567 . ?y rdf:type ontology:Q355304 }
Did you mean Amsterdam ?
Amsterdam
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Amsterdam property:located_next_to_body_of_water ?z } UNION { resource:Amsterdam property:located_next_to_body_of_water ?y } UNION { resource:Amsterdam property:located_next_to_body_of_water ?z } UNION { resource:Amsterdam property:located_next_to_body_of_water ?y } UNION { resource:Paris property:located_next_to_body_of_water ?z } UNION { resource:Paris property:located_next_to_body_of_water ?y } } . ?z rdf:type ontology:still_waters . ?y rdf:type ontology:watercourse }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q727,P206,c(Q337567)) (Q727,P206,c(Q355304)) (Q727,P206,c(Q337567)) (Q727,P206,c(Q355304)) (Q90,P206,c(Q337567)) (Q90,P206,c(Q355304))
['Q727', 'P206', {'concept': 'Q337567'}] ['Q727', 'P206', {'concept': 'Q355304'}] ['Q727', 'P206', {'concept': 'Q337567'}] ['Q727', 'P206', {'concept': 'Q355304'}] ['Q90', 'P206', {'concept': 'Q337567'}] ['Q90', 'P206', {'concept': 'Q355304'}]
['Amsterdam', 'located next to body of water', {'concept': 'still waters'}] ['Amsterdam', 'located next to body of water', {'concept': 'watercourse'}] ['Amsterdam', 'located next to body of water', {'concept': 'still waters'}] ['Amsterdam', 'located next to body of water', {'concept': 'watercourse'}] ['Paris', 'located next to body of water', {'concept': 'still waters'}] ['Paris', 'located next to body of water', {'concept': 'watercourse'}]
[]
SYSTEM
2
Q185405 Q338137
(Q727,P206,c(Q337567)) (Q727,P206,c(Q355304)) (Q727,P206,c(Q337567)) (Q727,P206,c(Q355304)) (Q90,P206,c(Q337567)) (Q90,P206,c(Q355304))
[ANSWER]
['Q727', 'P206', {'concept': 'Q337567'}] ['Q727', 'P206', {'concept': 'Q355304'}] ['Q727', 'P206', {'concept': 'Q337567'}] ['Q727', 'P206', {'concept': 'Q355304'}] ['Q90', 'P206', {'concept': 'Q337567'}] ['Q90', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q26674641 property:P206 ?z } UNION { resource:Q26674641 property:P206 ?y } UNION { resource:Q26674641 property:P206 ?z } UNION { resource:Q26674641 property:P206 ?y } UNION { resource:Q7137194 property:P206 ?z } UNION { resource:Q7137194 property:P206 ?y } } . ?z rdf:type ontology:Q337567 . ?y rdf:type ontology:Q355304 }
Amstel IJ
2
['Amsterdam', 'located next to body of water', {'concept': 'still waters'}] ['Amsterdam', 'located next to body of water', {'concept': 'watercourse'}] ['Amsterdam', 'located next to body of water', {'concept': 'still waters'}] ['Amsterdam', 'located next to body of water', {'concept': 'watercourse'}] ['Paris', 'located next to body of water', {'concept': 'still waters'}] ['Paris', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Amsterdam property:located_next_to_body_of_water ?z } UNION { resource:Amsterdam property:located_next_to_body_of_water ?y } UNION { resource:Amsterdam property:located_next_to_body_of_water ?z } UNION { resource:Amsterdam property:located_next_to_body_of_water ?y } UNION { resource:Paris property:located_next_to_body_of_water ?z } UNION { resource:Paris property:located_next_to_body_of_water ?y } } . ?z rdf:type ontology:still_waters . ?y rdf:type ontology:watercourse }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q727
P6
Q502895
USER
Who is the head of the government of that administrative territory ?
action filter_type
action find
entity Q727
relation P6
type Q502895
SELECT DISTINCT ?f WHERE { resource:Q727 property:P6 ?f . ?f rdf:type ontology:Q502895 }
Amsterdam
action filter_type
action find
entity Amsterdam
relation head of government
type common name
SELECT DISTINCT ?f WHERE { resource:Amsterdam property:head_of_government ?f . ?f rdf:type ontology:common_name }
[]
common name
Q1279554
SYSTEM
Eberhard van der Laan
Q1279554
action filter_type
action find
entity Q727
relation P6
type Q502895
The head of the government of that administrative territory is Captain [ANSWER]
SELECT DISTINCT ?f WHERE { resource:Q727 property:P6 ?f . ?f rdf:type ontology:Q502895 }
Eberhard van der Laan
The head of the government of that administrative territory is Captain Eberhard van der Laan
Eberhard van der Laan
action filter_type
action find
entity Amsterdam
relation head of government
type common name
SELECT DISTINCT ?f WHERE { resource:Amsterdam property:head_of_government ?f . ?f rdf:type ontology:common_name }
[]